projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f92f92
)
fix fesetenv(FE_DFL_ENV) on mips
author
Szabolcs Nagy
<nsz@port70.net>
Sun, 8 Feb 2015 17:56:52 +0000
(18:56 +0100)
committer
Szabolcs Nagy
<nsz@port70.net>
Sun, 8 Feb 2015 17:56:52 +0000
(18:56 +0100)
mips fesetenv did not handle FE_DFL_ENV, now fcsr is cleared in that
case.
src/fenv/mips/fenv.s
patch
|
blob
|
history
diff --git
a/src/fenv/mips/fenv.s
b/src/fenv/mips/fenv.s
index 095cb6068f9e2f1fd2f694dc4f7747f04c66b934..a3233c1e538e90417047c64b246842a67059e732 100644
(file)
--- a/
src/fenv/mips/fenv.s
+++ b/
src/fenv/mips/fenv.s
@@
-57,7
+57,9
@@
fegetenv:
.global fesetenv
.type fesetenv,@function
fesetenv:
+ addiu $5, $4, 1
+ beq $5, $0, 1f
lw $5, 0($4)
-
ctc1 $5, $31
+
1:
ctc1 $5, $31
jr $ra
li $2, 0