obsidian-notes/代码/四舍五入.md
CSSC-WORK\murmur 3e6078442b init version
2024-04-15 11:19:57 +08:00

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;                                                          \
  })