non-AT&T implementations of frexp.c in machine/gen/frexp.c
[unix-history] / usr / src / lib / libc / tahoe / fpe / sfp_exp.s
CommitLineData
1f0502d3
KB
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 *
019bea33 8 * %sccs.include.redist.c%
1f0502d3
KB
9 */
10
11#if defined(SYSLIBC_SCCS) && !defined(lint)
019bea33 12 .asciz "@(#)sfp_exp.s 1.3 (Berkeley) %G%"
1f0502d3 13#endif /* SYSLIBC_SCCS and not lint */
4abc7e45
SL
14
15#include <tahoemath/fp.h>
16#include "DEFS.h"
17
18/*
19 * Reserved floating point operand.
20 */
21ASENTRY(sfpresop, 0)
22 movl $0xaaaaaaaa,r0
23 clrl r1
24 ret
25
26/*
27 * Floating point overflow.
28 */
29ASENTRY(sfpover, 0)
30 movl $HUGE0,r0
31 clrl r1
32 ret
33
34/*
35 * Floating point underflow.
36 */
37ASENTRY(sfpunder, 0)
38 clrl r0
39 clrl r1
40 ret
41
42/*
43 * Floating point division by zero.
44 */
45ASENTRY(sfpzdiv, 0)
46 divl2 $0,r0 # force division by zero.
47 ret