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 X-Patchwork-Id: 402607 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id F1D36140082 for ; Fri, 24 Oct 2014 04:34:53 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=Zsw 1ssKIEi7CdObCiVPgNioPYE6PHOhmQUSHxKiU/16CZmndYfVipdSJ4jgr4Ui0BK9 wfxlf40/T8/elCyvs4RFwu6eLW/1e8HRlZSQZIFhOLrbPw61Tszpmoofs6azstcu VNcz+dW8ZVxJvukUeZOHEiOm4K34/yX7aWEhLLTg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:mime-version :content-type:content-transfer-encoding; s=default; bh=fd4pF84DP valW2H0WoquXG/+e7w=; b=rHIwJaeyoNFcSYlrQyq0StGRuwQfKLwJJdz51Wr1i E5mH7sA5Y/6d17TYAuemCq6ikTl0UDoXNPeHwUBuDTtoA/1hIN2tyF54t/zEQBRi woMBEwUbgzqC8+6Jx733DVDLBp9915KsrdczWmEzPeufZlf793wnA57+TVByU/8q cI= 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; }