From patchwork Thu Oct 23 17:34:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wilco Dijkstra X-Patchwork-Id: 3342 Received: (qmail 30655 invoked by alias); 23 Oct 2014 17:34:46 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 30605 invoked by uid 89); 23 Oct 2014 17:34:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com From: "Wilco Dijkstra" To: Subject: [PATCH 5/13] AArch64: Cleanup fenv implementation Date: Thu, 23 Oct 2014 18:34:40 +0100 Message-ID: <000f01cfeee7$9fffef00$dfffcd00$@com> MIME-Version: 1.0 X-MC-Unique: 114102318344200201 Cleanup fedisableexcept to use the same logic as the ARM version. No functional changes. ChangeLog: 2014-10-23 Wilco Dijkstra * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Simplify logic. --- sysdeps/aarch64/fpu/fedisblxcpt.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sysdeps/aarch64/fpu/fedisblxcpt.c b/sysdeps/aarch64/fpu/fedisblxcpt.c index c43335c..1ea6e10 100644 --- a/sysdeps/aarch64/fpu/fedisblxcpt.c +++ b/sysdeps/aarch64/fpu/fedisblxcpt.c @@ -24,18 +24,13 @@ fedisableexcept (int excepts) { fpu_control_t fpcr; fpu_control_t fpcr_new; - int original_excepts; _FPU_GETCW (fpcr); - - original_excepts = (fpcr >> FE_EXCEPT_SHIFT) & FE_ALL_EXCEPT; - excepts &= FE_ALL_EXCEPT; - fpcr_new = fpcr & ~(excepts << FE_EXCEPT_SHIFT); if (fpcr != fpcr_new) _FPU_SETCW (fpcr_new); - return original_excepts; + return (fpcr >> FE_EXCEPT_SHIFT) & FE_ALL_EXCEPT; }