sys: util: Improve ROUND_UP and ROUND_DOWN macros

Improve utility macros ROUND_UP and ROUND_DOWN to work
with alignments that are not a power of 2.

Signed-off-by: Ben Marsh <ben.marsh@helvar.com>
12 job 于main in 0 second (queued for 118 minute 和 24 second)
状态 作业 ID 名称 覆盖率
  Build
已失败 #38724
build

 
  Test
已跳过 #38727
允许失败
bandit-sast
已失败 #38726
允许失败
code_quality

已跳过 #38728
允许失败
eslint-sast
已跳过 #38729
允许失败
flawfinder-sast
已跳过 #38730
允许失败
gosec-sast
已跳过 #38731
允许失败
phpcs-security-audit-sast
已跳过 #38732
允许失败
pmd-apex-sast
已跳过 #38735
secret_detection_default_branch
已跳过 #38733
允许失败
security-code-scan-sast
已跳过 #38734
允许失败
spotbugs-sast
已失败 #38725
test

 
名称 暂存 失败
已失败
build Build There has been a timeout failure or the job got stuck. Check your timeout limits or try again
没有作业日志
已失败
test Test There has been a timeout failure or the job got stuck. Check your timeout limits or try again
没有作业日志
已失败
code_quality Test There has been a timeout failure or the job got stuck. Check your timeout limits or try again
没有作业日志