From 4abab5ad6c8465a7528ccdd5f49367da05f78bbd Mon Sep 17 00:00:00 2001 From: Vladimir Azarov Date: Tue, 1 Oct 2024 15:47:05 +0200 Subject: Initial version --- src/math/x32/fmodl.s | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/math/x32/fmodl.s (limited to 'src/math/x32/fmodl.s') diff --git a/src/math/x32/fmodl.s b/src/math/x32/fmodl.s new file mode 100644 index 0000000..c3f790c --- /dev/null +++ b/src/math/x32/fmodl.s @@ -0,0 +1,11 @@ +.global fmodl +.type fmodl,@function +fmodl: + fldt 24(%esp) + fldt 8(%esp) +1: fprem + fnstsw %ax + testb $4,%ah + jnz 1b + fstp %st(1) + ret -- cgit v1.2.3