summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/i386/cos.S
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/dietlibc/i386/cos.S')
-rw-r--r--mdk-stage1/dietlibc/i386/cos.S24
1 files changed, 24 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/i386/cos.S b/mdk-stage1/dietlibc/i386/cos.S
new file mode 100644
index 000000000..73ba03355
--- /dev/null
+++ b/mdk-stage1/dietlibc/i386/cos.S
@@ -0,0 +1,24 @@
+.text
+
+.global cosf,cos,cosl
+.type cosf,@function
+.type cos,@function
+.type cosl,@function
+
+cosf:
+ flds 4(%esp)
+ jmp .Lcos
+cos:
+ fldl 4(%esp)
+.Lcos:
+ call __fmod2pi
+ fcos
+ ret
+cosl:
+ fldt 4(%esp)
+ jmp .Lcos
+
+.Lende:
+.size cos,.Lende-cos
+.size cosl,.Lende-cosl
+.size cosf,.Lende-cosf