On 05/22/13 06:27 AM, Gabriele Bulfon wrote:
Hi,
I'm converting a linux/bsd library with a function checking for cpu sse caps.
What is the correct way to do this on illumos?
getisax(2)
http://cgit.freedesktop.org/pixman/tree/pixman/pixman-x86.c#n45
http://docs.oracle.com/cd/E26502_01/html/E29032/getisax-2.html#scrolltoc
You may also find you need to provide a mapfile to tell the linker that even
though SSE instructions are used it's safe to allow the library to load on
machines without those instructions:
http://cgit.freedesktop.org/pixman/tree/pixman/solaris-hwcap.mapfile
--
-Alan Coopersmith- [email protected]
Oracle Solaris Engineering - http://blogs.oracle.com/alanc
-------------------------------------------
illumos-discuss
Archives: https://www.listbox.com/member/archive/182180/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182180/21175430-2e6923be
Modify Your Subscription:
https://www.listbox.com/member/?member_id=21175430&id_secret=21175430-6a77cda4
Powered by Listbox: http://www.listbox.com