mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Disable incompatible optimizations for 32-bit version
This commit is contained in:
parent
ea77560d01
commit
d71f1b5bd0
|
@ -27,7 +27,7 @@
|
|||
#include "intra-avx2.h"
|
||||
#include "strategyselector.h"
|
||||
|
||||
#if COMPILE_INTEL_AVX2
|
||||
#if COMPILE_INTEL_AVX2 && defined X86_64
|
||||
#include <immintrin.h>
|
||||
#include "strategies/strategies-common.h"
|
||||
|
||||
|
@ -464,15 +464,15 @@ static void kvz_angular_pred_avx2(
|
|||
}
|
||||
}
|
||||
|
||||
#endif //COMPILE_INTEL_AVX2
|
||||
#endif //COMPILE_INTEL_AVX2 && defined X86_64
|
||||
|
||||
int kvz_strategy_register_intra_avx2(void* opaque, uint8_t bitdepth)
|
||||
{
|
||||
bool success = true;
|
||||
#if COMPILE_INTEL_AVX2
|
||||
#if COMPILE_INTEL_AVX2 && defined X86_64
|
||||
if (bitdepth == 8) {
|
||||
success &= kvz_strategyselector_register(opaque, "angular_pred", "avx2", 40, &kvz_angular_pred_avx2);
|
||||
}
|
||||
#endif //COMPILE_INTEL_AVX2
|
||||
#endif //COMPILE_INTEL_AVX2 && defined X86_64
|
||||
return success;
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
#include "transform.h"
|
||||
#include "rdo.h"
|
||||
|
||||
#if COMPILE_INTEL_AVX2
|
||||
#if COMPILE_INTEL_AVX2 && defined X86_64
|
||||
#include <immintrin.h>
|
||||
#include <smmintrin.h>
|
||||
|
||||
|
@ -471,20 +471,20 @@ void kvz_dequant_avx2(const encoder_state_t * const state, coeff_t *q_coef, coef
|
|||
}
|
||||
}
|
||||
|
||||
#endif //COMPILE_INTEL_AVX2
|
||||
#endif //COMPILE_INTEL_AVX2 && defined X86_64
|
||||
|
||||
|
||||
int kvz_strategy_register_quant_avx2(void* opaque, uint8_t bitdepth)
|
||||
{
|
||||
bool success = true;
|
||||
|
||||
#if COMPILE_INTEL_AVX2
|
||||
#if COMPILE_INTEL_AVX2 && defined X86_64
|
||||
success &= kvz_strategyselector_register(opaque, "quant", "avx2", 40, &kvz_quant_avx2);
|
||||
if (bitdepth == 8) {
|
||||
success &= kvz_strategyselector_register(opaque, "quantize_residual", "avx2", 40, &kvz_quantize_residual_avx2);
|
||||
success &= kvz_strategyselector_register(opaque, "dequant", "avx2", 40, &kvz_dequant_avx2);
|
||||
}
|
||||
#endif //COMPILE_INTEL_AVX2
|
||||
#endif //COMPILE_INTEL_AVX2 && defined X86_64
|
||||
|
||||
return success;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue