This is the mail archive of the libc-alpha@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]

"1 + -1" when rounding to -inf


[ Resending this as I got the libc-alpha address wrong the first time
  around. ]

What is the result of this supposed to be?  Is it "-0.0"?

Here's why I'm asking.  log1p_downward(-1) is failing on sparc for
"long double" giving INF instead of -INF.

I wrote a simple test program and, with FE_DOWNWARD, the sequence is:

-1 + 1 == -0.0L

-1L / -0.0L == INF

Any insight into what should be happening here would be appreciated.


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