Deleted Added
full compact
softfloat-specialize (206492) softfloat-specialize (230189)
1/* $NetBSD: softfloat-specialize,v 1.3 2002/05/12 13:12:45 bjh21 Exp $ */
1/* $NetBSD: softfloat-specialize,v 1.3 2002/05/12 13:12:45 bjh21 Exp $ */
2/* $FreeBSD: head/lib/libc/softfloat/softfloat-specialize 206492 2010-04-11 21:22:02Z marius $ */
2/* $FreeBSD: head/lib/libc/softfloat/softfloat-specialize 230189 2012-01-16 04:05:53Z das $ */
3
4/* This is a derivative work. */
5
6/*
7===============================================================================
8
9This C source fragment is part of the SoftFloat IEC/IEEE Floating-point
10Arithmetic Package, Release 2a.

--- 42 unchanged lines hidden (view full) ---

53/*
54-------------------------------------------------------------------------------
55Raises the exceptions specified by `flags'. Floating-point traps can be
56defined here if desired. It is currently not possible for such a trap to
57substitute a result value. If traps are not implemented, this routine
58should be simply `float_exception_flags |= flags;'.
59-------------------------------------------------------------------------------
60*/
3
4/* This is a derivative work. */
5
6/*
7===============================================================================
8
9This C source fragment is part of the SoftFloat IEC/IEEE Floating-point
10Arithmetic Package, Release 2a.

--- 42 unchanged lines hidden (view full) ---

53/*
54-------------------------------------------------------------------------------
55Raises the exceptions specified by `flags'. Floating-point traps can be
56defined here if desired. It is currently not possible for such a trap to
57substitute a result value. If traps are not implemented, this routine
58should be simply `float_exception_flags |= flags;'.
59-------------------------------------------------------------------------------
60*/
61fp_except float_exception_mask = 0;
62void float_raise( fp_except flags )
61int float_exception_mask = 0;
62void float_raise( int flags )
63{
64
65 float_exception_flags |= flags;
66
67 if ( flags & float_exception_mask ) {
68 raise( SIGFPE );
69 }
70}

--- 424 unchanged lines hidden ---
63{
64
65 float_exception_flags |= flags;
66
67 if ( flags & float_exception_mask ) {
68 raise( SIGFPE );
69 }
70}

--- 424 unchanged lines hidden ---