Changeset aec41c8 in mainline for uspace/lib/softint/generic/shift.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/shift.c
r8348846 raec41c8 126 126 long long __aeabi_llsl(long long val, int shift) 127 127 { 128 return __ashl di3(val, shift);128 return __ashlti3(val, shift); 129 129 } 130 130 131 131 long long __aeabi_llsr(long long val, int shift) 132 132 { 133 return __lshr di3(val, shift);133 return __lshrti3(val, shift); 134 134 } 135 135 … … 138 138 long ALIAS(__ashr, i3); 139 139 long ALIAS(__lshr, i3); 140 #else 141 142 long __ashldi3(long val, int shift) 143 { 144 return ((int) val) << shift; 145 } 146 147 long __ashrdi3(long val, int shift) 148 { 149 return ((int) val) >> shift; 150 } 151 152 long __lshrdi3(long val, int shift) 153 { 154 return ((unsigned int) val) >> shift; 155 } 156 140 157 #endif 141 158
Note:
See TracChangeset
for help on using the changeset viewer.