From 67a30021b3d0c631c1c33e3b8d58d4a9895802dd Mon Sep 17 00:00:00 2001 From: Derek Hensley Date: Tue, 21 May 2024 18:15:12 -0700 Subject: [PATCH] M_PI for cosf and sinf files --- src/libultra/gu/cosf.c | 2 +- src/libultra/gu/sinf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libultra/gu/cosf.c b/src/libultra/gu/cosf.c index c911b55cb6..588a46a2cd 100644 --- a/src/libultra/gu/cosf.c +++ b/src/libultra/gu/cosf.c @@ -14,7 +14,7 @@ static const du P[] = { { 0.000002605780637968037 }, }; -static const du rpi = { 1 / 3.14159265358979323846 }; // 1/F_PI, "reciprocal of pi" +static const du rpi = { 1 / 3.14159265358979323846 }; // 1/M_PI, "reciprocal of pi" // pihi + pilo is the closest double to pi, this representation allows more precise calculations since pi itself is not // an exact float diff --git a/src/libultra/gu/sinf.c b/src/libultra/gu/sinf.c index 454a648caf..d3dfcc4524 100644 --- a/src/libultra/gu/sinf.c +++ b/src/libultra/gu/sinf.c @@ -14,7 +14,7 @@ static const du P[] = { { 0.000002605780637968037 }, }; -static const du rpi = { 1 / 3.14159265358979323846 }; // 1/F_PI, "reciprocal of pi" +static const du rpi = { 1 / 3.14159265358979323846 }; // 1/M_PI, "reciprocal of pi" // pihi + pilo is the closest double to pi, this representation allows more precise calculations since pi itself is not // an exact float