mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
feature tests: signbit detection fix for ia64
An Intel Itanium fix from OpenSUSE: https://build.opensuse.org/package/view_file/shells/ksh/ksh93-ia64.dif
This commit is contained in:
parent
7a6980a380
commit
0684806d47
2 changed files with 22 additions and 0 deletions
|
@ -135,6 +135,18 @@ echo "#include <math.h>"
|
|||
case $_hdr_ieeefp in
|
||||
1) echo "#include <ieeefp.h>" ;;
|
||||
esac
|
||||
cat <<!
|
||||
#if defined(__ia64__) && defined(signbit)
|
||||
# if defined __GNUC__ && __GNUC__ >= 4
|
||||
# define __signbitl(f) __builtin_signbitl(f)
|
||||
# else
|
||||
# include <ast_float.h>
|
||||
# if _lib_copysignl
|
||||
# define __signbitl(f) (int)(copysignl(1.0,(f))<0.0)
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
!
|
||||
echo
|
||||
|
||||
: generate the intercept functions and table entries
|
||||
|
|
|
@ -55,6 +55,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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue