1
0

template.c: make use of FP_RETURN_TYPE

This commit is contained in:
Intel A80486DX2-66 2024-01-10 00:51:26 +03:00
parent 7934deac9e
commit 068849fe5b
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -196,7 +196,13 @@ main(void)
for (size_t w = 0; w < PRODUCT; w++) {
// 1. generate audio data
long double bytebeat_res = bytebeat((long double) w);
#if FP_RETURN_TYPE
long double bytebeat_res = floor(bytebeat((long double) floor(w)));
#elif IS_SIGNED
intmax_t bytebeat_res = (intmax_t) bytebeat(floor((long double) w));
#else
uintmax_t bytebeat_res = (uintmax_t) bytebeat(floor((long double) w));
#endif
// 2. if signed, then wrap up into unsigned
#if IS_SIGNED