about summary refs log tree commit diff
path: root/sysdeps/powerpc/bits
diff options
context:
space:
mode:
authorMichael Meissner <meissner@linux.vnet.ibm.com>2010-10-19 12:49:05 -0400
committerUlrich Drepper <drepper@gmail.com>2010-10-19 12:49:05 -0400
commitd20501241ea423e477b357d93147530987e0d89e (patch)
treed3f6778111be8ffde5964e2c2903a8b6fe697cdf /sysdeps/powerpc/bits
parent6ce0bb748d7de856cb2076b41625fe7cedac5e16 (diff)
downloadglibc-d20501241ea423e477b357d93147530987e0d89e.tar.gz
glibc-d20501241ea423e477b357d93147530987e0d89e.tar.xz
glibc-d20501241ea423e477b357d93147530987e0d89e.zip
Add C99 FP_FAST_FMA{,F,L} macros to math.h
Diffstat (limited to 'sysdeps/powerpc/bits')
-rw-r--r--sysdeps/powerpc/bits/mathdef.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/powerpc/bits/mathdef.h b/sysdeps/powerpc/bits/mathdef.h
index b79cc6ff96..0c99248bed 100644
--- a/sysdeps/powerpc/bits/mathdef.h
+++ b/sysdeps/powerpc/bits/mathdef.h
@@ -61,4 +61,8 @@ typedef double double_t;
 # define FP_ILOGB0	(-2147483647)
 # define FP_ILOGBNAN	(2147483647)
 
+/* The powerpc has a combined multiply/add instruction.  */
+# define FP_FAST_FMA 1
+# define FP_FAST_FMAF 1
+
 #endif	/* ISO C99 */