Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Mon, 28 Sep 2015 10:38:36 +0000
From: Anand Takale <Anand.Takale@...tec.com>
To: "musl@...ts.openwall.com" <musl@...ts.openwall.com>
Subject: [PATCH] mips/fenv: fix fesetround by setting rounding mode

mips fesetround does not write back the rounding mode to FCSR


diff --git a/src/fenv/mips/fenv.s b/src/fenv/mips/fenv.s
index 9b45ffc..f60b0e7 100644
--- a/src/fenv/mips/fenv.s
+++ b/src/fenv/mips/fenv.s
@@ -43,6 +43,7 @@ __fesetround:
        li      $6, -4
        and     $5, $5, $6
        or      $5, $5, $4
+       ctc1    $5, $31
        jr      $ra
        li      $2, 0

Content of type "text/html" skipped

Powered by blists - more mailing lists

Your e-mail address:

Powered by Openwall GNU/*/Linux - Powered by OpenVZ