Changeset aec41c8 in mainline for uspace/lib/softint/generic/comparison.c
- Timestamp:
- 2018-01-16T19:00:48Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d39c46e0
- Parents:
- 8348846
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/softint/generic/comparison.c
r8348846 raec41c8 91 91 int ALIAS(__cmp, i2); 92 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 93 117 #endif 94 118
Note:
See TracChangeset
for help on using the changeset viewer.