News for hackers. Stuff that matters.
Re:Althttpd: Simple webserver in a single C file by nneonneo on Tuesday June 08, 2021 @05:34AM (#27432236)
This loop doesn’t test them all - it tests every 1/127th integer, so it only runs about 16 million times.
Re:Althttpd: Simple webserver in a single C file by Cthulhu_ on Tuesday June 08, 2021 @05:56AM (#27432388)
And a modern CPU runs billions of instructions per second, so it shouldn't take too long at all. Depends on the implementation of the function as well though, and how the compiler can optimize, unroll or optimize both the function under test and the test itself.