diff options
author | Vito Caputo <vcaputo@gnugeneration.com> | 2017-01-07 16:25:57 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@gnugeneration.com> | 2017-01-07 16:25:57 -0800 |
commit | b0cee37e581a20c06ff8225fde8b8de95f68d09e (patch) | |
tree | 46053b3d5e1e779f7d4e12ada19a6f0c329483c7 /modules/sparkler/particles.c | |
parent | 78d9c385ae3a1939e059c674ba5649df99d5615c (diff) |
sparkler: prefer *.5 to / 2
Multiplies tend to be less costly
Diffstat (limited to 'modules/sparkler/particles.c')
-rw-r--r-- | modules/sparkler/particles.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/sparkler/particles.c b/modules/sparkler/particles.c index ee23972..daf60ef 100644 --- a/modules/sparkler/particles.c +++ b/modules/sparkler/particles.c @@ -216,7 +216,7 @@ bsp_t * particles_bsp(particles_t *particles) static inline void _particles_draw(particles_t *particles, list_head_t *list, fb_fragment_t *fragment) { - float w2 = fragment->width / 2, h2 = fragment->height / 2; + float w2 = fragment->width * .5f, h2 = fragment->height * .5f; _particle_t *p; assert(particles); |