News for hackers. Stuff that matters.
Re:How Rust 1.26 more than tripled the speed of my code by monocasa on Monday May 14, 2018 @02:44PM (#17068261)
I wouldn't say that it's only x86. MIPS does the same thing, but doesn't even stick the result in the GPRs, you issue a multiply, and the result ends up in the hi and lo registers that you have to mfhi and mflo to move back into GPRs.
Re:How Rust 1.26 more than tripled the speed of my code by comex on Monday May 14, 2018 @06:46PM (#17070104)
Oh, good point, I've seen that before but forgot about it. Though to be fair, that's 32x32->64, not 64x64->128 :)
Re:How Rust 1.26 more than tripled the speed of my code by monocasa on Monday May 14, 2018 @07:03PM (#17070200)
The combined HI and LO are 64x64->128 on Mips64. You just have to use dmult instead of mult.