Changeset 5f9768bb in mainline


Ignore:
Timestamp:
2013-11-19T11:36:53Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
67ddb71
Parents:
18dc93c
Message:

Add some ARM EABI functions

Location:
uspace/lib
Files:
4 edited

Legend:

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

    r18dc93c r5f9768bb  
    12851285}
    12861286
     1287double __aeabi_l2d(long long i)
     1288{
     1289        return __floattidf(i);
     1290}
     1291
     1292float __aeabi_l2f(long long i)
     1293{
     1294        return __floattisf(i);
     1295}
     1296
     1297float __aeabi_ul2f(unsigned long long u)
     1298{
     1299        return __floatuntisf(u);
     1300}
     1301
    12871302int __aeabi_f2iz(float a)
    12881303{
     
    13031318{
    13041319        return __fixunsdfsi(a);
     1320}
     1321
     1322long long __aeabi_d2lz(double a)
     1323{
     1324        return __fixdfti(a);
    13051325}
    13061326
  • uspace/lib/softfloat/softfloat.h

    r18dc93c r5f9768bb  
    208208extern double __aeabi_i2d(int);
    209209extern double __aeabi_ui2d(unsigned int);
     210extern double __aeabi_l2d(long long);
     211extern float __aeabi_l2f(long long);
     212extern float __aeabi_ul2f(unsigned long long);
    210213extern unsigned int __aeabi_d2uiz(double);
     214extern long long __aeabi_d2lz(double);
    211215
    212216extern int __aeabi_f2iz(float);
  • uspace/lib/softint/generic/shift.c

    r18dc93c r5f9768bb  
    123123}
    124124
     125long long __aeabi_llsl(long long val, int shift)
     126{
     127        return __ashldi3(val, shift);
     128}
     129
    125130/** @}
    126131 */
  • uspace/lib/softint/include/shift.h

    r18dc93c r5f9768bb  
    4646extern long long __lshrdi3(long long, int);
    4747
     48
     49/* ARM EABI */
     50extern long long __aeabi_llsl(long long, int);
     51
    4852#endif
    4953
Note: See TracChangeset for help on using the changeset viewer.