From patchwork Thu Oct 23 17:36:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wilco X-Patchwork-Id: 402613 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 A943514009A for ; Fri, 24 Oct 2014 04:36:28 +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=scc xYnWOjptDw6Y+06XnKM45VcnI3VVuRsYlGWbDdvzZVhe3/0wGqFqlVQ1LWdkBbVj siS/5fI6YLiRmaxnKdnqSJGW7Rg2DjkdNDExBtd7qTWBVc+aWWM4s1DwgyIppUT7 dbAdXqK1LfBXUB7kgRVSrr4VD9ucfYeew7F4o4KY= 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=wnFCMeatA 2CXqq32mFJpAPElJeE=; b=saLQ/VbXvHgXnR2MTeBTq9MUiNkHbnlBjqp/1YYes Ry4NsxZzDcoN/pZ1pQyH9h2EtLNCupQrJsEXh1HH1fsMNknZkKmOgmg4mKqIEZc4 GZIrtjJy+B8xoJ5Qc2KfsKbg4fsAK1DWTkVInWZb+jb1t/4fTHtxRjRfQtUK/byH nc= Received: (qmail 3985 invoked by alias); 23 Oct 2014 17:36:20 -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 3975 invoked by uid 89); 23 Oct 2014 17:36:19 -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 11/13] AArch64: Cleanup fenv implementation Date: Thu, 23 Oct 2014 18:36:11 +0100 Message-ID: <001501cfeee7$d6128df0$8237a9d0$@com> MIME-Version: 1.0 X-MC-Unique: 114102318361400201 Call libc_fetestexcept_aarch64 from math_private.h rather than duplicating functionality. ChangeLog: 2014-10-23 Wilco Dijkstra * sysdeps/aarch64/fpu/ftestexcept.c (fetestexcept): Call libc_fetestexcept_aarch64. --- sysdeps/aarch64/fpu/ftestexcept.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/sysdeps/aarch64/fpu/ftestexcept.c b/sysdeps/aarch64/fpu/ftestexcept.c index 73e01d4..74e2d0f 100644 --- a/sysdeps/aarch64/fpu/ftestexcept.c +++ b/sysdeps/aarch64/fpu/ftestexcept.c @@ -16,17 +16,11 @@ License along with the GNU C Library; if not, see . */ -#include -#include +#include int fetestexcept (int excepts) { - fpu_fpsr_t fpsr; - - /* Get current exceptions. */ - _FPU_GETFPSR (fpsr); - - return fpsr & excepts & FE_ALL_EXCEPT; + return libc_fetestexcept_aarch64 (excepts); } libm_hidden_def (fetestexcept)