531 B
531 B
title | updated | created |
---|---|---|
四舍五入 | 2022-01-11 01:26:58Z | 2022-01-11 01:26:57Z |
四舍五入
#define do_div(n, base) ({ \
uint64_t __base = (base); \
uint64_t __rem; \
__rem = ((uint64_t)(n)) % __base; \
(n) = ((uint64_t)(n)) / __base; \
__rem; \
})