* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
* This code is derived from software contributed to Berkeley by
* %sccs.include.redist.c%
#if defined(LIBC_SCCS) && !defined(lint)
.asciz "@(#)fixunsdfsi.s 8.1 %G%"
#endif /* LIBC_SCCS and not lint */
fldl 4(%esp) /* argument double to accum stack */
frndint /* create integer */
fcoml fbiggestsigned /* bigger than biggest signed? */
1: fsubl fbiggestsigned /* reduce for proper conversion */
fistpl 4(%esp) /* convert */
orl $0x80000000,%eax /* restore bias */
fbiggestsigned: .double 0r2147483648.0