Lili on Nostr: nprofile1q…qrcc0 speed In C, if I do a/b where both are integers, I assume the ...
nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqdhnn6acp8d933rcmkrw8vceqfhyfr26jw4a9katmwqhqelwkc50swqrcc0 (nprofile…rcc0) speed
In C, if I do a/b where both are integers, I assume the compiler to use DIV x86 instruction, while on floats, I assume it'll use slower FDIV and then, for converting to int, I think FIST (definitely not the fastest method of doing that from the quick Google)
There wasn't a task this year in which it would matter, but if you operate on a huge set of numbers, it can cumulate.
In C, if I do a/b where both are integers, I assume the compiler to use DIV x86 instruction, while on floats, I assume it'll use slower FDIV and then, for converting to int, I think FIST (definitely not the fastest method of doing that from the quick Google)
There wasn't a task this year in which it would matter, but if you operate on a huge set of numbers, it can cumulate.