diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2000-08-28 17:45:56 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2000-08-28 17:45:56 +0000 |
commit | e0b0f635738c6bfce3bffe916ebf41908b4620fb (patch) | |
tree | 79abad409ac9b9ea6744472f4fe144a6e97541c5 | |
parent | fde520bf6c1ac103d1d5904069da92acf14c9fd6 (diff) | |
download | newlib-e0b0f635738c6bfce3bffe916ebf41908b4620fb.zip newlib-e0b0f635738c6bfce3bffe916ebf41908b4620fb.tar.gz newlib-e0b0f635738c6bfce3bffe916ebf41908b4620fb.tar.bz2 |
2000-08-23 Werner Almesberger <Werner.Almesberger@epfl.ch>
* libc/stdlib/mprec.c (ulp, b2d, d2b): changed a few expressions
like x << y-z to the equivalent x << (y-z).
(d2b): changed if statements with assignment to perform the
assignment prior to the if check.
* libc/reent/reent.c: included stdlib.h for "_free_r" prototype.
* libc/unix/getpass.c (getpass): moved "echo" assignment out of if.
* libc/unix/ttyname.c: included string.h for "strcpy" prototype.
* libc/unix/getcwd.c (ISDOT): added parentheses to clarify && and ||
precedence.
* libc/include/sys/unistd.h: added "vfork" prototype (for popen.c).
Added "_execve" prototype (for execl.c, execle.c, execv.c, and
execve.c).
* libc/posix/popen.c (popen): added parentheses to clarify && and ||
precedence.
* libm/math/e_cosh.c (__ieee754_cosh): changed parentheses to
clarify && and || precendence (and to remove pascalism).
* libm/math/e_sinh.c (__ieee754_sinh): Ditto.
* libm/math/s_infconst.c: added another pair of braces to all
initializers for __infinity (need three: for __infinity[1] array,
for union __dmath, and for i[2]).
-rw-r--r-- | newlib/libm/math/e_cosh.c | 2 | ||||
-rw-r--r-- | newlib/libm/math/e_sinh.c | 2 | ||||
-rw-r--r-- | newlib/libm/math/s_infconst.c | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/newlib/libm/math/e_cosh.c b/newlib/libm/math/e_cosh.c index 54ca1fb..a6310bd 100644 --- a/newlib/libm/math/e_cosh.c +++ b/newlib/libm/math/e_cosh.c @@ -80,7 +80,7 @@ static double one = 1.0, half=0.5, huge = 1.0e300; /* |x| in [log(maxdouble), overflowthresold] */ GET_LOW_WORD(lx,x); if (ix<0x408633CE || - (ix==0x408633ce)&&(lx<=(__uint32_t)0x8fb9f87d)) { + (ix==0x408633ce && lx<=(__uint32_t)0x8fb9f87d)) { w = __ieee754_exp(half*fabs(x)); t = half*w; return t*w; diff --git a/newlib/libm/math/e_sinh.c b/newlib/libm/math/e_sinh.c index fd953dd..cf7ebfb 100644 --- a/newlib/libm/math/e_sinh.c +++ b/newlib/libm/math/e_sinh.c @@ -73,7 +73,7 @@ static double one = 1.0, shuge = 1.0e307; /* |x| in [log(maxdouble), overflowthresold] */ GET_LOW_WORD(lx,x); - if (ix<0x408633CE || (ix==0x408633ce)&&(lx<=(__uint32_t)0x8fb9f87d)) { + if (ix<0x408633CE || (ix==0x408633ce && lx<=(__uint32_t)0x8fb9f87d)) { w = __ieee754_exp(0.5*fabs(x)); t = h*w; return t*w; diff --git a/newlib/libm/math/s_infconst.c b/newlib/libm/math/s_infconst.c index e6b86d4..6b63afb 100644 --- a/newlib/libm/math/s_infconst.c +++ b/newlib/libm/math/s_infconst.c @@ -6,10 +6,10 @@ #ifndef _DOUBLE_IS_32BITS #ifdef __IEEE_BIG_ENDIAN -const union __dmath __infinity[1] = {{ 0x7ff00000, 0 }}; +const union __dmath __infinity[1] = {{{ 0x7ff00000, 0 }}}; #else -const union __dmath __infinity[1] = {{ 0, 0x7ff00000 }}; +const union __dmath __infinity[1] = {{{ 0, 0x7ff00000 }}}; #endif #else /* defined (_DOUBLE_IS_32BITS) */ -const union __dmath __infinity[1] = {{ 0x7f800000, 0 }}; +const union __dmath __infinity[1] = {{{ 0x7f800000, 0 }}}; #endif /* defined (_DOUBLE_IS_32BITS) */ |