Changeset 547fa39 in mainline
- Timestamp:
- 2007-04-06T10:22:27Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c0cf640
- Parents:
- 31d8e10
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/lib/func.c
r31d8e10 r547fa39 224 224 void order(const uint64_t val, uint64_t *rv, char *suffix) 225 225 { 226 if (val > 1000000000000000000LL) { 227 *rv = val / 1000000000000000LL; 226 if (val > 10000000000000000000ULL) { 227 *rv = val / 1000000000000000000ULL; 228 *suffix = 'Z'; 229 } else if (val > 1000000000000000000ULL) { 230 *rv = val / 1000000000000000ULL; 228 231 *suffix = 'E'; 229 } else if (val > 1000000000000000 LL) {230 *rv = val / 1000000000000 LL;232 } else if (val > 1000000000000000ULL) { 233 *rv = val / 1000000000000ULL; 231 234 *suffix = 'T'; 232 } else if (val > 1000000000000 LL) {233 *rv = val / 1000000000 LL;235 } else if (val > 1000000000000ULL) { 236 *rv = val / 1000000000ULL; 234 237 *suffix = 'G'; 235 } else if (val > 1000000000 LL) {236 *rv = val / 1000000 LL;238 } else if (val > 1000000000ULL) { 239 *rv = val / 1000000ULL; 237 240 *suffix = 'M'; 238 } else if (val > 1000000 LL) {239 *rv = val / 1000 LL;241 } else if (val > 1000000ULL) { 242 *rv = val / 1000ULL; 240 243 *suffix = 'k'; 241 244 } else {
Note:
See TracChangeset
for help on using the changeset viewer.