13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
23 */
24 /*
25 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
26 * Use is subject to license terms.
27 */
28
29 .file "nexttowardl.s"
30
31 #include "libm.h"
32 LIBM_ANSI_PRAGMA_WEAK(nexttowardl,function)
33 #include "libm_synonyms.h"
34
35 .section .rodata
36 .align 4
37 .LFmaxl: .long 0xffffffff,0xffffffff,0x00007ffe
38 .LFminl: .long 0x1,0x0,0x0
39
40
41 ENTRY(nexttowardl)
42 pushl %ebp
43 movl %esp,%ebp
44 fldt 20(%ebp) / y
45 subl $12,%esp
46 fldt 8(%ebp) / load x
47 fucom / x : y
48 fstsw %ax
49 sahf
50 jp .LNaN
51 je .Lequal
52 fstp %st(1) / x
53 ja .Lbigger
|
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 /*
22 * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
23 */
24 /*
25 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
26 * Use is subject to license terms.
27 */
28
29 .file "nexttowardl.s"
30
31 #include "libm.h"
32 LIBM_ANSI_PRAGMA_WEAK(nexttowardl,function)
33
34 .section .rodata
35 .align 4
36 .LFmaxl: .long 0xffffffff,0xffffffff,0x00007ffe
37 .LFminl: .long 0x1,0x0,0x0
38
39
40 ENTRY(nexttowardl)
41 pushl %ebp
42 movl %esp,%ebp
43 fldt 20(%ebp) / y
44 subl $12,%esp
45 fldt 8(%ebp) / load x
46 fucom / x : y
47 fstsw %ax
48 sahf
49 jp .LNaN
50 je .Lequal
51 fstp %st(1) / x
52 ja .Lbigger
|