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