<div dir="ltr"><span style="font-size:12.8px">Hi,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am encountering a build issue in pixman when compiling with with clang.</div><div style="font-size:12.8px"><br><div>pixman-mmx.c:100:20: error: constraint 'K' expects an integer constant expression</div><div>        : "y" (__A), "K" (__N)</div><div><br></div><div>The error happens because __N is a function parameter and clang does not</div><div>process it as an integer literal by design. Note that even gcc cannot handle it in -O0 mode.</div><div><br></div><div>This can be fixed  by forcing the macro version of the function which exposes __N value</div><div>as an integer literal. I am making it #if 0 but it might be worthwhile to delete the function declaration since there is no much to lose here given all the function does is  inline asm.</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>diff -Nuar old/pixman/pixman-mmx.c new/pixman/pixman-mmx.c</div><div>--- old/pixman/pixman-mmx.c</div><div>+++ new/pixman/pixman-mmx.c</div><div>@@ -89,7 +89,7 @@</div><div>     return __A;</div><div> }</div><div> </div><div>-#  ifdef __OPTIMIZE__</div><div>+#  if 0</div><div> extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))</div><div> _mm_shuffle_pi16 (__m64 __A, int8_t const __N)</div><div> {</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px">Manoj</div></div>