diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2013-05-16 20:23:04 +0200 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2013-05-16 20:23:04 +0200 |
commit | f4cf3993aa6a24bec7df00c295dcf6de90d62c24 (patch) | |
tree | 3f9244b90ddd8efb81b8c920d85799f5d7afe6c6 /tests/misc.c | |
parent | e5848c466fdbbca4e96c9cbf1543710bcfc28cad (diff) | |
download | gmp-f4cf3993aa6a24bec7df00c295dcf6de90d62c24.tar.gz |
(tests_hardware_getround, tests_hardware_setround): Avoid assembly dependency unless WANT_ASSEMBLY.
Diffstat (limited to 'tests/misc.c')
-rw-r--r-- | tests/misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/misc.c b/tests/misc.c index 676c489ea..31b1e152c 100644 --- a/tests/misc.c +++ b/tests/misc.c @@ -1,6 +1,6 @@ /* Miscellaneous test program support routines. -Copyright 2000, 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +Copyright 2000, 2001, 2002, 2003, 2005, 2013 Free Software Foundation, Inc. This file is part of the GNU MP Library test suite. @@ -465,7 +465,7 @@ tests_isinf (double d) int tests_hardware_setround (int mode) { -#if HAVE_HOST_CPU_FAMILY_x86 +#if WANT_ASSEMBLY && HAVE_HOST_CPU_FAMILY_x86 int rc; switch (mode) { case 0: rc = 0; break; /* nearest */ @@ -486,7 +486,7 @@ tests_hardware_setround (int mode) int tests_hardware_getround (void) { -#if HAVE_HOST_CPU_FAMILY_x86 +#if WANT_ASSEMBLY && HAVE_HOST_CPU_FAMILY_x86 switch ((x86_fstcw () & ~0xC00) >> 10) { case 0: return 0; break; /* nearest */ case 1: return 3; break; /* down */ |