This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/21309] signed integer overflow in sysdeps/ieee754/dbl-64/e_pow.c


https://sourceware.org/bugzilla/show_bug.cgi?id=21309

--- Comment #1 from joseph at codesourcery dot com <joseph at codesourcery dot com> ---
In GNU C, a shift left or right by an amount in the range [0, width of 
type - 1] is fully defined whether the value being shifted has a signed or 
unsigned type.  Only a shift by a negative amount, or an amount >= the 
width of the type, is undefined.

This is not to say that cleanups to avoid certain cases that are undefined 
in ISO C but not in GNU C should not be done, in order e.g. to support 
building some glibc code with sanitization enabled, but such cases are not 
bugs and should not be filed in Bugzilla.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]