softfloat-for-gcc.h revision 129203
1129203Scognet/* $NetBSD: softfloat-for-gcc.h,v 1.6 2003/07/26 19:24:51 salo Exp $ */
2129203Scognet/* $FreeBSD: head/lib/libc/softfloat/softfloat-for-gcc.h 129203 2004-05-14 12:13:06Z cognet $ */
3129203Scognet
4129203Scognet/*
5129203Scognet * Move private identifiers with external linkage into implementation
6129203Scognet * namespace.  -- Klaus Klein <kleink@NetBSD.org>, May 5, 1999
7129203Scognet */
8129203Scognet#define float_exception_flags	_softfloat_float_exception_flags
9129203Scognet#define float_exception_mask	_softfloat_float_exception_mask
10129203Scognet#define float_rounding_mode	_softfloat_float_rounding_mode
11129203Scognet#define float_raise		_softfloat_float_raise
12129203Scognet/* The following batch are called by GCC through wrappers */
13129203Scognet#define float32_eq		_softfloat_float32_eq
14129203Scognet#define float32_le		_softfloat_float32_le
15129203Scognet#define float32_lt		_softfloat_float32_lt
16129203Scognet#define float64_eq		_softfloat_float64_eq
17129203Scognet#define float64_le		_softfloat_float64_le
18129203Scognet#define float64_lt		_softfloat_float64_lt
19129203Scognet
20129203Scognet/*
21129203Scognet * Macros to define functions with the GCC expected names
22129203Scognet */
23129203Scognet
24129203Scognet#define float32_add			__addsf3
25129203Scognet#define float64_add			__adddf3
26129203Scognet#define float32_sub			__subsf3
27129203Scognet#define float64_sub			__subdf3
28129203Scognet#define float32_mul			__mulsf3
29129203Scognet#define float64_mul			__muldf3
30129203Scognet#define float32_div			__divsf3
31129203Scognet#define float64_div			__divdf3
32129203Scognet#define int32_to_float32		__floatsisf
33129203Scognet#define int32_to_float64		__floatsidf
34129203Scognet#define int64_to_float32		__floatdisf
35129203Scognet#define int64_to_float64		__floatdidf
36129203Scognet#define float32_to_int32_round_to_zero	__fixsfsi
37129203Scognet#define float64_to_int32_round_to_zero	__fixdfsi
38129203Scognet#define float32_to_int64_round_to_zero	__fixsfdi
39129203Scognet#define float64_to_int64_round_to_zero	__fixdfdi
40129203Scognet#define float32_to_uint32_round_to_zero	__fixunssfsi
41129203Scognet#define float64_to_uint32_round_to_zero	__fixunsdfsi
42129203Scognet#define float32_to_float64		__extendsfdf2
43129203Scognet#define float64_to_float32		__truncdfsf2
44