extensions: reduce amount of competing conversions
authorØyvind Kolås <pippin@gimp.org>
Sun, 23 Jan 2022 01:18:46 +0000 (02:18 +0100)
committerØyvind Kolås <pippin@gimp.org>
Sun, 23 Jan 2022 01:18:49 +0000 (02:18 +0100)
Avoid loading extensions if a variant with better SIMD support
is expected to exist. We know all variants that are expectd to
exist and thus can register only the fastest known variant.

This avoids combinatorial explosion of conversions to test.

extensions/meson.build

index fe7dcc020fdfd3d167c8e3bcc4a9a6b4a70130ab..be83612db3f0979d5149503880ad0d7ec2d5e216 100644 (file)
@@ -72,7 +72,7 @@ foreach ext : extensions
   shared_library(
     ext[0],
     ext[0] + '.c',
-    c_args: ext[1],
+    c_args: [ext[1], '-DBABL_SIMDFREE' ],
     include_directories: babl_ext_inc,
     link_with: babl,
     link_args: babl_ext_link_args,