• Paul E. Murphy's avatar
    fast_math: selectively use GCC rounding builtins when available · 3f92bcc1
    Paul E. Murphy authored
    Add a new macro definition OPENCV_USE_FASTMATH_GCC_BUILTINS to enable
    usage of GCC inline math functions, if available and requested by the
    user.
    
    Likewise, enable it for POWER. This is nearly always a substantial
    improvement over using integer manipulation as most operations can
    be done in several instructions with no branching. The result is a
    1.5-1.8x speedup in the ceil/floor operations.
    
    1. As tested with AT 12.0-1 (GCC 8.3.1) compiler on P9 LE.
    3f92bcc1
Name
Last commit
Last update
..
3rdparty/SoftFloat Loading commit data...
doc Loading commit data...
include/opencv2 Loading commit data...
misc Loading commit data...
perf Loading commit data...
src Loading commit data...
test Loading commit data...
CMakeLists.txt Loading commit data...