If you are on a sidewalk and the covid goes beep beep
Just step aside or you might have a bit of heat
Covid covid runs through the town all day
Can the people ever change their ways
Sherwin the covid's after you
Sherwin if it catches you you're through
@hgm, Benchmarks of shift instructions comparing Intel vs AMD reveals that even ten year old AMD chips run circles around even the latest Intel chips. So my question about your solution is wouldn't it be better to use a shift instruction rather than a multiply.
If you are on a sidewalk and the covid goes beep beep
Just step aside or you might have a bit of heat
Covid covid runs through the town all day
Can the people ever change their ways
Sherwin the covid's after you
Sherwin if it catches you you're through
Michael Sherwin wrote: ↑Sun Apr 12, 2020 11:27 pm
@hgm, Benchmarks of shift instructions comparing Intel vs AMD reveals that even ten year old AMD chips run circles around even the latest Intel chips. So my question about your solution is wouldn't it be better to use a shift instruction rather than a multiply.
Michael Sherwin wrote: ↑Sun Apr 12, 2020 11:27 pm
@hgm, Benchmarks of shift instructions comparing Intel vs AMD reveals that even ten year old AMD chips run circles around even the latest Intel chips. So my question about your solution is wouldn't it be better to use a shift instruction rather than a multiply.
If you multiply by a constant that's a power of 2 the compiler will output shifts instead.
Oh okay, I think I knew that, duh (to me). Thanks for the reminder!
If you are on a sidewalk and the covid goes beep beep
Just step aside or you might have a bit of heat
Covid covid runs through the town all day
Can the people ever change their ways
Sherwin the covid's after you
Sherwin if it catches you you're through