计算机科学 > 数据结构与算法
[提交于 2024年12月6日]
标题:Classic Round-Up Variant of Fast Unsigned Division by Constants: Algorithm and Full Proof
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Integer division instruction is generally expensive in most architectures. If the divisor is constant, the division can be transformed into combinations of several inexpensive integer instructions. This article discusses the classic round-up variant of the fast unsigned division by constants algorithm, and provides full proof of its correctness and feasibility. Additionally, a simpler variant for bounded dividends is presented.
提交历史
来自:Yifei Li[v1] 2024年12月6日 星期五 00:00:00 UTC