From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24255 invoked by alias); 20 Sep 2013 15:01:02 -0000 Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org Received: (qmail 24241 invoked by uid 89); 20 Sep 2013 15:01:02 -0000 Received: from mail-ob0-f178.google.com (HELO mail-ob0-f178.google.com) (209.85.214.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 20 Sep 2013 15:01:02 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_THREADED autolearn=ham version=3.3.2 X-HELO: mail-ob0-f178.google.com Received: by mail-ob0-f178.google.com with SMTP id uy5so677518obc.37 for ; Fri, 20 Sep 2013 08:00:59 -0700 (PDT) X-Received: by 10.182.113.195 with SMTP id ja3mr1730993obb.46.1379689259693; Fri, 20 Sep 2013 08:00:59 -0700 (PDT) Received: from anchor.twiddle.net (50-194-63-110-static.hfc.comcastbusiness.net. [50.194.63.110]) by mx.google.com with ESMTPSA id it7sm6788132obb.11.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 20 Sep 2013 08:00:58 -0700 (PDT) Message-ID: <523C6327.2020303@twiddle.net> Date: Fri, 20 Sep 2013 15:01:00 -0000 From: Richard Henderson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 MIME-Version: 1.0 To: Steve Ellcey CC: libc-ports@sourceware.org Subject: Re: [PATCH] Speed up libm on MIPS References: <1379631395.5770.445.camel@ubuntu-sellcey> In-Reply-To: <1379631395.5770.445.camel@ubuntu-sellcey> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg00113.txt.bz2 On 09/19/2013 03:56 PM, Steve Ellcey wrote: > +libc_fesetenv_mips (fenv_t *envp) > +{ > + fpu_control_t cw; > + > + /* Read first current state to flush fpu pipeline. */ > + _FPU_GETCW (cw); > + > + if (envp == FE_DFL_ENV) > + _FPU_SETCW (_FPU_DEFAULT); > + else if (envp == FE_NOMASK_ENV) > + _FPU_SETCW (_FPU_IEEE); > + else > + _FPU_SETCW (envp->__fp_control_register); > +} You shouldn't need the two default env checks, since this private interface will always be used in pairs. r~