Skip to content
Snippets Groups Projects
Commit 5de29aee authored by Brian Paul's avatar Brian Paul
Browse files

util: try to use SSE instructions with MSVC and 32-bit gcc


The lrint() and lrintf() functions are pretty slow and make some
texture transfers very inefficient.  This patch makes a better effort
at using those intrisics for 32-bit gcc and MSVC.

Note, this patch doesn't address the use of SSE4.1 with MSVC.

v2: get rid of the ROUND_WITH_SSE symbol, per Matt.

Reviewed-by: default avatarJosé Fonseca <jfonseca@vmware.com>
Reviewed-by: default avatarMatt Turner <mattst88@gmail.com>
parent 18e6e079
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