This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. | |
""" |