Created attachment 24352 [details] [review]
Patch to enable pixman's MMX intrsincs with sunpro.
When compiling pixman with the sunpro compiler, a lot of definitions fail and conversion functions are unimplemented. It seems to be for everything except gcc and MSC (ICC, Watcom, XLC, ...), so a more generic fix is required IMHO.
I further strongly recommend to use ANSI C99 data types where possible (uint64_t instead of unsigned long long).
Further: only gcc supports -mmmx and -msse2 etc. - so trying those arguments during configuration phase and without linking and accept them will result in later compile errors. x86_64/amd64 architectures shall enable those instruction sets per default.
I've been working on this too - see:
Patch pushed to git master now: