mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-27 20:20:40 +00:00
- fixed wrong gdtoa definitions for Apple ARM64
https://forum.zdoom.org/viewtopic.php?t=71303
This commit is contained in:
parent
26c5d5aa32
commit
b0fc0e648b
2 changed files with 4 additions and 20 deletions
|
@ -48,20 +48,15 @@ THIS SOFTWARE.
|
||||||
* compiling to deal with, which means we can't run the generation
|
* compiling to deal with, which means we can't run the generation
|
||||||
* program on the target.
|
* program on the target.
|
||||||
*/
|
*/
|
||||||
#if defined(__x86_64__)
|
#if defined(__x86_64__) || defined(__arm64__)
|
||||||
#define IEEE_8087
|
#define IEEE_8087
|
||||||
#define Arith_Kind_ASL 1
|
#define Arith_Kind_ASL 1
|
||||||
#define Long int
|
#define Long int
|
||||||
#define Intcast (int)(long)
|
#define Intcast (int)(long)
|
||||||
#define Double_Align
|
#define Double_Align
|
||||||
#define X64_bit_pointers
|
#define X64_bit_pointers
|
||||||
#elif defined(__i386__)
|
|
||||||
#define IEEE_8087
|
|
||||||
#define Arith_Kind_ASL 1
|
|
||||||
#else
|
#else
|
||||||
#define IEEE_MC68k
|
#error Unsupported architecture
|
||||||
#define Arith_Kind_ASL 2
|
|
||||||
#define Double_Align
|
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#include "arith.h"
|
#include "arith.h"
|
||||||
|
|
|
@ -202,7 +202,7 @@ THIS SOFTWARE.
|
||||||
* all ia32 compilers had phased out extended precision.
|
* all ia32 compilers had phased out extended precision.
|
||||||
*/
|
*/
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
#if defined(__x86_64__) || defined(__i386__)
|
#if defined(__x86_64__) || defined(__arm64__)
|
||||||
#define f_QNAN 0xffc00000
|
#define f_QNAN 0xffc00000
|
||||||
#define d_QNAN0 0x0
|
#define d_QNAN0 0x0
|
||||||
#define d_QNAN1 0xfff80000
|
#define d_QNAN1 0xfff80000
|
||||||
|
@ -216,18 +216,7 @@ THIS SOFTWARE.
|
||||||
#define ldus_QNAN3 0xc000
|
#define ldus_QNAN3 0xc000
|
||||||
#define ldus_QNAN4 0xffff
|
#define ldus_QNAN4 0xffff
|
||||||
#else
|
#else
|
||||||
#define f_QNAN 0xffc00000
|
#error Unsupported architecture
|
||||||
#define d_QNAN0 0xfff80000
|
|
||||||
#define d_QNAN1 0x0
|
|
||||||
#define ld_QNAN0 0xfff80000
|
|
||||||
#define ld_QNAN1 0x0
|
|
||||||
#define ld_QNAN2 0x0
|
|
||||||
#define ld_QNAN3 0x0
|
|
||||||
#define ldus_QNAN0 0xfff8
|
|
||||||
#define ldus_QNAN1 0x0
|
|
||||||
#define ldus_QNAN2 0x0
|
|
||||||
#define ldus_QNAN3 0x0
|
|
||||||
#define ldus_QNAN4 0x0
|
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#include "gd_qnan.h"
|
#include "gd_qnan.h"
|
||||||
|
|
Loading…
Reference in a new issue