Re: [PATCH v2] Add i386 and x86_64 fenv support from Cygwin.
Brian Inglis <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
On 2019-09-03 10:02, [email protected] wrote: > From: Joel Sherrill <[email protected]> > newlib/libc/machine/i386/sys/fenv.h | 1 + > newlib/libc/machine/x86_64/sys/fenv.h | 170 ++++++++++++ > create mode 120000 newlib/libc/machine/i386/sys/fenv.h > create mode 100644 newlib/libc/machine/x86_64/sys/fenv.h > --- /dev/null > +++ b/newlib/libc/machine/x86_64/sys/fenv.h > +/* Primary sources: > + > + The Open Group Base Specifications Issue 6: > + http://www.opengroup.org/onlinepubs/000095399/basedefs/fenv.h.html > + > + C99 Language spec (draft n1256): > + <url unknown> http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf (2007) > + > + Intel(R) 64 and IA-32 Architectures Software Developer's Manuals: > + http://www.intel.com/products/processor/manuals/ > + > + GNU C library manual pages: > + http://www.gnu.org/software/libc/manual/html_node/Control-Functions.html > + http://www.gnu.org/software/libc/manual/html_node/Rounding.html > + http://www.gnu.org/software/libc/manual/html_node/FP-Exceptions.html > + http://www.gnu.org/software/libc/manual/html_node/Status-bit-operations.html > + > + Linux online man page(s): > + http://linux.die.net/man/3/fegetexcept > + > + The documentation quotes these sources for reference. All definitions and > + code have been developed solely based on the information from these specs. > + > +*/ Shouldn't this header info also appear in i386/sys/fenv.h? Draft standards are mentioned in the catalogue: http://www.open-std.org/jtc1/sc22/wg14/www/wg14_document_log.htm but you have to check PDFs are unlocked - some recent drafts are locked. Not sure why you mention C99, newer standards are available: C2011 http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf (2011) C2017 https://web.archive.org/web/20181230041359if_/http://www.open-std.org/jtc1/sc22/wg14/www/abq/c17_updated_proposed_fdis.pdf (2017) C202X http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2385.pdf (2019) -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised.