Changeset 1d83419 in mainline for softfloat/generic/softfloat.c


Ignore:
Timestamp:
2006-02-24T17:27:19Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ba5870d
Parents:
a82695c
Message:

32 bit integers to float type conversions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • softfloat/generic/softfloat.c

    ra82695c r1d83419  
    257257float __floatsisf(int i)
    258258{
     259        float32 fa;
     260       
     261        fa = int_to_float32(i);
     262        return fa.f;
    259263}
    260264double __floatsidf(int i)
     
    264268float __floatdisf(long i)
    265269{
     270        float32 fa;
     271       
     272        fa = long_to_float32(i);
     273        return fa.f;
    266274}
    267275double __floatdidf(long i)
     
    271279float __floattisf(long long i)
    272280{
     281        float32 fa;
     282       
     283        fa = longlong_to_float32(i);
     284        return fa.f;
    273285}
    274286double __floattidf(long long i)
     
    278290float __floatunsisf(unsigned int i)
    279291{
     292        float32 fa;
     293       
     294        fa = uint_to_float32(i);
     295        return fa.f;
    280296}
    281297double __floatunsidf(unsigned int i)
     
    285301float __floatundisf(unsigned long i)
    286302{
     303        float32 fa;
     304       
     305        fa = ulong_to_float32(i);
     306        return fa.f;
    287307}
    288308double __floatundidf(unsigned long i)
     
    292312float __floatuntisf(unsigned long long i)
    293313{
     314        float32 fa;
     315       
     316        fa = ulonglong_to_float32(i);
     317        return fa.f;
    294318}
    295319double __floatuntidf(unsigned long long i)
Note: See TracChangeset for help on using the changeset viewer.