Rev 1896 | Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1896 | Rev 2050 | ||
---|---|---|---|
Line 219... | Line 219... | ||
219 | } |
219 | } |
220 | 220 | ||
221 | return result; |
221 | return result; |
222 | } |
222 | } |
223 | 223 | ||
- | 224 | ||
- | 225 | void order(const uint64_t val, uint64_t *rv, char *suffix) |
|
- | 226 | { |
|
- | 227 | if (val > 1000000000000000000LL) { |
|
- | 228 | *rv = val / 1000000000000000000LL; |
|
- | 229 | *suffix = 'E'; |
|
- | 230 | } else if (val > 1000000000000LL) { |
|
- | 231 | *rv = val / 1000000000000LL; |
|
- | 232 | *suffix = 'T'; |
|
- | 233 | } else if (val > 1000000LL) { |
|
- | 234 | *rv = val / 1000000LL; |
|
- | 235 | *suffix = 'M'; |
|
- | 236 | } else { |
|
- | 237 | *rv = val; |
|
- | 238 | *suffix = ' '; |
|
- | 239 | } |
|
- | 240 | } |
|
- | 241 | ||
224 | /** @} |
242 | /** @} |
225 | */ |
243 | */ |