warren

Calgary, Canada

Age: 28

I am a java programmer and a philosopher. Nothing annoys/interests me more than a problem I can't solve. I also like video games.

Feb
20
answered What is the largest $n$ for which the $n$th prime is known?
Feb
13
comment Fastest way to factor powers of two?
On modern cpus, there is a primitive instruction for doing this. Without that, there is still a faster way -- by adopting the De Bruijn method of finding integer log_2 -- than the solution listed in the Integer class.
Feb
13
comment Looking for an efficient integer square root algorithm for ARM Thumb2
Yep, this is probably the fastest you can do on a CPU with division but without a FPU or extended bit manipulation instructions. It is worth noting that the 64 bit version of the algorithm may get better precision for large numbers than an IEEE 754 double on some computers.
Sep
24
awarded Autobiographer
Sep
24
awarded Autobiographer
Sep
24
awarded Autobiographer
Sep
24
awarded Autobiographer
Sep
24
awarded Autobiographer
May
20
awarded Teacher
May
19
awarded Editor
May
19
revised Shall remainder always be positive?
added addendum
May
19
answered Shall remainder always be positive?
Feb
8
revised Looking for an efficient integer square root algorithm for ARM Thumb2
fix error
Feb
7
answered Looking for an efficient integer square root algorithm for ARM Thumb2
Feb
3
comment Is it possible to detect window occlusion
If I understand you correctly, I already knew that Relying on builtin Java2D behaviour would not be enough. To save on resources when window is hidden.
Jan
31
awarded Commentator
Jan
31
comment Is it possible to detect window occlusion
Currently, I am drawing to the screen by rendering to either a buffered image or a volatile image, depending on if I need low level pixel manipulation or not, then drawing the image to the window. I am monitoring by setting the resolution to max and looking at the computer's CPU usage while playing an animation at 10.7hz.
Jan
28
comment Is it possible to detect window occlusion
My tests show that rendering speed/cost is unaffected by if the window is covered or not.
Jan
25
asked Is it possible to detect window occlusion
Dec
28
accepted speed of nested synchronized
1 2 3