build-sys: meson: Add a check for fast 64-bit operations
authorArun Raghavan <arun@arunraghavan.net>
Thu, 15 Aug 2019 10:00:00 +0000 (15:30 +0530)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 15 Aug 2019 13:27:13 +0000 (18:57 +0530)
meson.build

index ae3d81ae22e645417f65e4c23a4c2fedb065fa98..0025bf5963326e9ae3f548b20698dfe7a9c3fa2b 100644 (file)
@@ -167,6 +167,10 @@ elif host_machine.system() == 'windows'
 #  cdata.set('__EXTENSIONS__', 1)
 endif
 
+if host_machine.cpu_family() == 'x86_64' or cc.sizeof('void *') >= 8
+  cdata.set('HAVE_FAST_64BIT_OPERATIONS', 1)
+endif
+
 # Headers
 
 check_headers = [