1/* 2 * Copyright (c) 1986 Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Computer Consoles Inc. 7 * 8 * Redistribution and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by the University of California, Berkeley. The name of the 14 * University may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 */ 20 21#if defined(SYSLIBC_SCCS) && !defined(lint) 22 .asciz "@(#)sfp_exp.s 1.2 (Berkeley) 02/17/89" 23#endif /* SYSLIBC_SCCS and not lint */ 24 25#include <tahoemath/fp.h> 26#include "DEFS.h" 27 28/* 29 * Reserved floating point operand. 30 */ 31ASENTRY(sfpresop, 0) 32 movl $0xaaaaaaaa,r0 33 clrl r1 34 ret 35 36/* 37 * Floating point overflow. 38 */ 39ASENTRY(sfpover, 0) 40 movl $HUGE0,r0 41 clrl r1 42 ret 43 44/* 45 * Floating point underflow. 46 */ 47ASENTRY(sfpunder, 0) 48 clrl r0 49 clrl r1 50 ret 51 52/* 53 * Floating point division by zero. 54 */ 55ASENTRY(sfpzdiv, 0) 56 divl2 $0,r0 # force division by zero. 57 ret 58