Skip to content

Commit

Permalink
AVX512 extra fixes for non-GCC compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Mar 23, 2019
1 parent 0cb91fc commit c4ac93d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions laser/simd_extras.nim
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import simd
# ############################################################

when defined(i386) or defined(amd64):
func laser_mm512_cmpgt_epi32*(a, b: m512i): m512i {.inline.} =
template laser_mm512_cmpgt_epi32*(a, b: m512i): m512i =
## Compare a greater than b
mm512_movm_epi32(mm512_cmpgt_epi32_mask(a, b))

func laser_mm512_movemask_epi8*(a: m512i): uint64 {.inline.} =
a.mm512_movepi8_mask.cvtmask64_u64
template laser_mm512_movemask_epi8*(a: m512i): uint64 =
uint64 a.mm512_movepi8_mask # .cvtmask64_u64 -- cvtmask is not implemented in LLVM and automatically generated

0 comments on commit c4ac93d

Please sign in to comment.