Ignore:
Timestamp:
2018-01-17T16:58:41Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
17c14273
Parents:
33b8d024
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-17 16:58:14)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-17 16:58:41)
Message:

Temporarily revert libsoftint changes.

File:
1 edited

Legend:

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

    r33b8d024 r2467b41  
    3434 */
    3535
    36 #include <alias.h>
    3736#include <comparison.h>
    3837#include <lltype.h>
     
    4241#define GREATER 2;
    4342
    44 int __cmpti2 (long long a, long long b)
     43int __cmpdi2 (long long a, long long b)
    4544{
    4645        union lltype lla;
     
    6564}
    6665
    67 int __ucmpti2 (unsigned long long a, unsigned long long b)
     66int __ucmpdi2 (unsigned long long a, unsigned long long b)
    6867{
    6968        union lltype lla;
     
    8887}
    8988
    90 #if LONG_MAX == LLONG_MAX
    91 int ALIAS(__cmp, i2);
    92 int ALIAS(__ucmp, i2);
    93 #else
    94 
    95 int __cmpdi2(long a, long b)
    96 {
    97         if ((int)a < (int)b) {
    98                 return LESSER;
    99         } else if ((int)a > (int)b) {
    100                 return GREATER;
    101         } else {
    102                 return EQUAL;
    103         }
    104 }
    105 
    106 int __ucmpdi2(unsigned long a, unsigned long b)
    107 {
    108         if ((int)a < (int)b) {
    109                 return LESSER;
    110         } else if ((int)a > (int)b) {
    111                 return GREATER;
    112         } else {
    113                 return EQUAL;
    114         }
    115 }
    116 
    117 #endif
    118 
    11989/** @}
    12090 */
Note: See TracChangeset for help on using the changeset viewer.