Path: blob/main/lib/libc/softfloat/softfloat-for-gcc.h
39476 views
/* $NetBSD: softfloat-for-gcc.h,v 1.8 2009/12/14 01:07:42 matt Exp $ */12/*3* Move private identifiers with external linkage into implementation4* namespace. -- Klaus Klein <[email protected]>, May 5, 19995*/6#define float_exception_flags __softfloat_float_exception_flags7#define float_exception_mask __softfloat_float_exception_mask8#define float_rounding_mode __softfloat_float_rounding_mode9#define float_raise __softfloat_float_raise10/* The following batch are called by GCC through wrappers */11#define float32_eq __softfloat_float32_eq12#define float32_le __softfloat_float32_le13#define float32_lt __softfloat_float32_lt14#define float64_eq __softfloat_float64_eq15#define float64_le __softfloat_float64_le16#define float64_lt __softfloat_float64_lt17#define float128_eq __softfloat_float128_eq18#define float128_le __softfloat_float128_le19#define float128_lt __softfloat_float128_lt2021/*22* Macros to define functions with the GCC expected names23*/2425#define float32_add __addsf326#define float64_add __adddf327#define floatx80_add __addxf328#define float128_add __addtf32930#define float32_sub __subsf331#define float64_sub __subdf332#define floatx80_sub __subxf333#define float128_sub __subtf33435#define float32_mul __mulsf336#define float64_mul __muldf337#define floatx80_mul __mulxf338#define float128_mul __multf33940#define float32_div __divsf341#define float64_div __divdf342#define floatx80_div __divxf343#define float128_div __divtf34445#if 046#define float32_neg __negsf247#define float64_neg __negdf248#define floatx80_neg __negxf249#define float128_neg __negtf250#endif5152#define int32_to_float32 __floatsisf53#define int32_to_float64 __floatsidf54#define int32_to_floatx80 __floatsixf55#define int32_to_float128 __floatsitf5657#define int64_to_float32 __floatdisf58#define int64_to_float64 __floatdidf59#define int64_to_floatx80 __floatdixf60#define int64_to_float128 __floatditf6162#define int128_to_float32 __floattisf63#define int128_to_float64 __floattidf64#define int128_to_floatx80 __floattixf65#define int128_to_float128 __floattitf6667#define uint32_to_float32 __floatunsisf68#define uint32_to_float64 __floatunsidf69#define uint32_to_floatx80 __floatunsixf70#define uint32_to_float128 __floatunsitf7172#define uint64_to_float32 __floatundisf73#define uint64_to_float64 __floatundidf74#define uint64_to_floatx80 __floatundixf75#define uint64_to_float128 __floatunditf7677#define uint128_to_float32 __floatuntisf78#define uint128_to_float64 __floatuntidf79#define uint128_to_floatx80 __floatuntixf80#define uint128_to_float128 __floatuntitf8182#define float32_to_int32_round_to_zero __fixsfsi83#define float64_to_int32_round_to_zero __fixdfsi84#define floatx80_to_int32_round_to_zero __fixxfsi85#define float128_to_int32_round_to_zero __fixtfsi8687#define float32_to_int64_round_to_zero __fixsfdi88#define float64_to_int64_round_to_zero __fixdfdi89#define floatx80_to_int64_round_to_zero __fixxfdi90#define float128_to_int64_round_to_zero __fixtfdi9192#define float32_to_int128_round_to_zero __fixsfti93#define float64_to_int128_round_to_zero __fixdfti94#define floatx80_to_int128_round_to_zero __fixxfti95#define float128_to_int128_round_to_zero __fixtfti9697#define float32_to_uint32_round_to_zero __fixunssfsi98#define float64_to_uint32_round_to_zero __fixunsdfsi99#define floatx80_to_uint32_round_to_zero __fixunsxfsi100#define float128_to_uint32_round_to_zero __fixunstfsi101102#define float32_to_uint64_round_to_zero __fixunssfdi103#define float64_to_uint64_round_to_zero __fixunsdfdi104#define floatx80_to_uint64_round_to_zero __fixunsxfdi105#define float128_to_uint64_round_to_zero __fixunstfdi106107#define float32_to_uint128_round_to_zero __fixunssfti108#define float64_to_uint128_round_to_zero __fixunsdfti109#define floatx80_to_uint128_round_to_zero __fixunsxfti110#define float128_to_uint128_round_to_zero __fixunstfti111112#define float32_to_float64 __extendsfdf2113#define float32_to_floatx80 __extendsfxf2114#define float32_to_float128 __extendsftf2115#define float64_to_floatx80 __extenddfxf2116#define float64_to_float128 __extenddftf2117118#define float128_to_float64 __trunctfdf2119#define floatx80_to_float64 __truncxfdf2120#define float128_to_float32 __trunctfsf2121#define floatx80_to_float32 __truncxfsf2122#define float64_to_float32 __truncdfsf2123124#if 0125#define float32_cmp __cmpsf2126#define float32_unord __unordsf2127#define float32_eq __eqsf2128#define float32_ne __nesf2129#define float32_ge __gesf2130#define float32_lt __ltsf2131#define float32_le __lesf2132#define float32_gt __gtsf2133#endif134135#if 0136#define float64_cmp __cmpdf2137#define float64_unord __unorddf2138#define float64_eq __eqdf2139#define float64_ne __nedf2140#define float64_ge __gedf2141#define float64_lt __ltdf2142#define float64_le __ledf2143#define float64_gt __gtdf2144#endif145146/* XXX not in libgcc */147#if 1148#define floatx80_cmp __cmpxf2149#define floatx80_unord __unordxf2150#define floatx80_eq __eqxf2151#define floatx80_ne __nexf2152#define floatx80_ge __gexf2153#define floatx80_lt __ltxf2154#define floatx80_le __lexf2155#define floatx80_gt __gtxf2156#endif157158#if 0159#define float128_cmp __cmptf2160#define float128_unord __unordtf2161#define float128_eq __eqtf2162#define float128_ne __netf2163#define float128_ge __getf2164#define float128_lt __lttf2165#define float128_le __letf2166#define float128_gt __gttf2167#endif168169170