diff options
author | José Fonseca <[email protected]> | 2008-10-01 01:13:40 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-10-01 01:13:40 +0900 |
commit | 8415d06d90a197e16554dab98d160334fd9f9f93 (patch) | |
tree | 25d004929ecac18de0e4b8bf4180bb2b33ba45f7 /doxygen | |
parent | 5dc8e67078be8b8c42a809311debd275ac7d64a7 (diff) |
util: Fix util_fast_pow/exp2/log2.
- Use a lookup table for log2.
- Compute (float) (1 << ipart) by tweaking with the exponent directly to
avoid integer overflow and float conversion.
- Also table negative exponents to avoid float division and branching.
- Implement util_fast_exp as function of util_fast_exp2.
Diffstat (limited to 'doxygen')
0 files changed, 0 insertions, 0 deletions