man stdint.h

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

 



Hi Michael,

I just found this ambiguities in stdint.h(0p) (from package
man-pages-posix-2003a on a current Gentoo system):

"An N-bit signed type has values in the range -2**N-1 or 1-2**N-1 to
2**N-1-1, while an N-bit unsigned type has values in the
range 0 to 2**N-1."

IMHO this should be "to (2**N-1)-1" for signed ints, and "to (2**N)-1"
for unsigned. Yet I'm not sure about the precedence of the ** operator,
as it is not defined for C/C++, so some more parenthesis around the
exponents should make this clear.

Martin
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux