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 Dijkstra X-Patchwork-Id: 3348 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)