public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* man stdint.h
@ 2009-11-13 10:02 Martin Gebert
       [not found] ` <4AFD2EC2.60000-TAFHyoIWub4hFhg+JK9F0w@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Martin Gebert @ 2009-11-13 10:02 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-11-13 16:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-13 10:02 man stdint.h Martin Gebert
     [not found] ` <4AFD2EC2.60000-TAFHyoIWub4hFhg+JK9F0w@public.gmane.org>
2009-11-13 15:19   ` Mike Frysinger
     [not found]     ` <200911131020.00356.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2009-11-13 15:53       ` Martin Gebert
     [not found]         ` <4AFD80E1.2090108-TAFHyoIWub4hFhg+JK9F0w@public.gmane.org>
2009-11-13 16:26           ` Mike Frysinger
     [not found]             ` <200911131126.19495.vapier-aBrp7R+bbdUdnm+yROfE0A@public.gmane.org>
2009-11-13 16:41               ` Petr Baudis
     [not found]                 ` <20091113164133.GT3708-DDGJ70k9y3lX+M3pkMnKjw@public.gmane.org>
2009-11-13 16:52                   ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox