Changeset feef1cd in mainline for softfloat/generic/softfloat.c


Ignore:
Timestamp:
2006-01-08T19:39:07Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
56a39dde
Parents:
3af72dc
Message:

Added new function for testint 64 bit floats and functions for 32↔64 bit conversion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • softfloat/generic/softfloat.c

    r3af72dc rfeef1cd  
    7272}
    7373
     74float __divsf3(float a, float b)
     75{
     76        float32 fa, fb;
     77        fa.f=a;
     78        fb.f=b;
     79//      return  divFloat32(fa, fb).f;
     80};
     81
    7482float __negsf2(float a)
    7583{
     
    9098/* Conversion functions */
    9199
     100double __extendsfdf2(float a)
     101{
     102        float32 fa;
     103        fa.f = a;
     104        return convertFloat32ToFloat64(fa).d;
     105};
     106
     107float __truncdfsf2(double a)
     108{
     109        float64 da;
     110        da.d = a;
     111        return convertFloat64ToFloat32(da).f;
     112}
    92113/* Comparison functions */
    93114
Note: See TracChangeset for help on using the changeset viewer.