3 Apr
2011
3 Apr
'11
6:56 p.m.
On 2-4-2011 17:39, Jasper van de Gronde wrote:
Johan mailed me a link to this site: http://stereopsis.com/sree/fpu2006.html Based on the routine proposed there I just implemented faster rounding in Gaussian blur (the IIR code uses it extensively). In my tests this speeds up blurring by about 10-20%, not insignificant for such a small change.
I knew it! :P
However, the procedure does make use of the internal representation of a double, so I'm a little worried about it breaking on different architectures.
If you use a non-Intel architecture it would be great if you could try out the Gaussian blur currently in bzr (it's rev. 10144) and see if anything goes wrong.
Perhaps you can #ifdef the faster implementation of rounding?
Ciao, Johan