Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Gramner <gramner@twoorioles.com>2022-09-26 16:14:34 +0300
committerHenrik Gramner <henrik@gramner.com>2022-09-28 17:06:39 +0300
commit6fefa6a55cc1cc1cefad93e9f78efd0725fd8efa (patch)
tree03aeb4c50529b2c685037dc0ba8d178d08ec2fc9 /meson.build
parent8349845c8cb2d296e0d89416538c5f7215ca8a08 (diff)
checkasm: Improve 32-bit parameter clobbering on x86-64
Use explicit parameter type detection and manually clobber the upper bits instead of relying on internal compiler behavior.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index a9bce50..c16594d 100644
--- a/meson.build
+++ b/meson.build
@@ -261,6 +261,10 @@ if cc.has_function('pthread_getaffinity_np', prefix : pthread_np_prefix, args :
cdata.set('HAVE_PTHREAD_GETAFFINITY_NP', 1)
endif
+if cc.compiles('int x = _Generic(0, default: 0);', name: '_Generic', args: test_args)
+ cdata.set('HAVE_C11_GENERIC', 1)
+endif
+
# Compiler flag tests
if cc.has_argument('-fvisibility=hidden')