Date: Sun, 18 Nov 2012 20:57:15 +0100 From: Szabolcs Nagy <nsz@...t70.net> To: musl@...ts.openwall.com Subject: powerpc fenv i wrote an initial version of fenv for ppc (absolutely not tested) i followed glibc and used double for fenv_t (it makes fesetenv and fegetenv a bit shorter than with using a 32bit type) i don't know what section the target of the FE_DFL_ENV pointer should go and what's the proper asm syntax for objects (i put a 0 value in .sdata for now) ps. the current feholdexcept is wrong, it should feclearexcept(FE_ALL_EXCEPT) pps. i put a FENV_ACCESS ON pragma in feupdateenv. it's silly, since there is no fp operation that could go wrong there, but c99 implies that every time c code may access the fenv it must be present, so probably the other c functions need it as well (it does not hurt as it's a nop on gcc) View attachment "fenv.h" of type "text/x-chdr" (807 bytes) View attachment "fenv.s" of type "text/plain" (1721 bytes)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.