diff options
Diffstat (limited to 'newlib/libm/common/s_remquo.c')
-rw-r--r-- | newlib/libm/common/s_remquo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libm/common/s_remquo.c b/newlib/libm/common/s_remquo.c index 9e18ab1..8ae2875 100644 --- a/newlib/libm/common/s_remquo.c +++ b/newlib/libm/common/s_remquo.c @@ -104,8 +104,8 @@ remquo(double x, double y, int *quo) goto fixup; /* |x|<|y| return x or x-y */ } if(lx==ly) { - *quo = 1; - return Zero[(__uint32_t)sx>>31]; /* |x|=|y| return x*0*/ + *quo = (sxy ? -1 : 1); + return Zero[(__uint32_t)sx>>31]; /* |x|=|y| return x*0 */ } } |