Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Tue, 10 Dec 2019 17:58:40 +0100
From: "Stefan Kanthak" <>
To: <>
Subject: An addition to the math subtree

Optimised implementations of copysign() for i386

JFTR: I'm NOT subscribed to your mailing list, so CC: me in replies!

--- -/dev/null
+++ +/src/math/i386/copysign.S
@@ -0,0 +1,26 @@ copysignf
+.type copysignf,@function
+        shlb $1,4+3(%esp)
+        shlb $1,8+3(%esp)
+        rcrb $1,4+3(%esp)
+        flds 4(%esp)
+        ret
+ copysignl
+.type copysignl,@function
+        shlb $1,4+9(%esp)
+        shlb $1,16+9(%esp)
+        rcrb $1,4+9(%esp)
+        fldt 4(%esp)
+        ret
+ copysign
+.type copysign,@function
+        shlb $1,4+7(%esp)
+        shlb $1,12+7(%esp)
+        rcrb $1,4+7(%esp)
+        fldl 4(%esp)
+        ret

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.