diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-09 21:17:12 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-09 21:17:12 +0100 |
| commit | b5cd18739a64c8d923a55b61c89ae3900faafd84 (patch) | |
| tree | d192f7b25257ae9a8a4760c68f5314dcbc0d9b91 /lib/libm/projf.c | |
| parent | 119aed5bc787ccbf23d2f151759ec1f3a80977e1 (diff) | |
Fix include paths and formatting inconsistencies
Diffstat (limited to 'lib/libm/projf.c')
| -rw-r--r-- | lib/libm/projf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libm/projf.c b/lib/libm/projf.c index 4efd9605..a0bcf369 100644 --- a/lib/libm/projf.c +++ b/lib/libm/projf.c @@ -3,9 +3,11 @@ float complex cprojf(float complex z) { float_complex w = { .z = z }; + if (isinf(crealf(z)) || isinf(cimagf(z))) { REAL_PART(w) = INFINITY; IMAG_PART(w) = copysignf(0.0, cimagf(z)); } - return (w.z); + + return w.z; } |
