- fix SSE intrinsics being used on arm

This commit is contained in:
Magnus Norddahl 2017-03-25 06:14:19 +01:00
parent bdb9275f8c
commit af5355c69d
2 changed files with 7 additions and 3 deletions

View file

@ -58,7 +58,7 @@ void ScreenTriangle::SetupNormal(const TriDrawTriangleArgs *args, WorkerThreadDa
TriPartialBlock * RESTRICT partial = thread->PartialBlocks; TriPartialBlock * RESTRICT partial = thread->PartialBlocks;
// 28.4 fixed-point coordinates // 28.4 fixed-point coordinates
#if NO_SSE #ifdef NO_SSE
const int Y1 = (int)round(16.0f * v1.y); const int Y1 = (int)round(16.0f * v1.y);
const int Y2 = (int)round(16.0f * v2.y); const int Y2 = (int)round(16.0f * v2.y);
const int Y3 = (int)round(16.0f * v3.y); const int Y3 = (int)round(16.0f * v3.y);
@ -227,7 +227,7 @@ void ScreenTriangle::SetupNormal(const TriDrawTriangleArgs *args, WorkerThreadDa
uint32_t mask0 = 0; uint32_t mask0 = 0;
uint32_t mask1 = 0; uint32_t mask1 = 0;
#if NO_SSE #ifdef NO_SSE
for (int iy = 0; iy < 4; iy++) for (int iy = 0; iy < 4; iy++)
{ {
int CX1 = CY1; int CX1 = CY1;
@ -399,7 +399,7 @@ void ScreenTriangle::SetupSubsector(const TriDrawTriangleArgs *args, WorkerThrea
TriPartialBlock * RESTRICT partial = thread->PartialBlocks; TriPartialBlock * RESTRICT partial = thread->PartialBlocks;
// 28.4 fixed-point coordinates // 28.4 fixed-point coordinates
#if NO_SSE #ifdef NO_SSE
const int Y1 = (int)round(16.0f * v1.y); const int Y1 = (int)round(16.0f * v1.y);
const int Y2 = (int)round(16.0f * v2.y); const int Y2 = (int)round(16.0f * v2.y);
const int Y3 = (int)round(16.0f * v3.y); const int Y3 = (int)round(16.0f * v3.y);

View file

@ -25,6 +25,10 @@
#include <cstdint> #include <cstdint>
#include <vector> #include <vector>
#if defined(__arm__) && !defined(NO_SSE)
#define NO_SSE
#endif
class FString; class FString;
struct TriFullSpan struct TriFullSpan