From patchwork Thu Oct 23 17:36:01 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wilco X-Patchwork-Id: 402612 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 2C6C014009A for ; Fri, 24 Oct 2014 04:36:15 +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=JaN 9A6khH9pojGRiH1DRQM4M8EDCSxAfFCoSr6QZxOqCAxUclO0DspYjXTXEZtufNQa OEvsP8EHzc37hKU3tsnT9gWbeEkI6lrBUa+TiuxeM50N7v39v+7xuW/L0T5mfM+Q XDGTuxFmhYXhFzDLCdsLOjDdQQhqVrYPgItSp3O0= 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=LG/fu3pVQ +Pc0fjw8RgVZIlpwiM=; b=JVdKY3MqKEVRD2hH7HW5lNc5OXpbwtP8Ji9XXgXTQ own7nMuBjAR09xh3qHRSj3JTUIncSwv223tZArQreMt6IawCM36+k5C+/UduJxjq 0zN7cUXFv9MAqiGLzOVew7Rmpj2bTvSff6AuWAt2gHyPHWZXMTupnUO7Tn/YxEUF eA= Received: (qmail 3025 invoked by alias); 23 Oct 2014 17:36:06 -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 2971 invoked by uid 89); 23 Oct 2014 17:36:06 -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 10/13] AArch64: Cleanup fenv implementation Date: Thu, 23 Oct 2014 18:36:01 +0100 Message-ID: <001401cfeee7$d09d4ea0$71d7ebe0$@com> MIME-Version: 1.0 X-MC-Unique: 114102318360204001 Call libc_fetestexcept_aarch64 from math_private.h rather than duplicating functionality. ChangeLog: 2014-10-23 Wilco Dijkstra * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag): Call libc_fetestexcept_aarch64. --- sysdeps/aarch64/fpu/fgetexcptflg.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/sysdeps/aarch64/fpu/fgetexcptflg.c b/sysdeps/aarch64/fpu/fgetexcptflg.c index d25da1ca..364f5da 100644 --- a/sysdeps/aarch64/fpu/fgetexcptflg.c +++ b/sysdeps/aarch64/fpu/fgetexcptflg.c @@ -16,18 +16,11 @@ License along with the GNU C Library; if not, see . */ -#include -#include +#include int fegetexceptflag (fexcept_t *flagp, int excepts) { - fpu_fpsr_t fpsr; - - /* Get the current exceptions. */ - _FPU_GETFPSR (fpsr); - - *flagp = fpsr & excepts & FE_ALL_EXCEPT; - + *flagp = libc_fetestexcept_aarch64 (excepts); return 0; }