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