diff options
author | obrien <obrien@FreeBSD.org> | 2002-02-01 18:16:02 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-02-01 18:16:02 +0000 |
commit | c9ab9ae440a8066b2c2b85b157b1fdadcf09916a (patch) | |
tree | 086d9d6c8fbd4fc8fe4495059332f66bc0f8d12b /contrib/gcc/floatlib.c | |
parent | 2ecfd8bd04b63f335c1ec6295740a4bfd97a4fa6 (diff) | |
download | FreeBSD-src-c9ab9ae440a8066b2c2b85b157b1fdadcf09916a.zip FreeBSD-src-c9ab9ae440a8066b2c2b85b157b1fdadcf09916a.tar.gz |
Enlist the FreeBSD-CURRENT users as testers of what is to become Gcc 3.1.0.
These bits are taken from the FSF anoncvs repo on 1-Feb-2002 08:20 PST.
Diffstat (limited to 'contrib/gcc/floatlib.c')
-rw-r--r-- | contrib/gcc/floatlib.c | 103 |
1 files changed, 51 insertions, 52 deletions
diff --git a/contrib/gcc/floatlib.c b/contrib/gcc/floatlib.c index dc79139..929aef7 100644 --- a/contrib/gcc/floatlib.c +++ b/contrib/gcc/floatlib.c @@ -10,8 +10,7 @@ Warning! Only single-precision is actually implemented. This file won't really be much use until double-precision is supported. -However, once that is done, this file might eventually become a -replacement for libgcc1.c. It might also make possible +However, once that is done, this file might make possible cross-compilation for an IEEE target machine from a non-IEEE host such as a VAX. @@ -101,9 +100,9 @@ union float_long float __addsf3 (float a1, float a2) { - register long mant1, mant2; - register union float_long fl1, fl2; - register int exp1, exp2; + long mant1, mant2; + union float_long fl1, fl2; + int exp1, exp2; int sign = 0; fl1.f = a1; @@ -197,7 +196,7 @@ test_done: float __subsf3 (float a1, float a2) { - register union float_long fl1, fl2; + union float_long fl1, fl2; fl1.f = a1; fl2.f = a2; @@ -217,7 +216,7 @@ __subsf3 (float a1, float a2) long __cmpsf2 (float a1, float a2) { - register union float_long fl1, fl2; + union float_long fl1, fl2; fl1.f = a1; fl2.f = a2; @@ -238,9 +237,9 @@ __cmpsf2 (float a1, float a2) float __mulsf3 (float a1, float a2) { - register union float_long fl1, fl2; - register unsigned long result; - register int exp; + union float_long fl1, fl2; + unsigned long result; + int exp; int sign; fl1.f = a1; @@ -295,10 +294,10 @@ test_done: float __divsf3 (float a1, float a2) { - register union float_long fl1, fl2; - register int result; - register int mask; - register int exp, sign; + union float_long fl1, fl2; + int result; + int mask; + int exp, sign; fl1.f = a1; fl2.f = a2; @@ -359,9 +358,9 @@ __divsf3 (float a1, float a2) /* convert int to double */ double -__floatsidf (register long a1) +__floatsidf (long a1) { - register int sign = 0, exp = 31 + EXCESSD; + int sign = 0, exp = 31 + EXCESSD; union double_long dl; if (!a1) @@ -398,9 +397,9 @@ __floatsidf (register long a1) } double -__floatdidf (register long long a1) +__floatdidf (long long a1) { - register int exp = 63 + EXCESSD; + int exp = 63 + EXCESSD; union double_long dl; dl.l.upper = dl.l.lower = 0; @@ -429,13 +428,13 @@ __floatdidf (register long long a1) } float -__floatsisf (register long a1) +__floatsisf (long a1) { (float)__floatsidf(a1); } float -__floatdisf (register long long a1) +__floatdisf (long long a1) { (float)__floatdidf(a1); } @@ -444,7 +443,7 @@ __floatdisf (register long long a1) float __negsf2 (float a1) { - register union float_long fl1; + union float_long fl1; fl1.f = a1; if (!fl1.l) @@ -458,7 +457,7 @@ __negsf2 (float a1) double __negdf2 (double a1) { - register union double_long dl1; + union double_long dl1; dl1.d = a1; @@ -473,9 +472,9 @@ __negdf2 (double a1) double __extendsfdf2 (float a1) { - register union float_long fl1; - register union double_long dl; - register int exp; + union float_long fl1; + union double_long dl; + int exp; fl1.f = a1; @@ -498,10 +497,10 @@ __extendsfdf2 (float a1) float __truncdfsf2 (double a1) { - register int exp; - register long mant; - register union float_long fl; - register union double_long dl1; + int exp; + long mant; + union float_long fl; + union double_long dl1; dl1.d = a1; @@ -535,7 +534,7 @@ __truncdfsf2 (double a1) long __cmpdf2 (double a1, double a2) { - register union double_long dl1, dl2; + union double_long dl1, dl2; dl1.d = a1; dl2.d = a2; @@ -560,9 +559,9 @@ __cmpdf2 (double a1, double a2) long __fixdfsi (double a1) { - register union double_long dl1; - register int exp; - register long l; + union double_long dl1; + int exp; + long l; dl1.d = a1; @@ -588,9 +587,9 @@ __fixdfsi (double a1) long long __fixdfdi (double a1) { - register union double_long dl1; - register int exp; - register long long l; + union double_long dl1; + int exp; + long long l; dl1.d = a1; @@ -620,9 +619,9 @@ __fixdfdi (double a1) unsigned long __fixunsdfsi (double a1) { - register union double_long dl1; - register int exp; - register unsigned long l; + union double_long dl1; + int exp; + unsigned long l; dl1.d = a1; @@ -648,9 +647,9 @@ __fixunsdfsi (double a1) unsigned long long __fixunsdfdi (double a1) { - register union double_long dl1; - register int exp; - register unsigned long long l; + union double_long dl1; + int exp; + unsigned long long l; dl1.d = a1; @@ -677,9 +676,9 @@ __fixunsdfdi (double a1) double __adddf3 (double a1, double a2) { - register long long mant1, mant2; - register union double_long fl1, fl2; - register int exp1, exp2; + long long mant1, mant2; + union double_long fl1, fl2; + int exp1, exp2; int sign = 0; fl1.d = a1; @@ -766,7 +765,7 @@ test_done: double __subdf3 (double a1, double a2) { - register union double_long fl1, fl2; + union double_long fl1, fl2; fl1.d = a1; fl2.d = a2; @@ -785,9 +784,9 @@ __subdf3 (double a1, double a2) double __muldf3 (double a1, double a2) { - register union double_long fl1, fl2; - register unsigned long long result; - register int exp; + union double_long fl1, fl2; + unsigned long long result; + int exp; int sign; fl1.d = a1; @@ -839,9 +838,9 @@ test_done: double __divdf3 (double a1, double a2) { - register union double_long fl1, fl2; - register long long mask,result; - register int exp, sign; + union double_long fl1, fl2; + long long mask,result; + int exp, sign; fl1.d = a1; fl2.d = a2; |