### Godot version

master (commit 360b61084a4a5bc0f9577212a3079430601b3408 (HEAD -> master, origin/master, origin/HEAD))

### System information

Windows 11

### Issue description

Seems that this commit (https://github.com/godotengine/godot/commit/696346f4cc63b9395cc156da0e8d8fb65260c055) breaks building on windows.

```

=====
In file included from C:/Users/kuhnc/scoop/apps/mingw/current/lib/gcc/x86_64-w64-mingw32/12.2.0/include/immintrin.h:37,
                 from thirdparty\astcenc\astcenc_mathlib.h:85,
                 from thirdparty\astcenc\astcenc_internal.h:34,
                 from thirdparty\astcenc\astcenc_decompress_symbolic.cpp:22:
C:/Users/kuhnc/scoop/apps/mingw/current/lib/gcc/x86_64-w64-mingw32/12.2.0/include/tmmintrin.h: In function 'vint4 vtable_8bt_32bi(vint4, vint4, vint4)':
C:/Users/kuhnc/scoop/apps/mingw/current/lib/gcc/x86_64-w64-mingw32/12.2.0/include/tmmintrin.h:136:1: error: inlining failed in call to 'always_inline' '__m128i _mm_shuffle_epi8(__m128i, __m128i)': target specific option mismatch
  136 | _mm_shuffle_epi8 (__m128i __X, __m128i __Y)
      | ^~~~~~~~~~~~~~~~
In file included from thirdparty\astcenc\astcenc_vecmathlib.h:96,
                 from thirdparty\astcenc\astcenc_mathlib.h:433:
thirdparty\astcenc\astcenc_vecmathlib_sse_4.h:1112:43: note: called from here
 1112 |         __m128i result2 = _mm_shuffle_epi8(t1.m, idxx);
      |                           ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
C:/Users/kuhnc/scoop/apps/mingw/current/lib/gcc/x86_64-w64-mingw32/12.2.0/include/tmmintrin.h:136:1: error: inlining failed in call to 'always_inline' '__m128i _mm_shuffle_epi8(__m128i, __m128i)': target specific option mismatch
  136 | _mm_shuffle_epi8 (__m128i __X, __m128i __Y)
      | ^~~~~~~~~~~~~~~~
thirdparty\astcenc\astcenc_vecmathlib_sse_4.h:1109:42: note: called from here
 1109 |         __m128i result = _mm_shuffle_epi8(t0.m, idxx);
      |                          ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
C:/Users/kuhnc/scoop/apps/mingw/current/lib/gcc/x86_64-w64-mingw32/12.2.0/include/tmmintrin.h:136:1: error: inlining failed in call to 'always_inline' '__m128i _mm_shuffle_epi8(__m128i, __m128i)': target specific option mismatch
  136 | _mm_shuffle_epi8 (__m128i __X, __m128i __Y)
      | ^~~~~~~~~~~~~~~~
thirdparty\astcenc\astcenc_vecmathlib_sse_4.h:1109:42: note: called from here
 1109 |         __m128i result = _mm_shuffle_epi8(t0.m, idxx);
      |                          ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
C:/Users/kuhnc/scoop/apps/mingw/current/lib/gcc/x86_64-w64-mingw32/12.2.0/include/tmmintrin.h:136:1: error: inlining failed in call to 'always_inline' '__m128i _mm_shuffle_epi8(__m128i, __m128i)': target specific option mismatch
  136 | _mm_shuffle_epi8 (__m128i __X, __m128i __Y)
      | ^~~~~~~~~~~~~~~~
thirdparty\astcenc\astcenc_vecmathlib_sse_4.h:1112:43: note: called from here
 1112 |         __m128i result2 = _mm_shuffle_epi8(t1.m, idxx);
      |                           ~~~~~~~~~~~~~~~~^~~~~~~~~~~~

=====
=====
In file included from C:/Users/kuhnc/scoop/apps/mingw/current/lib/gcc/x86_64-w64-mingw32/12.2.0/include/immintrin.h:37,
                 from thirdparty\astcenc\astcenc_mathlib.h:85,
                 from thirdparty\astcenc\astcenc_internal.h:34,
                 from thirdparty\astcenc\astcenc_ideal_endpoints_and_weights.cpp:26:
C:/Users/kuhnc/scoop/apps/mingw/current/lib/gcc/x86_64-w64-mingw32/12.2.0/include/tmmintrin.h: In function 'vint4 vtable_8bt_32bi(vint4, vint4)':
C:/Users/kuhnc/scoop/apps/mingw/current/lib/gcc/x86_64-w64-mingw32/12.2.0/include/tmmintrin.h:136:1: error: inlining failed in call to 'always_inline' '__m128i _mm_shuffle_epi8(__m128i, __m128i)': target specific option mismatch
  136 | _mm_shuffle_epi8 (__m128i __X, __m128i __Y)
      | ^~~~~~~~~~~~~~~~
In file included from thirdparty\astcenc\astcenc_vecmathlib.h:96,
                 from thirdparty\astcenc\astcenc_mathlib.h:433:
thirdparty\astcenc\astcenc_vecmathlib_sse_4.h:1087:42: note: called from here
 1087 |         __m128i result = _mm_shuffle_epi8(t0.m, idxx);
      |                          ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
C:/Users/kuhnc/scoop/apps/mingw/current/lib/gcc/x86_64-w64-mingw32/12.2.0/include/tmmintrin.h:136:1: error: inlining failed in call to 'always_inline' '__m128i _mm_shuffle_epi8(__m128i, __m128i)': target specific option mismatch
  136 | _mm_shuffle_epi8 (__m128i __X, __m128i __Y)
      | ^~~~~~~~~~~~~~~~
thirdparty\astcenc\astcenc_vecmathlib_sse_4.h:1087:42: note: called from here
 1087 |         __m128i result = _mm_shuffle_epi8(t0.m, idxx);
      |                          ~~~~~~~~~~~~~~~~^~~~~~~~~~~~
```

### Steps to reproduce

* Pull master
* Compile
* Receive error



### Minimal reproduction project

n/a
{
	return max(max(p, q), max(r, s));
}
/**
 * @brief Clamp a value value between @c mn and @c mx.
 *
 * For floats, NaNs are turned into @c mn.
 *
 * @param v      The value to clamp.
 * @param mn     The min value (inclusive).
 * @param mx     The max value (inclusive).
 *
 * @return The clamped value.
 */
template<typename T>
inline T clamp(T v, T mn, T mx)