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/16296] New: fegetround is pure?


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

            Bug ID: 16296
           Summary: fegetround is pure?
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: marc.glisse at normalesup dot org

I could be wrong, but it seems that the function fegetround could get
__attribute_pure__, since it only reads a global state, and in particular the
usual optimizations (remove it if the result is unused, reuse the result from
the first call when there are two calls in a row) should be fine.

-- 
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]