Rev 874 | Rev 1031 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 874 | Rev 876 | ||
---|---|---|---|
Line 261... | Line 261... | ||
261 | fa = int_to_float32(i); |
261 | fa = int_to_float32(i); |
262 | return fa.f; |
262 | return fa.f; |
263 | } |
263 | } |
264 | double __floatsidf(int i) |
264 | double __floatsidf(int i) |
265 | { |
265 | { |
- | 266 | float64 da; |
|
- | 267 | ||
- | 268 | da = int_to_float64(i); |
|
- | 269 | return da.d; |
|
266 | } |
270 | } |
267 | 271 | ||
268 | float __floatdisf(long i) |
272 | float __floatdisf(long i) |
269 | { |
273 | { |
270 | float32 fa; |
274 | float32 fa; |
Line 272... | Line 276... | ||
272 | fa = long_to_float32(i); |
276 | fa = long_to_float32(i); |
273 | return fa.f; |
277 | return fa.f; |
274 | } |
278 | } |
275 | double __floatdidf(long i) |
279 | double __floatdidf(long i) |
276 | { |
280 | { |
- | 281 | float64 da; |
|
- | 282 | ||
- | 283 | da = long_to_float64(i); |
|
- | 284 | return da.d; |
|
277 | } |
285 | } |
278 | 286 | ||
279 | float __floattisf(long long i) |
287 | float __floattisf(long long i) |
280 | { |
288 | { |
281 | float32 fa; |
289 | float32 fa; |
Line 283... | Line 291... | ||
283 | fa = longlong_to_float32(i); |
291 | fa = longlong_to_float32(i); |
284 | return fa.f; |
292 | return fa.f; |
285 | } |
293 | } |
286 | double __floattidf(long long i) |
294 | double __floattidf(long long i) |
287 | { |
295 | { |
- | 296 | float64 da; |
|
- | 297 | ||
- | 298 | da = longlong_to_float64(i); |
|
- | 299 | return da.d; |
|
288 | } |
300 | } |
289 | 301 | ||
290 | float __floatunsisf(unsigned int i) |
302 | float __floatunsisf(unsigned int i) |
291 | { |
303 | { |
292 | float32 fa; |
304 | float32 fa; |
Line 294... | Line 306... | ||
294 | fa = uint_to_float32(i); |
306 | fa = uint_to_float32(i); |
295 | return fa.f; |
307 | return fa.f; |
296 | } |
308 | } |
297 | double __floatunsidf(unsigned int i) |
309 | double __floatunsidf(unsigned int i) |
298 | { |
310 | { |
- | 311 | float64 da; |
|
- | 312 | ||
- | 313 | da = uint_to_float64(i); |
|
- | 314 | return da.d; |
|
299 | } |
315 | } |
300 | 316 | ||
301 | float __floatundisf(unsigned long i) |
317 | float __floatundisf(unsigned long i) |
302 | { |
318 | { |
303 | float32 fa; |
319 | float32 fa; |
Line 305... | Line 321... | ||
305 | fa = ulong_to_float32(i); |
321 | fa = ulong_to_float32(i); |
306 | return fa.f; |
322 | return fa.f; |
307 | } |
323 | } |
308 | double __floatundidf(unsigned long i) |
324 | double __floatundidf(unsigned long i) |
309 | { |
325 | { |
- | 326 | float64 da; |
|
- | 327 | ||
- | 328 | da = ulong_to_float64(i); |
|
- | 329 | return da.d; |
|
310 | } |
330 | } |
311 | 331 | ||
312 | float __floatuntisf(unsigned long long i) |
332 | float __floatuntisf(unsigned long long i) |
313 | { |
333 | { |
314 | float32 fa; |
334 | float32 fa; |
Line 316... | Line 336... | ||
316 | fa = ulonglong_to_float32(i); |
336 | fa = ulonglong_to_float32(i); |
317 | return fa.f; |
337 | return fa.f; |
318 | } |
338 | } |
319 | double __floatuntidf(unsigned long long i) |
339 | double __floatuntidf(unsigned long long i) |
320 | { |
340 | { |
- | 341 | float64 da; |
|
- | 342 | ||
- | 343 | da = ulonglong_to_float64(i); |
|
- | 344 | return da.d; |
|
321 | } |
345 | } |
322 | 346 | ||
323 | /* Comparison functions */ |
347 | /* Comparison functions */ |
324 | /* Comparison functions */ |
348 | /* Comparison functions */ |
325 | 349 |