📄 infnan.s
字号:
#ifndef lint#static char *sccsid = "@(#)infnan.s 4.1 (ULTRIX) 7/17/90";#endif lint/************************************************************************ * * * Copyright (c) 1986 by * * Digital Equipment Corporation, Maynard, MA * * All rights reserved. * * * * This software is furnished under a license and may be used and * * copied only in accordance with the terms of such license and * * with the inclusion of the above copyright notice. This * * software or any other copies thereof may not be provided or * * otherwise made available to any other person. No title to and * * ownership of the software is hereby transferred. * * * * This software is derived from software received from the * * University of California, Berkeley, and from Bell * * Laboratories. Use, duplication, or disclosure is subject to * * restrictions under license agreements with University of * * California and with AT&T. * * * * The information in this software is subject to change without * * notice and should not be construed as a commitment by Digital * * Equipment Corporation. * * * * Digital assumes no responsibility for the use or reliability * * of its software on equipment which is not supplied by Digital. * * * ************************************************************************//************************************************************************** Modification History** David Metsky, 12/18/86* 001 Adapted from infnan.s 1.1 (Berkeley) 8/21/85**************************************************************************//* @(#)infnan.s 1.1 (Berkeley) 8/21/85 * * infnan(arg) int arg; * where arg := EDOM if result is NaN * := ERANGE if result is +INF * := -ERANGE if result is -INF * * The Reserved Operand Fault is generated inside of this routine. * */ .globl _infnan .set EDOM,33 .set ERANGE,34 .text .align 1_infnan: .word 0x0 cmpl 4(ap),$ERANGE bneq 1f movl $ERANGE,_errno brb 2f1: movl $EDOM,_errno2: emodd $0,$0,$0x8000,r0,r0 # generates the reserved operand fault ret
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -