Skip to content

Commit

Permalink
Fix PPC BE check.
Browse files Browse the repository at this point in the history
This was my fault, got wiped by GitHub when cleaning up the previous patch.
  • Loading branch information
flibitijibibo authored Nov 9, 2024
1 parent 7e569cc commit e648211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojoshader_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ typedef uint64_t uint64;

// Byteswap magic...

#if ((defined __GNUC__) && ((defined __POWERPC__) || defined __powerpc__))
#if (defined(__GNUC__) && MOJOSHADER_BIG_ENDIAN && (defined(__POWERPC__) || defined(__powerpc__)))
static inline uint32 SWAP32(uint32 x)
{
__asm__ __volatile__("lwbrx %0,0,%1" : "=r" (x) : "r" (&x));
Expand Down

0 comments on commit e648211

Please sign in to comment.