From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.2 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by inbox.vuxu.org (OpenSMTPD) with SMTP id 9544bf69 for ; Fri, 7 Feb 2020 23:53:30 +0000 (UTC) Received: (qmail 11305 invoked by uid 550); 7 Feb 2020 23:53:28 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 11284 invoked from network); 7 Feb 2020 23:53:27 -0000 X-Authentication-Warning: key0.esi.com.au: damianm owned process doing -bs Date: Sat, 8 Feb 2020 10:53:13 +1100 (AEDT) From: Damian McGuckin To: musl@lists.openwall.com In-Reply-To: <20200207213857.GL1663@brightrain.aerifal.cx> Message-ID: References: <20200118094015.GE23985@port70.net> <20200124011122.GP30412@brightrain.aerifal.cx> <20200124045554.GR30412@brightrain.aerifal.cx> <20200124134402.GS30412@brightrain.aerifal.cx> <20200125001100.GY30412@brightrain.aerifal.cx> <20200207213857.GL1663@brightrain.aerifal.cx> User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: Re: [musl] 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