Q:
I would like to know if it is possible/safe to use SSE instructions with QNX. I.e., does the kernel correctly save/restore SSE registers/state during context switches?
A:
Yes, it saves/restores the context.
Q:
And is there any API or structures/constants to check availability/level of SSE rather than examining processor features directly via inline assembler?
A:Check the CPU flags of in the SYSPAGE_ENTRY(cpuinfo)->flags for :
X86_CPU_MMX, X86_CPU_SIMD, X86_CPU_SSE2 . SSE3 is not enumerated and will required inline assembly to probe.
NOTE:
This entry has been validated against the SDP version listed above. Use
caution when considering this advice for any other SDP version. For
supported releases, please reach out toQNX Technical Support if you have any questions/concerns.
Please contact us with your questions or concerns.
BlackBerry uses cookies to help make our website better. Some of the cookies are necessary for the proper functioning of the website while others, non-essential cookies, are used to better understand how you interact with our website and to make it better.