大于或等于输入且能被 8 整除的最小数字:
return (input + 7) & ~7;
Run Code Online (Sandbox Code Playgroud)
大于输入且能被 8 整除的最小数字:
return (input + 8) & ~7;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1496 次 |
| 最近记录: |