this repo has no description
1/*
2 * 32-bit version Adapted from original written by J.T. Conklin <jtc@netbsd.org>.
3 * Public domain.
4 *
5 * by Ian Ollmann, Apple Computer 2006
6 *
7 * LP64 version by Ian Ollmann
8 */
9
10#include <machine/asm.h>
11#include "abi.h"
12
13//This is not a API required by any standard that we know of
14//It is provided for backwards compatibility
15#if defined( __LP64__ )
16
17 ENTRY(significand)
18 SUBP $8, STACKP
19 movsd %xmm0, (STACKP)
20 fldl (STACKP)
21 fxtract
22 fstp %st(1)
23 fstl (STACKP)
24 movsd (STACKP), %xmm0
25 ADDP $8, STACKP
26 ret
27
28#else
29
30 ENTRY(significand)
31 fldl FIRST_ARG_OFFSET(STACKP)
32 fxtract
33 fstp %st(1)
34 ret
35
36#endif