This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/16296] New: fegetround is pure?
- From: "marc.glisse at normalesup dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 05 Dec 2013 23:18:18 +0000
- Subject: [Bug math/16296] New: fegetround is pure?
- Auto-submitted: auto-generated
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.