This is the mail archive of the
newlib-cvs@sourceware.org
mailing list for the newlib project.
src/newlib libm/common/fdlibm.h libm/common/s_ ...
- From: davek at sourceware dot org
- To: newlib-cvs at sourceware dot org
- Date: 20 Jul 2010 01:33:05 -0000
- Subject: src/newlib libm/common/fdlibm.h libm/common/s_ ...
CVSROOT: /cvs/src
Module name: src
Changes by: davek@sourceware.org 2010-07-20 01:33:05
Modified files:
newlib/libm/common: fdlibm.h s_llround.c s_lround.c
newlib : ChangeLog
Log message:
* libm/common/fdlibm.h (SAFE_LEFT_SHIFT): New macro definition.
(SAFE_RIGHT_SHIFT): Likewise.
* libm/common/s_llround.c (llround): Annotate shift operations with
possible shift amount ranges, and use SAFE_RIGHT_SHIFT to avoid
undefined behaviour.
* libm/common/s_lround.c (lround): Likewise.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libm/common/fdlibm.h.diff?cvsroot=src&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libm/common/s_llround.c.diff?cvsroot=src&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/libm/common/s_lround.c.diff?cvsroot=src&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/src/newlib/ChangeLog.diff?cvsroot=src&r1=1.1523&r2=1.1524