summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpefo <pefo@openbsd.org>2004-10-18 18:41:06 +0000
committerpefo <pefo@openbsd.org>2004-10-18 18:41:06 +0000
commit6b55e3cbf6fc6c2b1c0ce34a51cba8ced4b4468b (patch)
treea1a6bbcf3c867c47c7939c83ba2122df8e8284bf
parentsync (diff)
downloadwireguard-openbsd-6b55e3cbf6fc6c2b1c0ce34a51cba8ced4b4468b.tar.xz
wireguard-openbsd-6b55e3cbf6fc6c2b1c0ce34a51cba8ced4b4468b.zip
fix a couple of wrongly used li's instead of dli's. spotted by as@gnu ;)
-rw-r--r--lib/libc/arch/mips64/gen/ldexp.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/arch/mips64/gen/ldexp.S b/lib/libc/arch/mips64/gen/ldexp.S
index 187ccf4cc3e..a6340df9240 100644
--- a/lib/libc/arch/mips64/gen/ldexp.S
+++ b/lib/libc/arch/mips64/gen/ldexp.S
@@ -34,7 +34,7 @@
#if defined(LIBC_SCCS)
.text
- .asciz "$OpenBSD: ldexp.S,v 1.4 2004/10/02 15:30:33 pefo Exp $"
+ .asciz "$OpenBSD: ldexp.S,v 1.5 2004/10/18 18:41:06 pefo Exp $"
#endif /* LIBC_SCCS */
#define DEXP_INF 0x7ff
@@ -130,7 +130,7 @@ LEAF(ldexp, 0)
dmtc1 t0, $f0 # save result
j ra
4:
- li v0, 0x8000000000000000
+ dli v0, 0x8000000000000000
ble t1, -52, 7f # is result too small for denorm?
dsll t2, t3, 63 - 52 # clear exponent, extract fraction
or t2, t2, v0 # set implied one bit
@@ -158,7 +158,7 @@ LEAF(ldexp, 0)
1:
j ra
8:
- li t1, 0x7ff0000000000000 # result is infinity (MSW)
+ dli t1, 0x7ff0000000000000 # result is infinity (MSW)
dmtc1 t1, $f0
bge v1, zero, 1f # should result be negative infinity?
neg.d $f0, $f0 # result is negative infinity