mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 18:07:31 +09:00
Fix aom compile errors with VS2015
Import BUG=aomedia:900
This commit is contained in:
parent
49bf3b1211
commit
b9b9d8e4a1
7 changed files with 51 additions and 29 deletions
20
third_party/aom/aom_ports/msvc.h
vendored
20
third_party/aom/aom_ports/msvc.h
vendored
|
|
@ -43,5 +43,25 @@ static INLINE long lroundf(float x) {
|
|||
}
|
||||
#endif // _MSC_VER < 1800
|
||||
|
||||
#if HAVE_AVX
|
||||
#include <immintrin.h>
|
||||
// Note:
|
||||
// _mm256_insert_epi16 intrinsics is available from vs2017.
|
||||
// We define this macro for vs2015 and earlier. The
|
||||
// intrinsics used here are in vs2015 document:
|
||||
// https://msdn.microsoft.com/en-us/library/hh977022.aspx
|
||||
// Input parameters:
|
||||
// a: __m256i,
|
||||
// d: int16_t,
|
||||
// indx: imm8 (0 - 15)
|
||||
#if _MSC_VER <= 1900
|
||||
#define _mm256_insert_epi16(a, d, indx) \
|
||||
_mm256_insertf128_si256( \
|
||||
a, \
|
||||
_mm_insert_epi16(_mm256_extractf128_si256(a, indx >> 3), d, indx % 8), \
|
||||
indx >> 3)
|
||||
#endif // _MSC_VER <= 1900
|
||||
#endif // HAVE_AVX
|
||||
|
||||
#endif // _MSC_VER
|
||||
#endif // AOM_PORTS_MSVC_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue