Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 8 Feb 2020 10:53:13 +1100 (AEDT)
From: Damian McGuckin <damianm@....com.au>
To: musl@...ts.openwall.com
Subject: Re: Considering x86-64 fenv.s to C


Merging for i386.

Comments?

fegetenv(fenv_t *e)

 	as per i387 assembler instruction - fnstenv
 	+ merge MXCSR exception bits into e-> __status_word exception bits

fesetenv (fenv_t *e)
 	as per i387 assembler instruction - fldenv
 	+ merge e->__control_word rounding bits into MXCSR rounding bits
 	+ clear MXCSR exception bits

feupdateenv(fenv_t *e)

 	merge existing MXCSR and X87 exception bits  e->__status_word
 	fesetenv(e) as above

feholdexcept(fenv_t)

 	fegetenv(e) as above
 	clear MXCSR exception bits
 	clear X87 exception bits

Regards - Damian

Pacific Engineering Systems International, 277-279 Broadway, Glebe NSW 2037
Ph:+61-2-8571-0847 .. Fx:+61-2-9692-9623 | unsolicited email not wanted here
Views & opinions here are mine and not those of any past or present employer

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.