Rev 828 | Rev 858 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 828 | Rev 857 | ||
|---|---|---|---|
| Line 36... | Line 36... | ||
| 36 | 36 | ||
| 37 | #include<conversion.h> |
37 | #include<conversion.h> |
| 38 | #include<comparison.h> |
38 | #include<comparison.h> |
| 39 | #include<other.h> |
39 | #include<other.h> |
| 40 | 40 | ||
| - | 41 | #include<arch.h> |
|
| - | 42 | #include<types.h> |
|
| - | 43 | #include<functions.h> |
|
| - | 44 | ||
| 41 | /* Arithmetic functions */ |
45 | /* Arithmetic functions */ |
| 42 | 46 | ||
| 43 | float __addsf3(float a, float b) |
47 | float __addsf3(float a, float b) |
| 44 | { |
48 | { |
| 45 | float32 fa, fb; |
49 | float32 fa, fb; |
| Line 158... | Line 162... | ||
| 158 | float64 da; |
162 | float64 da; |
| 159 | da.d = a; |
163 | da.d = a; |
| 160 | return convertFloat64ToFloat32(da).f; |
164 | return convertFloat64ToFloat32(da).f; |
| 161 | } |
165 | } |
| 162 | 166 | ||
| - | 167 | int __fixsfsi(float a) |
|
| - | 168 | { |
|
| - | 169 | float32 fa; |
|
| - | 170 | fa.f = a; |
|
| - | 171 | ||
| - | 172 | return float32_to_int(fa); |
|
| - | 173 | } |
|
| - | 174 | int __fixdfsi(double a) |
|
| - | 175 | { |
|
| - | 176 | } |
|
| - | 177 | ||
| - | 178 | long __fixsfdi(float a) |
|
| - | 179 | { |
|
| - | 180 | float32 fa; |
|
| - | 181 | fa.f = a; |
|
| - | 182 | ||
| - | 183 | return float32_to_long(fa); |
|
| - | 184 | } |
|
| - | 185 | long __fixdfdi(double a) |
|
| - | 186 | { |
|
| - | 187 | } |
|
| - | 188 | ||
| - | 189 | long long __fixsfti(float a) |
|
| - | 190 | { |
|
| - | 191 | } |
|
| - | 192 | long long __fixdfti(double a) |
|
| - | 193 | { |
|
| - | 194 | } |
|
| - | 195 | ||
| - | 196 | unsigned int __fixunssfsi(float a) |
|
| - | 197 | { |
|
| - | 198 | float32 fa; |
|
| - | 199 | fa.f = a; |
|
| - | 200 | ||
| - | 201 | return float32_to_uint(fa); |
|
| - | 202 | } |
|
| - | 203 | unsigned int __fixunsdfsi(double a) |
|
| - | 204 | { |
|
| - | 205 | } |
|
| - | 206 | ||
| - | 207 | unsigned long __fixunssfdi(float a) |
|
| - | 208 | { |
|
| - | 209 | float32 fa; |
|
| - | 210 | fa.f = a; |
|
| - | 211 | ||
| - | 212 | return float32_to_long(fa); |
|
| - | 213 | } |
|
| - | 214 | unsigned long __fixunsdfdi(double a) |
|
| - | 215 | { |
|
| - | 216 | } |
|
| - | 217 | ||
| - | 218 | unsigned long long __fixunssfti(float a) |
|
| - | 219 | { |
|
| - | 220 | } |
|
| - | 221 | unsigned long long __fixunsdfti(double a) |
|
| - | 222 | { |
|
| - | 223 | } |
|
| - | 224 | ||
| - | 225 | float __floatsisf(int i) |
|
| - | 226 | { |
|
| - | 227 | } |
|
| - | 228 | double __floatsidf(int i) |
|
| - | 229 | { |
|
| - | 230 | } |
|
| - | 231 | ||
| - | 232 | float __floatdisf(long i) |
|
| - | 233 | { |
|
| - | 234 | } |
|
| - | 235 | double __floatdidf(long i) |
|
| - | 236 | { |
|
| - | 237 | } |
|
| - | 238 | ||
| - | 239 | float __floattisf(long long i) |
|
| - | 240 | { |
|
| - | 241 | } |
|
| - | 242 | double __floattidf(long long i) |
|
| - | 243 | { |
|
| - | 244 | } |
|
| - | 245 | ||
| - | 246 | float __floatunsisf(unsigned int i) |
|
| - | 247 | { |
|
| - | 248 | } |
|
| - | 249 | double __floatunsidf(unsigned int i) |
|
| - | 250 | { |
|
| - | 251 | } |
|
| - | 252 | ||
| - | 253 | float __floatundisf(unsigned long i) |
|
| - | 254 | { |
|
| - | 255 | } |
|
| - | 256 | double __floatundidf(unsigned long i) |
|
| - | 257 | { |
|
| - | 258 | } |
|
| - | 259 | ||
| - | 260 | float __floatuntisf(unsigned long long i) |
|
| - | 261 | { |
|
| - | 262 | } |
|
| - | 263 | double __floatuntidf(unsigned long long i) |
|
| - | 264 | { |
|
| - | 265 | } |
|
| - | 266 | ||
| - | 267 | /* Comparison functions */ |
|
| 163 | /* Comparison functions */ |
268 | /* Comparison functions */ |
| 164 | 269 | ||
| 165 | /* a<b .. -1 |
270 | /* a<b .. -1 |
| 166 | * a=b .. 0 |
271 | * a=b .. 0 |
| 167 | * a>b .. 1 |
272 | * a>b .. 1 |