diff --git a/cpp-ch/local-engine/Functions/SparkFunctionFloor.h b/cpp-ch/local-engine/Functions/SparkFunctionFloor.h index 4a3f99a9a356..4f655c615b9f 100644 --- a/cpp-ch/local-engine/Functions/SparkFunctionFloor.h +++ b/cpp-ch/local-engine/Functions/SparkFunctionFloor.h @@ -168,18 +168,23 @@ struct SparkFloatFloorImpl memcpy(p_out, &tmp_dst, tail_size_bytes); } +#if USE_MULTITARGET_CODE if (isArchSupported(TargetArch::AVX2)) { if constexpr (std::is_same_v) + { TargetSpecific::AVX2::checkFloat32AndSetNullables(out.data(), null_map.data(), out.size()); + return; + } else if constexpr (std::is_same_v) + { TargetSpecific::AVX2::checkFloat64AndSetNullables(out.data(), null_map.data(), out.size()); + return; + } } - else - { - for (size_t i = 0; i < out.size(); ++i) - checkAndSetNullable(out[i], null_map[i]); - } +#endif + for (size_t i = 0; i < out.size(); ++i) + checkAndSetNullable(out[i], null_map[i]); } };