File:  [MW Coherent from dump] / coherent / b / lib / libm / i387 / error87.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

//////////
/ /usr/src/libm/i387/error87.s
/ i387 mathematics library
/ _edomain(), _erange()
//////////

	.globl  _edomain
	.globl	_erange
	.globl	errno

//////////
/ _edomain replaces the NDP stacktop %st with 0.0
/ and sets errno_ to the appropriate error code.
/ _erange just sets the error code.
//////////

EDOM	=	33		/ domain error code
ERANGE	=	34		/ range error code

_edomain:
	movl	errno, $EDOM	/ Set errno.
	fstp	%st		/ Pop the stack
	fldz			/ and load a 0.
	ret

_erange:
	movl	errno, $ERANGE	/ Set errno.
	ret

/ end of error87.s

unix.superglobalmegacorp.com

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