From patchwork Thu Oct 23 17:35:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wilco X-Patchwork-Id: 402609 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 EB00E14009A for ; Fri, 24 Oct 2014 04:35:20 +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=KNW 9f2uR9AC5x33SP5W3/vy4FILjweFzYe5vpOVTFXRnNo2KSO1UZ/+zJ2Hz3/d3WEK tBQoskJPaGM0KhhXZI9gr4ULLTnJVAJ/V+BinI1LCIu+1YMOunF2BZOanZGMeg1Y 95dIO47aC1wAxsJey38F1Cvcbx3Py0ZDj8t5RnPE= 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=UK/ZSEfS4 6KOzMAKFrq6LcKbSLk=; b=FQF2d5eRL39p1t5gX3V/kxLCr6b++31a2GCygKe8D dm5Y8pHMWEBRgDsYBCX7DZSpEDu9t25Z/+Zdwnir0JbaIfTjwCUQrhsIuO3EghYQ YP97BX6dd8Rhjgd9EO8RbtfnGO5vb1li2myaUUdcgfRN+EMArynFcvvHrJi0cexK Cg= Received: (qmail 32418 invoked by alias); 23 Oct 2014 17:35:10 -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 32363 invoked by uid 89); 23 Oct 2014 17:35:10 -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 7/13] AArch64: Cleanup fenv implementation Date: Thu, 23 Oct 2014 18:35:04 +0100 Message-ID: <001101cfeee7$ae6f75b0$0b4e6110$@com> MIME-Version: 1.0 X-MC-Unique: 114102318350603601 Call get_rounding_mode rather than duplicating functionality. ChangeLog: 2014-10-23 Wilco Dijkstra * sysdeps/aarch64/fpu/fegetround.c (fegetround): Call get_rounding_mode. --- sysdeps/aarch64/fpu/fegetround.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sysdeps/aarch64/fpu/fegetround.c b/sysdeps/aarch64/fpu/fegetround.c index a970ce3..a32532b 100644 --- a/sysdeps/aarch64/fpu/fegetround.c +++ b/sysdeps/aarch64/fpu/fegetround.c @@ -16,14 +16,11 @@ License along with the GNU C Library; if not, see . */ -#include -#include +#include int fegetround (void) { - fpu_control_t fpcr; - _FPU_GETCW (fpcr); - return fpcr & FE_TOWARDZERO; + return get_rounding_mode (); } libm_hidden_def (fegetround)