Optimized versions now buildable on Solaris.

llvm-svn: 78457
This commit is contained in:
Edward O'Callaghan 2009-08-08 04:43:56 +00:00
parent 1be453b462
commit f8ba5e9e6e
5 changed files with 28 additions and 15 deletions

View File

@ -1,9 +1,14 @@
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
/* This file is distributed under the University of Illinois Open Source
* License. See LICENSE.TXT for details.
*/
#include "DD.h"
#include <math.h>
#if !defined(INFINITY) && defined(HUGE_VAL)
#define INFINITY HUGE_VAL
#endif /* INFINITY */
#define makeFinite(x) { \
(x).hi = __builtin_copysign(isinf((x).hi) ? 1.0 : 0.0, (x).hi); \
(x).lo = 0.0; \

View File

@ -1,9 +1,14 @@
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
/* This file is distributed under the University of Illinois Open Source
* License. See LICENSE.TXT for details.
*/
#include "DD.h"
#include <math.h>
#if !defined(INFINITY) && defined(HUGE_VAL)
#define INFINITY HUGE_VAL
#endif /* INFINITY */
#define makeFinite(x) { \
(x).hi = __builtin_copysign(isinf((x).hi) ? 1.0 : 0.0, (x).hi); \
(x).lo = 0.0; \

View File

@ -1,7 +1,8 @@
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
/* This file is distributed under the University of Illinois Open Source
* License. See LICENSE.TXT for details.
*/
// double __floatdidf(di_int a);
/* double __floatdidf(di_int a); */
#ifdef __x86_64__
@ -12,4 +13,4 @@ double __floatdidf(int64_t a)
return (double)a;
}
#endif // __x86_64__
#endif /* __x86_64__ */

View File

@ -1,5 +1,6 @@
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
/* This file is distributed under the University of Illinois Open Source
* License. See LICENSE.TXT for details.
*/
#ifdef __x86_64__
@ -10,4 +11,4 @@ float __floatdisf(int64_t a)
return (float)a;
}
#endif // __x86_64__
#endif /* __x86_64__ */

View File

@ -1,7 +1,8 @@
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
/* This file is distributed under the University of Illinois Open Source
* License. See LICENSE.TXT for details.
*/
// long double __floatdixf(di_int a);
/* long double __floatdixf(di_int a); */
#ifdef __x86_64__
@ -12,4 +13,4 @@ long double __floatdixf(int64_t a)
return (long double)a;
}
#endif // __i386__
#endif /* __i386__ */