util: When building 'ARM64EC', don't use x64 intrinsics which need to be emulated
authorBen Niu <beniu@microsoft.com>
Thu, 21 Jan 2021 17:56:17 +0000 (09:56 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 22 Jan 2021 17:56:08 +0000 (17:56 +0000)
commit36a4aeb91f3a940f53e1209b5f1671403142a130
tree922a2a9787d9242cca3cc4183f9ba076e3911e34
parent86b4f6ad43d635b63adf7bfe99f9eeb103f99255
util: When building 'ARM64EC', don't use x64 intrinsics which need to be emulated

ARM64EC is a new build target for Windows ARM64 devices for x64 support.
These binaries can be loaded in x64 processes, but don't need to be emulated. For
code that's heavily used, avoiding the emulation can be a huge perf win.

Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8619>
src/util/rounding.h