Skip to content
Snippets Groups Projects
Commit d24b415f authored by Andrea Canciani's avatar Andrea Canciani Committed by Matt Turner
Browse files

mmx: Improve detection of support for "K" constraint


Older versions of clang emitted an error on the "K" constraint, but at
least since version 3.7 it is supported. Just like gcc, this
constraint is only allowed for constants, but apparently clang
requires them to be known before inlining.

Using the macro definition _mm_shuffle_pi16(A, N) ensures that the "K"
constraint is always applied to a literal constant, independently from
the compiler optimizations and allows building pixman-mmx on modern
clang.

Reviewed-by: default avatarMatt Turner <mattst88@gmail.com>
Signed-off-by: default avatarAndrea Canciani <ranma42@gmail.com>
parent 312e3815
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment