From cad6736d641392e4e73bc20fcb2ffa3267edeab3 Mon Sep 17 00:00:00 2001 From: Leonid Fedorov Date: Fri, 11 Feb 2022 15:18:52 +0300 Subject: [PATCH] enum for SIMD out of ifdef --- utils/common/simd_sse.h | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/utils/common/simd_sse.h b/utils/common/simd_sse.h index 9815029c7..9f7e8ffb9 100644 --- a/utils/common/simd_sse.h +++ b/utils/common/simd_sse.h @@ -17,6 +17,17 @@ #pragma once +// Column filtering is dispatched 4-way based on the column type, +// which defines implementation of comparison operations for the column values +enum ENUM_KIND +{ + KIND_DEFAULT, // compared as signed integers + KIND_UNSIGNED, // compared as unsigned integers + KIND_FLOAT, // compared as floating-point numbers + KIND_TEXT +}; // whitespace-trimmed and then compared as signed integers + + #if defined(__x86_64__) #include @@ -36,16 +47,6 @@ #include -// Column filtering is dispatched 4-way based on the column type, -// which defines implementation of comparison operations for the column values -enum ENUM_KIND -{ - KIND_DEFAULT, // compared as signed integers - KIND_UNSIGNED, // compared as unsigned integers - KIND_FLOAT, // compared as floating-point numbers - KIND_TEXT -}; // whitespace-trimmed and then compared as signed integers - namespace simd { using vi128_t = __m128i;