The Wakaba and Kareha support thread (1000)

563 Name: Anonymous : 2007-02-09 16:20 ID:Heaven [Del]

>>562
shift right 9, add 1, shift right 1...
it's slightly faster than doing int($size/1024+.5) (about .25 seconds of cpu time for 1000000 iterations on my machine), and, at least to me, a more straightforward way to do it...

This thread has been closed. You cannot post in this thread any longer.