you are viewing a single comment's thread
view the rest of the comments
[–] 4 points 4 months ago (1 child)

Citation needed! Processors have had multiplication in silicon since forever, and compiler writers aren't stupid. You can even check on https://godbolt.org/ with old versions. I bet you can't find a compiler from 1999 that won't optimize an unsigned integer multiply to a bit shift without turning off optimisations.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 5 points 4 months ago

    C existed for almost a decade, before they added this specific optimization to compilers in late 1970

    I was not referencing particularly RCT and was just trying to explain, what optimizations mean on that level, be it automatic or manual.

  • source
  • parent