aboutsummaryrefslogtreecommitdiff
path: root/src/math/i386/lrint.s
diff options
context:
space:
mode:
authornsz <nsz@port70.net>2012-03-19 08:01:21 +0100
committernsz <nsz@port70.net>2012-03-19 08:01:21 +0100
commit0627e58af8514967372a8ff703e7a86c2571acc2 (patch)
treef37eb7417f107ee34277eb58be20d129dfe8b790 /src/math/i386/lrint.s
parentMerge branch 'master' of git://git.etalabs.net/musl (diff)
parentasm for log functions (diff)
downloadgrovel-0627e58af8514967372a8ff703e7a86c2571acc2.tar.gz
grovel-0627e58af8514967372a8ff703e7a86c2571acc2.tar.xz
Merge branch 'master' of git://git.etalabs.net/musl
Diffstat (limited to 'src/math/i386/lrint.s')
-rw-r--r--src/math/i386/lrint.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/math/i386/lrint.s b/src/math/i386/lrint.s
new file mode 100644
index 00000000..02b83d9f
--- /dev/null
+++ b/src/math/i386/lrint.s
@@ -0,0 +1,7 @@
+.global lrint
+.type lrint,@function
+lrint:
+ fldl 4(%esp)
+ fistpl 4(%esp)
+ mov 4(%esp),%eax
+ ret