mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-03-13 22:42:07 +00:00
- fix SSE intrinsics being used on arm
This commit is contained in:
parent
bdb9275f8c
commit
af5355c69d
2 changed files with 7 additions and 3 deletions
|
@ -58,7 +58,7 @@ void ScreenTriangle::SetupNormal(const TriDrawTriangleArgs *args, WorkerThreadDa
|
|||
TriPartialBlock * RESTRICT partial = thread->PartialBlocks;
|
||||
|
||||
// 28.4 fixed-point coordinates
|
||||
#if NO_SSE
|
||||
#ifdef NO_SSE
|
||||
const int Y1 = (int)round(16.0f * v1.y);
|
||||
const int Y2 = (int)round(16.0f * v2.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 mask1 = 0;
|
||||
|
||||
#if NO_SSE
|
||||
#ifdef NO_SSE
|
||||
for (int iy = 0; iy < 4; iy++)
|
||||
{
|
||||
int CX1 = CY1;
|
||||
|
@ -399,7 +399,7 @@ void ScreenTriangle::SetupSubsector(const TriDrawTriangleArgs *args, WorkerThrea
|
|||
TriPartialBlock * RESTRICT partial = thread->PartialBlocks;
|
||||
|
||||
// 28.4 fixed-point coordinates
|
||||
#if NO_SSE
|
||||
#ifdef NO_SSE
|
||||
const int Y1 = (int)round(16.0f * v1.y);
|
||||
const int Y2 = (int)round(16.0f * v2.y);
|
||||
const int Y3 = (int)round(16.0f * v3.y);
|
||||
|
|
|
@ -25,6 +25,10 @@
|
|||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
#if defined(__arm__) && !defined(NO_SSE)
|
||||
#define NO_SSE
|
||||
#endif
|
||||
|
||||
class FString;
|
||||
|
||||
struct TriFullSpan
|
||||
|
|
Loading…
Reference in a new issue