aom: x86/synonyms.h: include emmintrin.h not immintrin.h

From 6f8189bb64bbba13c0c7dd69231a3f44b6ac581b Mon Sep 17 00:00:00 2001
From: James Zern <[EMAIL REDACTED]>
Date: Fri, 17 May 2024 19:30:16 -0700
Subject: [PATCH] x86/synonyms.h: include emmintrin.h not immintrin.h

The latter is meant for AVX(2); this file only uses SSE2 intrinsics.

+ fix includes in some consumers of this header that were relying on
  immintrin.h to provide <= AVX2 intrinsics

Change-Id: I784b89feb630a2bad1e727ec66ccc41526ebd357
---
 aom_dsp/x86/masked_sad_intrin_avx2.c | 2 +-
 aom_dsp/x86/synonyms.h               | 2 +-
 av1/encoder/x86/pickrst_sse4.c       | 2 +-
 av1/encoder/x86/rdopt_sse4.c         | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/aom_dsp/x86/masked_sad_intrin_avx2.c b/aom_dsp/x86/masked_sad_intrin_avx2.c
index 2c022555b5..f3751c7cb0 100644
--- a/aom_dsp/x86/masked_sad_intrin_avx2.c
+++ b/aom_dsp/x86/masked_sad_intrin_avx2.c
@@ -9,7 +9,7 @@
  * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
  */
 
-#include <tmmintrin.h>
+#include <immintrin.h>
 
 #include "config/aom_config.h"
 #include "config/aom_dsp_rtcd.h"
diff --git a/aom_dsp/x86/synonyms.h b/aom_dsp/x86/synonyms.h
index ab13446b8d..0914b98b79 100644
--- a/aom_dsp/x86/synonyms.h
+++ b/aom_dsp/x86/synonyms.h
@@ -12,7 +12,7 @@
 #ifndef AOM_AOM_DSP_X86_SYNONYMS_H_
 #define AOM_AOM_DSP_X86_SYNONYMS_H_
 
-#include <immintrin.h>
+#include <emmintrin.h>
 #include <string.h>
 
 #include "config/aom_config.h"
diff --git a/av1/encoder/x86/pickrst_sse4.c b/av1/encoder/x86/pickrst_sse4.c
index 3617d33fef..af6706228a 100644
--- a/av1/encoder/x86/pickrst_sse4.c
+++ b/av1/encoder/x86/pickrst_sse4.c
@@ -10,7 +10,7 @@
  */
 
 #include <assert.h>
-#include <emmintrin.h>
+#include <smmintrin.h>
 #include "aom_dsp/x86/mem_sse2.h"
 #include "aom_dsp/x86/synonyms.h"
 
diff --git a/av1/encoder/x86/rdopt_sse4.c b/av1/encoder/x86/rdopt_sse4.c
index 12ac146195..af61df102b 100644
--- a/av1/encoder/x86/rdopt_sse4.c
+++ b/av1/encoder/x86/rdopt_sse4.c
@@ -10,7 +10,7 @@
  */
 
 #include <assert.h>
-#include <emmintrin.h>
+#include <smmintrin.h>
 #include "aom_dsp/x86/synonyms.h"
 
 #include "config/av1_rtcd.h"