Skip to content

Instantly share code, notes, and snippets.

View perrutquist's full-sized avatar

Per Rutquist perrutquist

View GitHub Profile
# 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.
"""