Add more files to the architecture specific section.
[dragonfly.git] / lib / msun / i387 / s_finitef.S
1 /*
2  * Written by J.T. Conklin <jtc@NetBSD.org>.
3  * Public domain.
4  */
5
6 #include <machine/asm.h>
7
8 #if 0
9 RCSID("$NetBSD: s_finitef.S,v 1.5 2001/06/19 00:26:30 fvdl Exp $")
10 #endif
11 RCSID("$DragonFly: src/lib/msun/i387/Attic/s_finitef.S,v 1.1 2004/12/29 12:55:50 asmodai Exp $")
12
13 ENTRY(finitef)
14 #ifdef __i386__
15         movl    4(%esp),%eax
16         andl    $0x7f800000, %eax
17         cmpl    $0x7f800000, %eax
18         setne   %al
19         andl    $0x000000ff, %eax
20 #else
21         xorl    %eax,%eax
22         movl    $0x7ff00000,%esi
23         movss   %xmm0,-4(%rsp)
24         andl    -4(%rsp),%esi
25         cmpl    $0x7ff00000,%esi
26         setne   %al
27 #endif
28         ret