From 8d9e948652eb8381f1f376cbd0c9bc5e2947d150 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 18 Mar 2012 16:43:54 -0400 Subject: asm versions of some simple math functions for i386 and x86_64 these are functions that have direct fpu approaches to implementation without problematic exception or rounding issues. x86_64 lacks float/double versions because i'm unfamiliar with the necessary sse code for performing these operations. --- src/math/i386/rint.s | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/math/i386/rint.s (limited to 'src/math/i386/rint.s') diff --git a/src/math/i386/rint.s b/src/math/i386/rint.s new file mode 100644 index 00000000..bb99a11c --- /dev/null +++ b/src/math/i386/rint.s @@ -0,0 +1,6 @@ +.global rint +.type rint,@function +rint: + fldl 4(%esp) + frndint + ret -- cgit v1.2.1