xref: /netbsd-src/lib/libc/softfloat/softfloat-for-gcc.h (revision 1ca5c1b28139779176bd5c13ad7c5f25c0bcd5f8)
1 /* $NetBSD: softfloat-for-gcc.h,v 1.4 2001/03/08 18:56:19 bjh21 Exp $ */
2 
3 /*
4  * Move private identifiers with external linkage into implementation
5  * namespace.  -- Klaus Klein <kleink@netbsd.org>, May 5, 1999
6  */
7 #define float_exception_flags	_softfloat_float_exception_flags
8 #define float_rounding_mode	_softfloat_float_rounding_mode
9 #define float_raise		_softfloat_float_raise
10 /* The following batch are called by GCC through wrappers */
11 #define float32_eq		_softfloat_float32_eq
12 #define float32_le		_softfloat_float32_le
13 #define float32_lt		_softfloat_float32_lt
14 #define float64_eq		_softfloat_float64_eq
15 #define float64_le		_softfloat_float64_le
16 #define float64_lt		_softfloat_float64_lt
17 
18 /*
19  * Macros to define functions with the GCC expected names
20  */
21 
22 #define float32_add			__addsf3
23 #define float64_add			__adddf3
24 #define float32_sub			__subsf3
25 #define float64_sub			__subdf3
26 #define float32_mul			__mulsf3
27 #define float64_mul			__muldf3
28 #define float32_div			__divsf3
29 #define float64_div			__divdf3
30 #define int32_to_float32		__floatsisf
31 #define int32_to_float64		__floatsidf
32 #define int64_to_float32		__floatdisf
33 #define int64_to_float64		__floatdidf
34 #define float32_to_int32_round_to_zero	__fixsfsi
35 #define float64_to_int32_round_to_zero	__fixdfsi
36 #define float32_to_int64_round_to_zero	__fixsfdi
37 #define float64_to_int64_round_to_zero	__fixdfdi
38 #define float32_to_uint32_round_to_zero	__fixunssfsi
39 #define float64_to_uint32_round_to_zero	__fixunsdfsi
40 #define float32_to_float64		__extendsfdf2
41 #define float64_to_float32		__truncdfsf2
42