News for hackers. Stuff that matters.
Re:How does your programming language handle “minus zero” (-... by krackers on Friday March 05, 2021 @05:19PM (#26362920)
That's assuming that you're implementing multiplication in software though, right? Since CPUs have dedicated multipliers, aren't both around a single cycle?
Re:How does your programming language handle “minus zero” (-... by dnautics on Friday March 05, 2021 @05:50PM (#26363258)
They are not in general (iirc 64b mult is down to 3 cycles now), but usually in an x86 cpu it can run microinstructions out of order enough so that the multiplication looks like it's finished in one cycle.