Skip to content

meson: prefer UCRT math functions

Kacper Michajłow requested to merge kasper93/libplacebo:math into master

MinGW-w64 math functions are significantly slower than the UCRT ones. In particular powf is over 7 times slower than UCRT counterpart. MinGW-w64 explicitly excludes some math functions from their ucrtbase def file and replaces with own versions. To workaround the issue, generate the import library and link it with UCRT versions of math functions.

Fixes slow gamut mapping LUT generation.

For 33x25x45 perceptual map: Before: 816 ms After : 109 ms

Merge request reports