Skip to content

Instantly share code, notes, and snippets.

Avatar

Per Rutquist perrutquist

View GitHub Profile
View masked_avx_example.jl
# A small example of how to write Julia code that results in masked AVX instructions
"""
unsafe_max4(C, A, B)
Compute the element-wise maximum of the 4 first elements of vectors `A` and `B`,
and store the result C.
If any of the vectors is too small, the program might crash, or worse.
"""
You can’t perform that action at this time.