Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 8348846 in mainline


Ignore:
Timestamp:
2018-01-15T22:39:24Z (4 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master
Children:
2013ea9, aec41c8
Parents:
dbbbe75b
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-15 21:54:21)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-15 22:39:24)
Message:

Fix symbols in libsoftint.

Location:
uspace/lib/softint
Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/softint/generic/comparison.c

    rdbbbe75b r8348846  
    3434 */
    3535
     36#include <alias.h>
    3637#include <comparison.h>
    3738#include <lltype.h>
     
    4142#define GREATER 2;
    4243
    43 int __cmpdi2 (long long a, long long b)
     44int __cmpti2 (long long a, long long b)
    4445{
    4546        union lltype lla;
     
    6465}
    6566
    66 int __ucmpdi2 (unsigned long long a, unsigned long long b)
     67int __ucmpti2 (unsigned long long a, unsigned long long b)
    6768{
    6869        union lltype lla;
     
    8788}
    8889
     90#if LONG_MAX == LLONG_MAX
     91int ALIAS(__cmp, i2);
     92int ALIAS(__ucmp, i2);
     93#endif
     94
    8995/** @}
    9096 */
  • uspace/lib/softint/generic/division.c

    rdbbbe75b r8348846  
    3535 */
    3636
     37#include <alias.h>
    3738#include <division.h>
    3839
     
    121122
    122123/* 64bit integer division */
    123 long long __divdi3(long long a, long long b)
     124long long __divti3(long long a, long long b)
    124125{
    125126        unsigned long long rem;
     
    140141
    141142/* 64bit unsigned integer division */
    142 unsigned long long __udivdi3(unsigned long long a, unsigned long long b)
     143unsigned long long __udivti3(unsigned long long a, unsigned long long b)
    143144{
    144145        unsigned long long rem;
     
    160161
    161162/* 64bit remainder of the signed division */
    162 long long __moddi3(long long a, long long b)
     163long long __modti3(long long a, long long b)
    163164{
    164165        unsigned long long rem;
     
    181182
    182183/* 64bit remainder of the unsigned division */
    183 unsigned long long __umoddi3(unsigned long long a, unsigned long long b)
     184unsigned long long __umodti3(unsigned long long a, unsigned long long b)
    184185{
    185186        unsigned long long rem;
     
    202203}
    203204
     205int __divmodsi4(int a, int b, int *c)
     206{
     207        return __divmodsi3(a, b, c);
     208}
     209
    204210unsigned int __udivmodsi3(unsigned int a, unsigned int b,
    205211    unsigned int *c)
     
    208214}
    209215
    210 long long __divmoddi3(long long a, long long b, long long *c)
     216unsigned int __udivmodsi4(unsigned int a, unsigned int b,
     217    unsigned int *c)
     218{
     219        return divandmod32(a, b, c);
     220}
     221
     222long long __divmodti3(long long a, long long b, long long *c)
    211223{
    212224        unsigned long long rem;
     
    222234}
    223235
    224 long long __divmoddi4(long long a, long long b, long long *c)
     236
     237long long __divmodti4(long long a, long long b, long long *c)
    225238{
    226239        unsigned long long rem;
     
    236249}
    237250
    238 unsigned long long __udivmoddi3(unsigned long long a, unsigned long long b,
     251unsigned long long __udivmodti3(unsigned long long a, unsigned long long b,
    239252    unsigned long long *c)
    240253{
     
    242255}
    243256
    244 unsigned long long __udivmoddi4(unsigned long long a, unsigned long long b,
     257unsigned long long __udivmodti4(unsigned long long a, unsigned long long b,
    245258    unsigned long long *c)
    246259{
    247260        return divandmod64(a, b, c);
    248261}
     262
     263long ALIAS(__div, i3);
     264long ALIAS(__mod, i3);
     265long ALIAS(__divmod, i3);
     266long ALIAS(__divmod, i4);
     267unsigned long ALIAS(__udiv, i3);
     268unsigned long ALIAS(__umod, i3);
     269unsigned long ALIAS(__udivmod, i3);
     270unsigned long ALIAS(__udivmod, i4);
    249271
    250272/** @}
  • uspace/lib/softint/generic/multiplication.c

    rdbbbe75b r8348846  
    3535 */
    3636
     37#include <alias.h>
    3738#include <multiplication.h>
    3839#include <stdint.h>
     
    6768 *
    6869 */
    69 long long __muldi3 (long long a, long long b)
     70long long __multi3 (long long a, long long b)
    7071{
    7172        char neg = 0;
     
    120121}
    121122
     123#if LONG_MAX == LLONG_MAX
     124long ALIAS(__mul, i3);
     125#endif
     126
    122127/** @}
    123128 */
  • uspace/lib/softint/generic/shift.c

    rdbbbe75b r8348846  
    3434 */
    3535
     36#include <alias.h>
    3637#include <shift.h>
    3738#include <lltype.h>
    3839
    39 long long __ashldi3 (long long val, int shift)
     40long long __ashlti3 (long long val, int shift)
    4041{
    4142        union lltype ll;
     
    6566}
    6667
    67 long long __ashrdi3 (long long val, int shift)
     68long long __ashrti3 (long long val, int shift)
    6869{
    6970        union lltype ll;
     
    9596}
    9697
    97 long long __lshrdi3 (long long val, int shift)
     98long long __lshrti3 (long long val, int shift)
    9899{
    99100        union lltype ll;
     
    133134}
    134135
     136#if LONG_MAX == LLONG_MAX
     137long ALIAS(__ashl, i3);
     138long ALIAS(__ashr, i3);
     139long ALIAS(__lshr, i3);
     140#endif
     141
    135142/** @}
    136143 */
  • uspace/lib/softint/include/comparison.h

    rdbbbe75b r8348846  
    3838
    3939/* Signed comparison (a < b => 0, a == b => 1, a > b => 2). */
    40 extern int __cmpdi2(long long, long long);
     40extern int __cmpdi2(long, long);
     41extern int __cmpti2(long long, long long);
    4142
    4243/* Unsigned comparison (a < b => 0, a == b => 1, a > b => 2). */
    43 extern int __ucmpdi2(unsigned long long, unsigned long long);
     44extern int __ucmpdi2(unsigned long, unsigned long);
     45extern int __ucmpti2(unsigned long long, unsigned long long);
    4446
    4547#endif
  • uspace/lib/softint/include/division.h

    rdbbbe75b r8348846  
    3838
    3939extern int __divsi3(int, int);
    40 extern long long __divdi3(long long, long long);
     40extern long __divdi3(long, long);
     41extern long long __divti3(long long, long long);
    4142
    4243extern unsigned int __udivsi3(unsigned int, unsigned int);
    43 extern unsigned long long __udivdi3(unsigned long long, unsigned long long);
     44extern unsigned long __udivdi3(unsigned long, unsigned long);
     45extern unsigned long long __udivti3(unsigned long long, unsigned long long);
    4446
    4547extern int __modsi3(int, int);
    46 extern long long __moddi3(long long, long long);
     48extern long __moddi3(long, long);
     49extern long long __modti3(long long, long long);
    4750
    4851extern unsigned int __umodsi3(unsigned int, unsigned int);
    49 extern unsigned long long __umoddi3(unsigned long long, unsigned long long);
     52extern unsigned long __umoddi3(unsigned long, unsigned long);
     53extern unsigned long long __umodti3(unsigned long long, unsigned long long);
    5054
    5155extern int __divmodsi3(int, int, int *);
     56extern long __divmoddi3(long, long, long *);
     57extern long long __divmodti3(long long, long long, long long *);
     58
    5259extern unsigned int __udivmodsi3(unsigned int, unsigned int, unsigned int *);
     60extern unsigned long __udivmoddi3(unsigned long, unsigned long,
     61    unsigned long *);
     62extern unsigned long long __udivmodti3(unsigned long long, unsigned long long,
     63    unsigned long long *);
    5364
    54 extern long long __divmoddi3(long long, long long, long long *);
    55 extern long long __divmoddi4(long long, long long, long long *);
    56 extern unsigned long long __udivmoddi3(unsigned long long, unsigned long long,
    57     unsigned long long *);
    58 extern unsigned long long __udivmoddi4(unsigned long long, unsigned long long,
     65extern int __divmodsi4(int, int, int *);
     66extern long __divmoddi4(long, long, long *);
     67extern long long __divmodti4(long long, long long, long long *);
     68
     69extern unsigned int __udivmodsi4(unsigned int, unsigned int, unsigned int *);
     70extern unsigned long __udivmoddi4(unsigned long, unsigned long,
     71    unsigned long *);
     72extern unsigned long long __udivmodti4(unsigned long long, unsigned long long,
    5973    unsigned long long *);
    6074
  • uspace/lib/softint/include/multiplication.h

    rdbbbe75b r8348846  
    3838
    3939/* 64 bit multiplication */
    40 extern long long __muldi3(long long, long long);
     40extern long __muldi3(long, long);
     41extern long long __multi3(long long, long long);
    4142
    4243#endif
  • uspace/lib/softint/include/shift.h

    rdbbbe75b r8348846  
    3838
    3939/* Arithmetic/logical shift left. */
    40 extern long long __ashldi3(long long, int);
     40extern long __ashldi3(long, int);
     41extern long long __ashlti3(long long, int);
    4142
    4243/* Arithmetic shift right. */
    43 extern long long __ashrdi3(long long, int);
     44extern long __ashrdi3(long, int);
     45extern long long __ashrti3(long long, int);
    4446
    4547/* Logical shift right. */
    46 extern long long __lshrdi3(long long, int);
     48extern long __lshrdi3(long, int);
     49extern long long __lshrti3(long long, int);
    4750
    4851
Note: See TracChangeset for help on using the changeset viewer.