git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
arch
/
m68k
/
fpsp040
/
decbin.S
diff --git
a/arch/m68k/fpsp040/decbin.S
b/arch/m68k/fpsp040/decbin.S
index
1862d50
..
16ed796
100644
(file)
--- a/
arch/m68k/fpsp040/decbin.S
+++ b/
arch/m68k/fpsp040/decbin.S
@@
-60,18
+60,17
@@
| it is negative.
|
| Clean up and return. Check if the final mul or div resulted
| it is negative.
|
| Clean up and return. Check if the final mul or div resulted
-| in an inex2 exception. If so, set inex1 in the fpsr and
+| in an inex2 exception. If so, set inex1 in the fpsr and
| check if the inex1 exception is enabled. If so, set d7 upper
| word to $0100. This will signal unimp.sa that an enabled inex1
| exception occurred. Unimp will fix the stack.
| check if the inex1 exception is enabled. If so, set d7 upper
| word to $0100. This will signal unimp.sa that an enabled inex1
| exception occurred. Unimp will fix the stack.
-|
+|
| Copyright (C) Motorola, Inc. 1990
| All Rights Reserved
|
| Copyright (C) Motorola, Inc. 1990
| All Rights Reserved
|
-| THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF MOTOROLA
-| The copyright notice above does not evidence any
-| actual or intended publication of such source code.
+| For details on the license for this file, please see the
+| file, README, in this same directory.
|DECBIN idnt 2,1 | Motorola 040 Floating Point Software Package
|DECBIN idnt 2,1 | Motorola 040 Floating Point Software Package
@@
-107,12
+106,12
@@
RTABLE: .byte 0,0,0,0
.set FSTRT,0
|
.set ESTRT,4
.set FSTRT,0
|
.set ESTRT,4
- .set EDIGITS,2 |
+ .set EDIGITS,2 |
|
| Constants in single precision
|
| Constants in single precision
-FZERO:
.long 0x00000000
-FONE: .long 0x3F800000
-FTEN: .long 0x41200000
+FZERO: .long 0x00000000
+FONE: .long 0x3F800000
+FTEN: .long 0x41200000
.set TEN,10
.set TEN,10
@@
-224,7
+223,7
@@
nextlw:
addql #1,%d1 |inc lw pointer in mantissa
cmpl #2,%d1 |test for last lw
ble loadlw |if not, get last one
addql #1,%d1 |inc lw pointer in mantissa
cmpl #2,%d1 |test for last lw
ble loadlw |if not, get last one
-
+
|
| Check the sign of the mant and make the value in fp0 the same sign.
|
|
| Check the sign of the mant and make the value in fp0 the same sign.
|
@@
-232,7
+231,7
@@
m_sign:
btst #31,(%a0) |test sign of the mantissa
beq ap_st_z |if clear, go to append/strip zeros
fnegx %fp0 |if set, negate fp0
btst #31,(%a0) |test sign of the mantissa
beq ap_st_z |if clear, go to append/strip zeros
fnegx %fp0 |if set, negate fp0
-
+
|
| Append/strip zeros:
|
|
| Append/strip zeros:
|
@@
-407,7
+406,7
@@
ap_n_en:
|
| Pwrten calculates the exponent factor in the selected rounding mode
| according to the following table:
|
| Pwrten calculates the exponent factor in the selected rounding mode
| according to the following table:
-|
+|
| Sign of Mant Sign of Exp Rounding Mode PWRTEN Rounding Mode
|
| ANY ANY RN RN
| Sign of Mant Sign of Exp Rounding Mode PWRTEN Rounding Mode
|
| ANY ANY RN RN
@@
-495,7
+494,7
@@
mul:
| it will be inex2, but will be reported as inex1 by get_op.
|
end_dec:
| it will be inex2, but will be reported as inex1 by get_op.
|
end_dec:
- fmovel %FPSR,%d0 |get status register
+ fmovel %FPSR,%d0 |get status register
bclrl #inex2_bit+8,%d0 |test for inex2 and clear it
fmovel %d0,%FPSR |return status reg w/o inex2
beqs no_exc |skip this if no exc
bclrl #inex2_bit+8,%d0 |test for inex2 and clear it
fmovel %d0,%FPSR |return status reg w/o inex2
beqs no_exc |skip this if no exc