Changeset 8b863a62 in mainline for uspace/lib/softfloat/softfloat.c


Ignore:
Timestamp:
2014-04-16T17:14:06Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f857e8b
Parents:
dba3e2c (diff), 70b570c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/softfloat/softfloat.c

    rdba3e2c r8b863a62  
    4444#include "conversion.h"
    4545#include "comparison.h"
    46 #include "other.h"
    4746
    4847/* Arithmetic functions */
     
    12651264}
    12661265
     1266float __aeabi_d2f(double a)
     1267{
     1268        return __truncdfsf2(a);
     1269}
     1270
     1271double __aeabi_f2d(float a)
     1272{
     1273        return __extendsfdf2(a);
     1274}
     1275
     1276
     1277float __aeabi_i2f(int i)
     1278{
     1279        return __floatsisf(i);
     1280}
     1281
     1282float __aeabi_ui2f(int i)
     1283{
     1284        return __floatunsisf(i);
     1285}
     1286
    12671287double __aeabi_i2d(int i)
    12681288{
     
    12751295}
    12761296
     1297double __aeabi_l2d(long long i)
     1298{
     1299        return __floattidf(i);
     1300}
     1301
     1302float __aeabi_l2f(long long i)
     1303{
     1304        return __floattisf(i);
     1305}
     1306
     1307float __aeabi_ul2f(unsigned long long u)
     1308{
     1309        return __floatuntisf(u);
     1310}
     1311
    12771312int __aeabi_f2iz(float a)
    12781313{
     
    12801315}
    12811316
     1317int __aeabi_f2uiz(float a)
     1318{
     1319        return __fixunssfsi(a);
     1320}
     1321
    12821322int __aeabi_d2iz(double a)
    12831323{
     
    12901330}
    12911331
     1332long long __aeabi_d2lz(double a)
     1333{
     1334        return __fixdfti(a);
     1335}
     1336
     1337int __aeabi_fcmpge(float a, float b)
     1338{
     1339        return __gesf2(a, b);
     1340}
     1341
     1342int __aeabi_fcmpgt(float a, float b)
     1343{
     1344        return __gtsf2(a, b);
     1345}
     1346
     1347int __aeabi_fcmplt(float a, float b)
     1348{
     1349        return __ltsf2(a, b);
     1350}
     1351
     1352int __aeabi_fcmpeq(float a, float b)
     1353{
     1354        return __eqsf2(a, b);
     1355}
     1356
    12921357int __aeabi_dcmpge(double a, double b)
    12931358{
     
    13031368{
    13041369        return __ltdf2(a, b);
     1370}
     1371
     1372int __aeabi_dcmple(double a, double b)
     1373{
     1374        return __ledf2(a, b);
    13051375}
    13061376
Note: See TracChangeset for help on using the changeset viewer.