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

[Bug math/17967] New: [powerpc] sqrtf inaccurate results (non-default rounding modes) / exceptions


https://sourceware.org/bugzilla/show_bug.cgi?id=17967

            Bug ID: 17967
           Summary: [powerpc] sqrtf inaccurate results (non-default
                    rounding modes) / exceptions
           Product: glibc
           Version: 2.21
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: jsm28 at gcc dot gnu.org
              Host: powerpc*-*-*

The powerpc sqrtf implementation for when _ARCH_PPCSQ is not defined sometimes
fails to produce the "inexact" exception, and produces bad results in some
rounding modes, e.g.:

Failure: sqrt (0xcp-4): Exception "Inexact" not set
Failure: sqrt_downward (0x5.c59efp+4): Exception "Inexact" not set
Failure: Test: sqrt_downward (0x5.c59efp+4)
Result:
 is:          9.60995864868164062500e+00   0x1.3384c800000000000000p+3
 should be:   9.60995769500732421875e+00   0x1.3384c600000000000000p+3
 difference:  9.53674316406250000000e-07   0x1.00000000000000000000p-20
 ulp       :  1.0000
 max.ulp   :  0.0000

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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