Changeset 5a6a42f in mainline for boot/genarch/src/division.c
- Timestamp:
- 2012-04-07T12:34:19Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 956a22c
- Parents:
- df955955
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/genarch/src/division.c
rdf955955 r5a6a42f 73 73 { 74 74 unsigned long long result; 75 int steps = sizeof(unsigned long long) * 8; 75 int steps = sizeof(unsigned long long) * 8; 76 76 77 77 *remainder = 0; … … 104 104 105 105 /* 32bit integer division */ 106 int __divsi3(int a, int b) 106 int __divsi3(int a, int b) 107 107 { 108 108 unsigned int rem; … … 116 116 117 117 /* 64bit integer division */ 118 long long __divdi3(long long a, long long b) 118 long long __divdi3(long long a, long long b) 119 119 { 120 120 unsigned long long rem; … … 155 155 156 156 /* 64bit remainder of the signed division */ 157 long long __moddi3(long long a, longlong b)157 long long __moddi3(long long a, long long b) 158 158 { 159 159 unsigned long long rem; … … 183 183 } 184 184 185 unsigned int __udivmodsi3(unsigned int a, unsigned int b, 186 unsigned int *c) 187 { 188 return divandmod32(a, b, c); 189 } 190 185 191 unsigned long long __udivmoddi3(unsigned long long a, unsigned long long b, 186 192 unsigned long long *c)
Note:
See TracChangeset
for help on using the changeset viewer.