]> gcc.gnu.org Git - gcc.git/blobdiff - libgcc/config/rs6000/_mulkc3.c
PR target/107299: Fix build issue when long double is IEEE 128-bit
[gcc.git] / libgcc / config / rs6000 / _mulkc3.c
index cfae81f8b5fcdbdd544eb9ecc1ea7db53f576581..290dc89bbc1d535bc67b9de75a934262081aa6a8 100644 (file)
@@ -26,8 +26,15 @@ see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #include "soft-fp.h"
 #include "quad-float128.h"
 
+#ifndef __LONG_DOUBLE_IEEE128__
 #define COPYSIGN(x,y) __builtin_copysignf128 (x, y)
 #define INFINITY __builtin_inff128 ()
+
+#else
+#define COPYSIGN(x,y) __builtin_copysignl (x, y)
+#define INFINITY __builtin_infl ()
+#endif
+
 #define isnan __builtin_isnan
 #define isinf __builtin_isinf
 
This page took 0.025964 seconds and 5 git commands to generate.