summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorChai T. Rex <ChaiTRex@users.noreply.github.com>2024-08-26 01:36:25 -0400
committerChai T. Rex <ChaiTRex@users.noreply.github.com>2024-08-28 23:07:04 -0400
commit7af8e218da9d7d0b4b1c244ecd192bac8c847b1b (patch)
treef6da3ced5854042fdfdef229e20530e9f86ee41c /compiler/rustc_interface/src
parent0cac9152116b5b4e4c5f84a05e0ceb20dc325a0c (diff)
downloadrust-7af8e218da9d7d0b4b1c244ecd192bac8c847b1b.tar.gz
rust-7af8e218da9d7d0b4b1c244ecd192bac8c847b1b.zip
Speed up `checked_isqrt` and `isqrt` methods
* Use a lookup table for 8-bit integers and the Karatsuba square root
  algorithm for larger integers.
* Include optimization hints that give the compiler the exact numeric
  range of results.
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions