diff options
author | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-08-08 04:43:56 +0000 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@auroraux.org> | 2009-08-08 04:43:56 +0000 |
commit | 33c134702e274fdbcb1672771a137efb82b498b2 (patch) | |
tree | 2e66478108cb19af264293d78af754ef44b00fd9 /lib/ppc | |
parent | bb119a4fae90e73d48c078024e101bebfdfae5d8 (diff) | |
download | compiler-rt-33c134702e274fdbcb1672771a137efb82b498b2.tar.gz |
Optimized versions now buildable on Solaris.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@78457 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ppc')
-rw-r--r-- | lib/ppc/divtc3.c | 9 | ||||
-rw-r--r-- | lib/ppc/multc3.c | 9 |
2 files changed, 14 insertions, 4 deletions
diff --git a/lib/ppc/divtc3.c b/lib/ppc/divtc3.c index bec6b5353..dbb71ecc3 100644 --- a/lib/ppc/divtc3.c +++ b/lib/ppc/divtc3.c @@ -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; \ diff --git a/lib/ppc/multc3.c b/lib/ppc/multc3.c index d5a77b178..0944263b2 100644 --- a/lib/ppc/multc3.c +++ b/lib/ppc/multc3.c @@ -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; \ |