summaryrefslogtreecommitdiff
path: root/include/ntp_fp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ntp_fp.h')
-rw-r--r--include/ntp_fp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/ntp_fp.h b/include/ntp_fp.h
index 1b97e8b..7806932 100644
--- a/include/ntp_fp.h
+++ b/include/ntp_fp.h
@@ -264,10 +264,13 @@ typedef u_int32 u_fp;
* headers. So far the problem has only been seen with gcc, but it
* may also affect Sun compilers, in which case the defined(__GNUC__)
* term should be removed.
+ * XSCALE also generates bad code for these, at least with GCC 3.3.5.
+ * This is unrelated to math.h, but the same solution applies.
*/
#if defined(HAVE_U_INT64) && \
!(defined(__SVR4) && defined(__sun) && \
- defined(sparc) && defined(__GNUC__))
+ defined(sparc) && defined(__GNUC__) || \
+ defined(__arm__) && defined(__XSCALE__) && defined(__GNUC__))
#include <math.h> /* ldexp() */