File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ static int check_cpu_feature_support(std::string_view cpufeature)
1010    const  char  *disable_avx512 = std::getenv (" XSS_DISABLE_AVX512" 
1111
1212    if  ((cpufeature == " avx512_spr" 
13- #if  defined(__FLT16_MAX__) && !defined(__INTEL_LLVM_COMPILER)
13+ #if  defined(__FLT16_MAX__) && !defined(__INTEL_LLVM_COMPILER) \
14+         && __clang_major__ >= 18 
1415        return  __builtin_cpu_supports (" avx512f" 
1516                && __builtin_cpu_supports (" avx512fp16" 
1617                && __builtin_cpu_supports (" avx512vbmi2" 
Original file line number Diff line number Diff line change @@ -406,10 +406,10 @@ struct avx2_vector<uint64_t> {
406406};
407407
408408/* 
409-  * workaround on 64-bit macOS which defines  size_t as unsigned long and defines  
410-  * uint64_t as unsigned long long, both of which are 8 bytes 
409+  * workaround on 64-bit macOS and OpenBSD  which both define  size_t as unsigned 
410+  * long and define  uint64_t as unsigned long long, both of which are 8 bytes 
411411 */  
412- #if  defined(__APPLE__) && defined(__x86_64__)
412+ #if  ( defined(__APPLE__) || defined(__OpenBSD__) ) && defined(__x86_64__)
413413static_assert (sizeof (size_t ) == sizeof (uint64_t ),
414414              " Size of size_t and uint64_t are not the same" 
415415template  <>
Original file line number Diff line number Diff line change @@ -960,10 +960,10 @@ struct zmm_vector<uint64_t> {
960960};
961961
962962/* 
963-  * workaround on 64-bit macOS which defines  size_t as unsigned long and defines  
964-  * uint64_t as unsigned long long, both of which are 8 bytes 
963+  * workaround on 64-bit macOS and OpenBSD  which both define  size_t as unsigned 
964+  * long and define  uint64_t as unsigned long long, both of which are 8 bytes 
965965 */  
966- #if  defined(__APPLE__) && defined(__x86_64__)
966+ #if  ( defined(__APPLE__) || defined(__OpenBSD__) ) && defined(__x86_64__)
967967static_assert (sizeof (size_t ) == sizeof (uint64_t ),
968968              " Size of size_t and uint64_t are not the same" 
969969template  <>
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments