Skip to content

Commit 421af16

Browse files
committed
Add MSVC preproc ISA detection
1 parent 3e096ba commit 421af16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/astcenc_mathlib.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: Apache-2.0
22
// ----------------------------------------------------------------------------
3-
// Copyright 2011-2024 Arm Limited
3+
// Copyright 2011-2025 Arm Limited
44
//
55
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
66
// use this file except in compliance with the License. You may obtain a copy
@@ -48,7 +48,7 @@
4848
#define ASTCENC_SSE 42
4949
#elif defined(__SSE4_1__)
5050
#define ASTCENC_SSE 41
51-
#elif defined(__SSE2__)
51+
#elif defined(__SSE2__) || (defined(_M_AMD64) && !defined(_M_ARM64EC))
5252
#define ASTCENC_SSE 20
5353
#else
5454
#define ASTCENC_SSE 0
@@ -68,7 +68,7 @@
6868
#endif
6969

7070
#ifndef ASTCENC_NEON
71-
#if defined(__aarch64__)
71+
#if defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC)
7272
#define ASTCENC_NEON 1
7373
#else
7474
#define ASTCENC_NEON 0

0 commit comments

Comments
 (0)