Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: return value of __BIT(x)



On Tue, Oct 16, 2012 at 07:01:24PM +0900, Masanobu SAITOH wrote:
>  Hi, all.
> 
>  "man __BIT" says:
> 
> 
> > SYNOPSIS
> >      #include <sys/param.h>
> >      #include <sys/cdefs.h>
> > 
> >      uint32_t
> >      __BIT(n);
> > 
> >      uint32_t
> >      __BITS(m, n);
> 
> uintmax_t is uint64_t, so these macros return uint64_t.
> 
>  What should we do?

We should fix the manual page.

BTW, PRIuBIT, PRIxBIT, PRIuBITS, and PRIxBITS are defined for use in
printf() format strings.

Dave

-- 
David Young
dyoung%pobox.com@localhost    Urbana, IL    (217) 721-9981


Home | Main Index | Thread Index | Old Index