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 Dijkstra X-Patchwork-Id: 3347 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; }