|
|
1.1 root 1: //////////
2: / libc/crt/i386/dicvt.s
3: / i386 C runtime library.
4: / IEEE software floating point support.
5: //////////
6:
7: //////////
8: / double _dicvt()
9: / Convert int in %eax to double, return in %edx:%eax.
10: //////////
11:
12: SGNMASK .equ 0x80000000
13:
14: .globl _dicvt
15: .globl _ducvt
16:
17: _dicvt:
18: orl %eax, %eax
19: pushfl / save arg sign
20: jns ?L0
21: negl %eax / complement negative arg
22:
23: ?L0:
24: call _ducvt / convert to double in EDX:EAX
25: popfl
26: jns ?L1
27: xorl %edx, $SGNMASK / negative arg, flip result sign
28:
29: ?L1:
30: ret
31:
32: / end of libc/crt/i386/dicvt.s
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.