]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/LibC/Softfloat/softfloat-for-gcc.h
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / StdLib / LibC / Softfloat / softfloat-for-gcc.h
diff --git a/StdLib/LibC/Softfloat/softfloat-for-gcc.h b/StdLib/LibC/Softfloat/softfloat-for-gcc.h
deleted file mode 100644 (file)
index 420cecc..0000000
+++ /dev/null
@@ -1,242 +0,0 @@
-/* $NetBSD: softfloat-for-gcc.h,v 1.12 2013/08/01 23:21:19 matt Exp $ */\r
-/*-\r
- * Copyright (c) 2008 The NetBSD Foundation, Inc.\r
- * All rights reserved.\r
- *\r
- * This code is derived from software contributed to The NetBSD Foundation\r
- * by\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- * 1. Redistributions of source code must retain the above copyright\r
- *    notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- *    notice, this list of conditions and the following disclaimer in the\r
- *    documentation and/or other materials provided with the distribution.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS\r
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS\r
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\r
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\r
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\r
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\r
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
- * POSSIBILITY OF SUCH DAMAGE.\r
- */\r
-\r
-/*\r
- * Move private identifiers with external linkage into implementation\r
- * namespace.  -- Klaus Klein <kleink@NetBSD.org>, May 5, 1999\r
- */\r
-#define float_exception_flags   _softfloat_float_exception_flags\r
-#define float_exception_mask    _softfloat_float_exception_mask\r
-#define float_rounding_mode     _softfloat_float_rounding_mode\r
-#define float_raise             _softfloat_float_raise\r
-\r
-/* The following batch are called by GCC through wrappers */\r
-#define float32_eq      _softfloat_float32_eq\r
-#define float32_le      _softfloat_float32_le\r
-#define float32_lt      _softfloat_float32_lt\r
-#define float64_eq      _softfloat_float64_eq\r
-#define float64_le      _softfloat_float64_le\r
-#define float64_lt      _softfloat_float64_lt\r
-#define float128_eq     _softfloat_float128_eq\r
-#define float128_le     _softfloat_float128_le\r
-#define float128_lt     _softfloat_float128_lt\r
-\r
-/*\r
- * Macros to define functions with the GCC expected names\r
- */\r
-\r
-#define float32_add         __addsf3\r
-#define float64_add         __adddf3\r
-#define floatx80_add        __addxf3\r
-#define float128_add        __addtf3\r
-\r
-#define float32_sub         __subsf3\r
-#define float64_sub         __subdf3\r
-#define floatx80_sub        __subxf3\r
-#define float128_sub        __subtf3\r
-\r
-#define float32_mul         __mulsf3\r
-#define float64_mul         __muldf3\r
-#define floatx80_mul        __mulxf3\r
-#define float128_mul        __multf3\r
-\r
-#define float32_div         __divsf3\r
-#define float64_div         __divdf3\r
-#define floatx80_div        __divxf3\r
-#define float128_div        __divtf3\r
-\r
-#if 0\r
-#define float32_neg         __negsf2\r
-#define float64_neg         __negdf2\r
-#define floatx80_neg        __negxf2\r
-#define float128_neg        __negtf2\r
-#endif\r
-\r
-#define int32_to_float32        __floatsisf\r
-#define int32_to_float64        __floatsidf\r
-#define int32_to_floatx80       __floatsixf\r
-#define int32_to_float128       __floatsitf\r
-\r
-#define int64_to_float32        __floatdisf\r
-#define int64_to_float64        __floatdidf\r
-#define int64_to_floatx80       __floatdixf\r
-#define int64_to_float128       __floatditf\r
-\r
-#define int128_to_float32       __floattisf\r
-#define int128_to_float64       __floattidf\r
-#define int128_to_floatx80      __floattixf\r
-#define int128_to_float128      __floattitf\r
-\r
-#define uint32_to_float32       __floatunsisf\r
-#define uint32_to_float64       __floatunsidf\r
-#define uint32_to_floatx80      __floatunsixf\r
-#define uint32_to_float128      __floatunsitf\r
-\r
-#define uint64_to_float32       __floatundisf\r
-#define uint64_to_float64       __floatundidf\r
-#define uint64_to_floatx80      __floatundixf\r
-#define uint64_to_float128      __floatunditf\r
-\r
-#define uint128_to_float32      __floatuntisf\r
-#define uint128_to_float64      __floatuntidf\r
-#define uint128_to_floatx80     __floatuntixf\r
-#define uint128_to_float128     __floatuntitf\r
-\r
-#define float32_to_int32_round_to_zero   __fixsfsi\r
-#define float64_to_int32_round_to_zero   __fixdfsi\r
-#define floatx80_to_int32_round_to_zero  __fixxfsi\r
-#define float128_to_int32_round_to_zero  __fixtfsi\r
-\r
-#define float32_to_int64_round_to_zero   __fixsfdi\r
-#define float64_to_int64_round_to_zero   __fixdfdi\r
-#define floatx80_to_int64_round_to_zero  __fixxfdi\r
-#define float128_to_int64_round_to_zero  __fixtfdi\r
-\r
-#define float32_to_int128_round_to_zero  __fixsfti\r
-#define float64_to_int128_round_to_zero  __fixdfti\r
-#define floatx80_to_int128_round_to_zero __fixxfti\r
-#define float128_to_int128_round_to_zero __fixtfti\r
-\r
-#define float32_to_uint32_round_to_zero     __fixunssfsi\r
-#define float64_to_uint32_round_to_zero     __fixunsdfsi\r
-#define floatx80_to_uint32_round_to_zero    __fixunsxfsi\r
-#define float128_to_uint32_round_to_zero    __fixunstfsi\r
-\r
-#define float32_to_uint64_round_to_zero     __fixunssfdi\r
-#define float64_to_uint64_round_to_zero     __fixunsdfdi\r
-#define floatx80_to_uint64_round_to_zero    __fixunsxfdi\r
-#define float128_to_uint64_round_to_zero    __fixunstfdi\r
-\r
-#define float32_to_uint128_round_to_zero    __fixunssfti\r
-#define float64_to_uint128_round_to_zero    __fixunsdfti\r
-#define floatx80_to_uint128_round_to_zero   __fixunsxfti\r
-#define float128_to_uint128_round_to_zero   __fixunstfti\r
-\r
-#define float32_to_float64      __extendsfdf2\r
-#define float32_to_floatx80     __extendsfxf2\r
-#define float32_to_float128     __extendsftf2\r
-#define float64_to_floatx80     __extenddfxf2\r
-#define float64_to_float128     __extenddftf2\r
-\r
-#define float128_to_float64     __trunctfdf2\r
-#define floatx80_to_float64     __truncxfdf2\r
-#define float128_to_float32     __trunctfsf2\r
-#define floatx80_to_float32     __truncxfsf2\r
-#define float64_to_float32      __truncdfsf2\r
-\r
-#if 0\r
-#define float32_cmp         __cmpsf2\r
-#define float32_unord       __unordsf2\r
-#define float32_eq          __eqsf2\r
-#define float32_ne          __nesf2\r
-#define float32_ge          __gesf2\r
-#define float32_lt          __ltsf2\r
-#define float32_le          __lesf2\r
-#define float32_gt          __gtsf2\r
-#endif\r
-\r
-#if 0\r
-#define float64_cmp         __cmpdf2\r
-#define float64_unord       __unorddf2\r
-#define float64_eq          __eqdf2\r
-#define float64_ne          __nedf2\r
-#define float64_ge          __gedf2\r
-#define float64_lt          __ltdf2\r
-#define float64_le          __ledf2\r
-#define float64_gt          __gtdf2\r
-#endif\r
-\r
-/* XXX not in libgcc */\r
-#if 1\r
-#define floatx80_cmp        __cmpxf2\r
-#define floatx80_unord      __unordxf2\r
-#define floatx80_eq         __eqxf2\r
-#define floatx80_ne         __nexf2\r
-#define floatx80_ge         __gexf2\r
-#define floatx80_lt         __ltxf2\r
-#define floatx80_le         __lexf2\r
-#define floatx80_gt         __gtxf2\r
-#endif\r
-\r
-#if 0\r
-#define float128_cmp        __cmptf2\r
-#define float128_unord      __unordtf2\r
-#define float128_eq         __eqtf2\r
-#define float128_ne         __netf2\r
-#define float128_ge         __getf2\r
-#define float128_lt         __lttf2\r
-#define float128_le         __letf2\r
-#define float128_gt         __gttf2\r
-#endif\r
-\r
-#ifdef __ARM_EABI__\r
-#ifdef __ARM_PCS_VFP\r
-#include <arm/aeabi.h>\r
-#endif\r
-#define __addsf3            __aeabi_fadd\r
-#define __adddf3            __aeabi_dadd\r
-\r
-#define __subsf3            __aeabi_fsub\r
-#define __subdf3            __aeabi_dsub\r
-\r
-#define __mulsf3            __aeabi_fmul\r
-#define __muldf3            __aeabi_dmul\r
-\r
-#define __divsf3            __aeabi_fdiv\r
-#define __divdf3            __aeabi_ddiv\r
-\r
-#define __floatsisf         __aeabi_i2f\r
-#define __floatsidf         __aeabi_i2d\r
-\r
-#define __floatdisf         __aeabi_l2f\r
-#define __floatdidf         __aeabi_l2d\r
-\r
-#define __floatunsisf       __aeabi_ui2f\r
-#define __floatunsidf       __aeabi_ui2d\r
-\r
-#define __floatundisf       __aeabi_ul2f\r
-#define __floatundidf       __aeabi_ul2d\r
-\r
-#define __fixsfsi           __aeabi_f2iz\r
-#define __fixdfsi           __aeabi_d2iz\r
-\r
-#define __fixsfdi           __aeabi_f2lz\r
-#define __fixdfdi           __aeabi_d2lz\r
-\r
-#define __fixunssfsi        __aeabi_f2uiz\r
-#define __fixunsdfsi        __aeabi_d2uiz\r
-\r
-#define __fixunssfdi        __aeabi_f2ulz\r
-#define __fixunsdfdi        __aeabi_d2ulz\r
-\r
-#define __extendsfdf2       __aeabi_f2d\r
-#define __truncdfsf2        __aeabi_d2f\r
-\r
-#endif /* __ARM_EABI__ */\r