Skip to content

Commit a8f94fe

Browse files
committed
Fix cast for clang
1 parent 637e5ed commit a8f94fe

File tree

1 file changed

+3
-3
lines changed
  • libs/simdvec/native/src/vec/c/amd64

1 file changed

+3
-3
lines changed

libs/simdvec/native/src/vec/c/amd64/vec.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ static inline int64_t xgetbv(int ctr) {
5252
// use inline assembly, Gnu/AT&T syntax
5353
uint32_t a, d;
5454
__asm("xgetbv" : "=a"(a),"=d"(d) : "c"(ctr) : );
55-
return a | (uint64_t(d) << 32);
55+
return a | (((uint64_t) d) << 32);
5656

57-
#elif (defined (_MSC_FULL_VER) && _MSC_FULL_VER >= 160040000) || (defined (__INTEL_COMPILER) && __INTEL_COMPILER >= 1200) // Microsoft or Intel compiler supporting _xgetbv intrinsic
58-
// intrinsic function for XGETBV
57+
#elif (defined (_MSC_FULL_VER) && _MSC_FULL_VER >= 160040000) || (defined (__INTEL_COMPILER) && __INTEL_COMPILER >= 1200)
58+
// Microsoft or Intel compiler supporting _xgetbv intrinsic
5959
return _xgetbv(ctr);
6060

6161
#else

0 commit comments

Comments
 (0)