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:
d670873
)
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
Rich Felker
<dalias@aerifal.cx>
Mon, 30 Mar 2015 05:45:20 +0000
(
01:45
-0400)
mips fesetenv did not handle FE_DFL_ENV, now fcsr is cleared in that
case.
(cherry picked from commit
5fc1487832e16aa2119e735a388d5f36c8c139e2
)
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