fix unnamed union in math.c until supported by compiler

This commit is contained in:
drmortalwombat 2023-12-17 22:47:14 +01:00
parent 04518e4ff3
commit 5055635d3d

View File

@ -125,7 +125,7 @@ float exp(float f)
int fi = (int)ff; int fi = (int)ff;
union { union xx {
float f; float f;
int i[2]; int i[2];
} x; } x;
@ -155,7 +155,7 @@ float log(float f)
if (f == 0.0) if (f == 0.0)
return 1.0; return 1.0;
union { union xx {
float f; float f;
int i[2]; int i[2];
} x; } x;
@ -193,7 +193,7 @@ float sqrt(float f)
{ {
if (f >= 0) if (f >= 0)
{ {
union { union xx {
float f; float f;
int i[2]; int i[2];
} x; } x;
@ -216,7 +216,7 @@ float sqrt(float f)
bool isinf(float f) bool isinf(float f)
{ {
union { union xx {
float f; float f;
unsigned i[2]; unsigned i[2];
} x; } x;
@ -228,7 +228,7 @@ bool isinf(float f)
bool isfinite(float f) bool isfinite(float f)
{ {
union { union xx {
float f; float f;
unsigned i[2]; unsigned i[2];
} x; } x;