template.c: make use of FP_RETURN_TYPE
This commit is contained in:
parent
7934deac9e
commit
068849fe5b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user