cvs commit: src/lib/msun/src s_fma.c s_fmal.c

David Schultz das at FreeBSD.org
Thu Apr 3 06:14:52 UTC 2008


das         2008-04-03 06:14:51 UTC

  FreeBSD src repository

  Modified files:
    lib/msun/src         s_fma.c s_fmal.c 
  Log:
  Fix some corner cases:
  - fma(x, y, z) returns z, not NaN, if z is infinite, x and y are finite,
    x*y overflows, and x*y and z have opposite signs.
  - fma(x, y, z) doesn't generate an overflow, underflow, or inexact exception
    if z is NaN or infinite, as per IEEE 754R.
  - If the rounding mode is set to FE_DOWNWARD, fma(1.0, 0.0, -0.0) is -0.0,
    not +0.0.
  
  Revision  Changes    Path
  1.5       +10 -5     src/lib/msun/src/s_fma.c
  1.4       +10 -5     src/lib/msun/src/s_fmal.c


More information about the cvs-src mailing list