Rev 731 | Rev 737 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 731 | Rev 734 | ||
---|---|---|---|
Line 54... | Line 54... | ||
54 | return subFloat32(fa,fb).f; |
54 | return subFloat32(fa,fb).f; |
55 | } |
55 | } |
56 | return addFloat32(fa,fb).f; |
56 | return addFloat32(fa,fb).f; |
57 | } |
57 | } |
58 | 58 | ||
- | 59 | double __adddf3(double a, double b) |
|
- | 60 | { |
|
- | 61 | float64 da, db; |
|
- | 62 | da.d=a; |
|
- | 63 | db.d=b; |
|
- | 64 | if (da.parts.sign!=db.parts.sign) { |
|
- | 65 | if (da.parts.sign) { |
|
- | 66 | da.parts.sign=0; |
|
- | 67 | return subFloat64(db,da).d; |
|
- | 68 | }; |
|
- | 69 | db.parts.sign=0; |
|
- | 70 | return subFloat64(da,db).d; |
|
- | 71 | } |
|
- | 72 | return addFloat64(da,db).d; |
|
- | 73 | } |
|
- | 74 | ||
59 | float __subsf3(float a, float b) |
75 | float __subsf3(float a, float b) |
60 | { |
76 | { |
61 | float32 fa, fb; |
77 | float32 fa, fb; |
62 | fa.f=a; |
78 | fa.f=a; |
63 | fb.f=b; |
79 | fb.f=b; |
Line 66... | Line 82... | ||
66 | return addFloat32(fa,fb).f; |
82 | return addFloat32(fa,fb).f; |
67 | } |
83 | } |
68 | return subFloat32(fa,fb).f; |
84 | return subFloat32(fa,fb).f; |
69 | } |
85 | } |
70 | 86 | ||
- | 87 | double __subdf3(double a, double b) |
|
- | 88 | { |
|
- | 89 | float64 da, db; |
|
- | 90 | da.d = a; |
|
- | 91 | db.d = b; |
|
- | 92 | if (da.parts.sign != db.parts.sign) { |
|
- | 93 | db.parts.sign = !db.parts.sign; |
|
- | 94 | return addFloat64(da, db).d; |
|
- | 95 | } |
|
- | 96 | return subFloat64(da, db).d; |
|
- | 97 | } |
|
- | 98 | ||
71 | float __mulsf3(float a, float b) |
99 | float __mulsf3(float a, float b) |
72 | { |
100 | { |
73 | float32 fa, fb; |
101 | float32 fa, fb; |
74 | fa.f=a; |
102 | fa.f=a; |
75 | fb.f=b; |
103 | fb.f=b; |