Changeset 750636a in mainline for uspace/lib/softfloat/include/softfloat.h
- Timestamp:
- 2011-05-06T14:21:25Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7b90778d, b5e68c8
- Parents:
- 042fbe0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/softfloat/include/softfloat.h
r042fbe0 r750636a 27 27 */ 28 28 29 /** @addtogroup softfloat 29 /** @addtogroup softfloat 30 30 * @{ 31 31 */ … … 36 36 #define __SOFTFLOAT_H__ 37 37 38 float __addsf3(float a, float b);39 double __adddf3(double a, double b);40 long double __addtf3(long double a, long double b);41 long double __addxf3(long double a, long double b);42 43 float __subsf3(float a, float b);44 double __subdf3(double a, double b);45 long double __subtf3(long double a, long double b);46 long double __subxf3(long double a, long double b);47 48 float __mulsf3(float a, float b);49 double __muldf3(double a, double b);50 long double __multf3(long double a, long double b);51 long double __mulxf3(long double a, long double b);52 53 float __divsf3(float a, float b);54 double __divdf3(double a, double b);55 long double __divtf3(long double a, long double b);56 long double __divxf3(long double a, long double b);57 58 float __negsf2(float a);59 double __negdf2(double a);60 long double __negtf2(long double a);61 long double __negxf2(long double a);62 63 double __extendsfdf2(float a);64 long double __extendsftf2(float a);65 long double __extendsfxf2(float a);66 long double __extenddftf2(double a);67 long double __extenddfxf2(double a);68 69 double __truncxfdf2(long double a);70 double __trunctfdf2(long double a);71 float __truncxfsf2(long double a);72 float __trunctfsf2(long double a);73 float __truncdfsf2(double a);74 75 int __fixsfsi(float a);76 int __fixdfsi(double a);77 int __fixtfsi(long double a);78 int __fixxfsi(long double a);79 80 long __fixsfdi(float a);81 long __fixdfdi(double a);82 long __fixtfdi(long double a);83 long __fixxfdi(long double a);84 85 long long __fixsfti(float a);86 long long __fixdfti(double a);87 long long __fixtfti(long double a);88 long long __fixxfti(long double a);89 90 unsigned int __fixunssfsi(float a);91 unsigned int __fixunsdfsi(double a);92 unsigned int __fixunstfsi(long double a);93 unsigned int __fixunsxfsi(long double a);94 95 unsigned long __fixunssfdi(float a);96 unsigned long __fixunsdfdi(double a);97 unsigned long __fixunstfdi(long double a);98 unsigned long __fixunsxfdi(long double a);99 100 unsigned long long __fixunssfti(float a);101 unsigned long long __fixunsdfti(double a);102 unsigned long long __fixunstfti(long double a);103 unsigned long long __fixunsxfti(long double a);104 105 float __floatsisf(int i);106 double __floatsidf(int i);107 long double __floatsitf(int i);108 long double __floatsixf(int i);109 110 float __floatdisf(long i);111 double __floatdidf(long i);112 long double __floatditf(long i);113 long double __floatdixf(long i);114 115 float __floattisf(long long i);116 double __floattidf(long long i);117 long double __floattitf(long long i);118 long double __floattixf(long long i);119 120 float __floatunsisf(unsigned int i);121 double __floatunsidf(unsigned int i);122 long double __floatunsitf(unsigned int i);123 long double __floatunsixf(unsigned int i);124 125 float __floatundisf(unsigned long i);126 double __floatundidf(unsigned long i);127 long double __floatunditf(unsigned long i);128 long double __floatundixf(unsigned long i);129 130 float __floatuntisf(unsigned long long i);131 double __floatuntidf(unsigned long long i);132 long double __floatuntitf(unsigned long long i);133 long double __floatuntixf(unsigned long long i);134 135 int __cmpsf2(float a, float b);136 int __cmpdf2(double a, double b);137 int __cmptf2(long double a, long double b);138 139 int __unordsf2(float a, float b);140 int __unorddf2(double a, double b);141 int __unordtf2(long double a, long double b);142 143 int __eqsf2(float a, float b);144 int __eqdf2(double a, double b);145 int __eqtf2(long double a, long double b);146 147 int __nesf2(float a, float b);148 int __nedf2(double a, double b);149 int __netf2(long double a, long double b);150 151 int __gesf2(float a, float b);152 int __gedf2(double a, double b);153 int __getf2(long double a, long double b);154 155 int __ltsf2(float a, float b);156 int __ltdf2(double a, double b);157 int __lttf2(long double a, long double b);158 int __lesf2(float a, float b);159 int __ledf2(double a, double b);160 int __letf2(long double a, long double b);161 162 int __gtsf2(float a, float b);163 int __gtdf2(double a, double b);164 int __gttf2(long double a, long double b);165 166 /* Not implemented yet */167 float __powisf2(float a, int b);38 extern float __addsf3(float, float); 39 extern double __adddf3(double, double); 40 extern long double __addtf3(long double, long double); 41 extern long double __addxf3(long double, long double); 42 43 extern float __subsf3(float, float); 44 extern double __subdf3(double, double); 45 extern long double __subtf3(long double, long double); 46 extern long double __subxf3(long double, long double); 47 48 extern float __mulsf3(float, float); 49 extern double __muldf3(double, double); 50 extern long double __multf3(long double, long double); 51 extern long double __mulxf3(long double, long double); 52 53 extern float __divsf3(float, float); 54 extern double __divdf3(double, double); 55 extern long double __divtf3(long double, long double); 56 extern long double __divxf3(long double, long double); 57 58 extern float __negsf2(float); 59 extern double __negdf2(double); 60 extern long double __negtf2(long double); 61 extern long double __negxf2(long double); 62 63 extern double __extendsfdf2(float); 64 extern long double __extendsftf2(float); 65 extern long double __extendsfxf2(float); 66 extern long double __extenddftf2(double); 67 extern long double __extenddfxf2(double); 68 69 extern double __truncxfdf2(long double); 70 extern double __trunctfdf2(long double); 71 extern float __truncxfsf2(long double); 72 extern float __trunctfsf2(long double); 73 extern float __truncdfsf2(double); 74 75 extern int __fixsfsi(float); 76 extern int __fixdfsi(double); 77 extern int __fixtfsi(long double); 78 extern int __fixxfsi(long double); 79 80 extern long __fixsfdi(float); 81 extern long __fixdfdi(double); 82 extern long __fixtfdi(long double); 83 extern long __fixxfdi(long double); 84 85 extern long long __fixsfti(float); 86 extern long long __fixdfti(double); 87 extern long long __fixtfti(long double); 88 extern long long __fixxfti(long double); 89 90 extern unsigned int __fixunssfsi(float); 91 extern unsigned int __fixunsdfsi(double); 92 extern unsigned int __fixunstfsi(long double); 93 extern unsigned int __fixunsxfsi(long double); 94 95 extern unsigned long __fixunssfdi(float); 96 extern unsigned long __fixunsdfdi(double); 97 extern unsigned long __fixunstfdi(long double); 98 extern unsigned long __fixunsxfdi(long double); 99 100 extern unsigned long long __fixunssfti(float); 101 extern unsigned long long __fixunsdfti(double); 102 extern unsigned long long __fixunstfti(long double); 103 extern unsigned long long __fixunsxfti(long double); 104 105 extern float __floatsisf(int); 106 extern double __floatsidf(int); 107 extern long double __floatsitf(int); 108 extern long double __floatsixf(int); 109 110 extern float __floatdisf(long); 111 extern double __floatdidf(long); 112 extern long double __floatditf(long); 113 extern long double __floatdixf(long); 114 115 extern float __floattisf(long long); 116 extern double __floattidf(long long); 117 extern long double __floattitf(long long); 118 extern long double __floattixf(long long); 119 120 extern float __floatunsisf(unsigned int); 121 extern double __floatunsidf(unsigned int); 122 extern long double __floatunsitf(unsigned int); 123 extern long double __floatunsixf(unsigned int); 124 125 extern float __floatundisf(unsigned long); 126 extern double __floatundidf(unsigned long); 127 extern long double __floatunditf(unsigned long); 128 extern long double __floatundixf(unsigned long); 129 130 extern float __floatuntisf(unsigned long long); 131 extern double __floatuntidf(unsigned long long); 132 extern long double __floatuntitf(unsigned long long); 133 extern long double __floatuntixf(unsigned long long); 134 135 extern int __cmpsf2(float, float); 136 extern int __cmpdf2(double, double); 137 extern int __cmptf2(long double, long double); 138 139 extern int __unordsf2(float, float); 140 extern int __unorddf2(double, double); 141 extern int __unordtf2(long double, long double); 142 143 extern int __eqsf2(float, float); 144 extern int __eqdf2(double, double); 145 extern int __eqtf2(long double, long double); 146 147 extern int __nesf2(float, float); 148 extern int __nedf2(double, double); 149 extern int __netf2(long double, long double); 150 151 extern int __gesf2(float, float); 152 extern int __gedf2(double, double); 153 extern int __getf2(long double, long double); 154 155 extern int __ltsf2(float, float); 156 extern int __ltdf2(double, double); 157 extern int __lttf2(long double, long double); 158 extern int __lesf2(float, float); 159 extern int __ledf2(double, double); 160 extern int __letf2(long double, long double); 161 162 extern int __gtsf2(float, float); 163 extern int __gtdf2(double, double); 164 extern int __gttf2(long double, long double); 165 166 /* Not implemented yet */ 167 extern float __powisf2(float, int); 168 168 169 169 #endif 170 170 171 172 /** @} 171 /** @} 173 172 */ 174
Note:
See TracChangeset
for help on using the changeset viewer.