~sheosi/helenos/lua

« back to all changes in this revision

Viewing changes to uspace/lib/softfloat/softfloat.c

  • Committer: Sergio Tortosa (sheosi)
  • Date: 2013-12-22 14:13:23 UTC
  • mfrom: (2032.1.12 mainline)
  • Revision ID: sertorbe@gmail.com-20131222141323-gbiqm4j2w9sbjty5
MergedĀ mainline

Show diffs side-by-side

added added

removed removed

Lines of Context:
1264
1264
        return !is_long_double_eq(ta.data, tb.data);
1265
1265
}
1266
1266
 
 
1267
float __aeabi_d2f(double a)
 
1268
{
 
1269
        return __truncdfsf2(a);
 
1270
}
 
1271
 
 
1272
double __aeabi_f2d(float a)
 
1273
{
 
1274
        return __extendsfdf2(a);
 
1275
}
 
1276
 
 
1277
 
1267
1278
float __aeabi_i2f(int i)
1268
1279
{
1269
1280
        return __floatsisf(i);
1284
1295
        return __floatunsidf(i);
1285
1296
}
1286
1297
 
 
1298
double __aeabi_l2d(long long i)
 
1299
{
 
1300
        return __floattidf(i);
 
1301
}
 
1302
 
 
1303
float __aeabi_l2f(long long i)
 
1304
{
 
1305
        return __floattisf(i);
 
1306
}
 
1307
 
 
1308
float __aeabi_ul2f(unsigned long long u)
 
1309
{
 
1310
        return __floatuntisf(u);
 
1311
}
 
1312
 
1287
1313
int __aeabi_f2iz(float a)
1288
1314
{
1289
1315
        return __fixsfsi(a);
1304
1330
        return __fixunsdfsi(a);
1305
1331
}
1306
1332
 
 
1333
long long __aeabi_d2lz(double a)
 
1334
{
 
1335
        return __fixdfti(a);
 
1336
}
 
1337
 
1307
1338
int __aeabi_fcmpge(float a, float b)
1308
1339
{
1309
1340
        return __gesf2(a, b);
1339
1370
        return __ltdf2(a, b);
1340
1371
}
1341
1372
 
 
1373
int __aeabi_dcmple(double a, double b)
 
1374
{
 
1375
        return __ledf2(a, b);
 
1376
}
 
1377
 
 
1378
 
1342
1379
int __aeabi_dcmpeq(double a, double b)
1343
1380
{
1344
1381
        return __eqdf2(a, b);