Why float division is faster than integer division:修订历史

差异选择:选中要对比的版本的单选按钮,按Enter键或下方的按钮。
说明:(当前)=与最后版本之间的差异,(之前)=与上一版本之间的差异,=小编辑。

2023年12月29日 (星期五)

  • 当前之前 08:392023年12月29日 (五) 08:39Riguz 讨论 贡献 1,556字节 +87 无编辑摘要
  • 当前之前 08:362023年12月29日 (五) 08:36Riguz 讨论 贡献 1,469字节 +1,469 创建页面,内容为“Floating point number division is faster than integer division because of the exponent part in floating point number representation. To divide one exponent by another one plain subtraction is used. int32_t division requires fast division of 31-bit numbers, whereas float division requires fast division of 24-bit mantissas (the leading one in mantissa is implied and not stored in a floating point number) and faster subtraction of 8-bit exponents. See an excelle…”