2012-01-20 18:45:26 +01:00
|
|
|
--- src/cmd/ksh93/features/math.sh
|
2016-10-12 13:36:28 +02:00
|
|
|
+++ src/cmd/ksh93/features/math.sh 2012-01-20 14:23:38.000000000 +0000
|
|
|
|
@@ -130,6 +130,18 @@ echo "#include <math.h>"
|
2012-01-20 18:45:26 +01:00
|
|
|
case $_hdr_ieeefp in
|
|
|
|
1) echo "#include <ieeefp.h>" ;;
|
|
|
|
esac
|
|
|
|
+cat <<!
|
|
|
|
+#if defined(__ia64__) && defined(signbit)
|
|
|
|
+# if defined __GNUC__ && __GNUC__ >= 4
|
2016-10-12 13:36:28 +02:00
|
|
|
+# define __signbitl(f) __builtin_signbitl(f)
|
2012-01-20 18:45:26 +01:00
|
|
|
+# else
|
|
|
|
+# include <ast_float.h>
|
|
|
|
+# if _lib_copysignl
|
2016-10-12 13:36:28 +02:00
|
|
|
+# define __signbitl(f) (int)(copysignl(1.0,(f))<0.0)
|
2012-01-20 18:45:26 +01:00
|
|
|
+# endif
|
|
|
|
+# endif
|
|
|
|
+#endif
|
|
|
|
+!
|
2016-10-12 13:36:28 +02:00
|
|
|
echo
|
2012-01-20 18:45:26 +01:00
|
|
|
|
|
|
|
: generate the intercept functions and table entries
|
2013-02-05 18:51:33 +01:00
|
|
|
--- src/lib/libast/sfio/sfcvt.c
|
2016-10-12 13:36:28 +02:00
|
|
|
+++ src/lib/libast/sfio/sfcvt.c 2013-02-01 17:13:48.305452072 +0000
|
2013-02-05 18:51:33 +01:00
|
|
|
@@ -54,6 +54,16 @@ static char *Zero = "0";
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
+#if defined(__ia64__) && defined(signbit)
|
|
|
|
+# if defined __GNUC__ && __GNUC__ >= 4
|
|
|
|
+# define __signbitl(f) __builtin_signbitl(f)
|
|
|
|
+# else
|
|
|
|
+# if _lib_copysignl
|
|
|
|
+# define __signbitl(f) (int)(copysignl(1.0,(f))<0.0)
|
|
|
|
+# endif
|
|
|
|
+# endif
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#if !_lib_signbit
|
|
|
|
#if !_ast_fltmax_double
|
|
|
|
static int neg0ld(Sfdouble_t f)
|