From c9a5cac4ffa441b46000c8be0ae1b5b1819da9c9 Mon Sep 17 00:00:00 2001 From: Konstantin Seurer Date: Tue, 27 Jun 2023 13:24:08 +0200 Subject: [PATCH] util: Do not include immintrin.h in half_float.h MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The files included are extremely large and hurt compile time of everything that inludes half_float.h directly or indirectly. Compile time of a fresh RADV build: before 32.477s 32.661s 32.625s after 25.116s 24.928s 25.114s v2: Include xmmintrin instead (Marek Olšák) after 25.552s 25.811s 25.678s Reviewed-by: Marek Olšák Part-of: --- src/util/half_float.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/half_float.h b/src/util/half_float.h index eac6aaf..779cf08 100644 --- a/src/util/half_float.h +++ b/src/util/half_float.h @@ -32,7 +32,7 @@ #include "util/u_cpu_detect.h" #if defined(USE_X86_64_ASM) -#include +#include #endif #ifdef __cplusplus -- 2.7.4