File:  [MW Coherent from dump] / coherent / b / lib / libc / crt / i386 / dicvt.s
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:35 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

//////////
/ libc/crt/i386/dicvt.s
/ i386 C runtime library.
/ IEEE software floating point support.
//////////

//////////
/ double _dicvt()
/ Convert int in %eax to double, return in %edx:%eax.
//////////

SGNMASK	.equ	0x80000000

	.globl	_dicvt
	.globl	_ducvt

_dicvt:
	orl	%eax, %eax
	pushfl				/ save arg sign
	jns	?L0
	negl	%eax			/ complement negative arg

?L0:
	call	_ducvt			/ convert to double in EDX:EAX
	popfl
	jns	?L1
	xorl	%edx, $SGNMASK		/ negative arg, flip result sign

?L1:
	ret

/ end of libc/crt/i386/dicvt.s

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.