1
0

C: precalculate PRODUCT in the Python script

This commit is contained in:
Intel A80486DX2-66 2024-04-14 11:47:51 +03:00
parent c9825b9122
commit c3a2de8333
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B
2 changed files with 2 additions and 1 deletions

View File

@ -211,6 +211,7 @@ if __name__ == "__main__":
"fp_return_type": args.floating_point, "fp_return_type": args.floating_point,
"channels": args.channels, "channels": args.channels,
"length": samples, "length": samples,
"wav_product": args.channels * samples,
"sequential_mode": args.mode == "sequential", "sequential_mode": args.mode == "sequential",
"block_size": args.block_size, "block_size": args.block_size,
"silent_mode": args.silent, "silent_mode": args.silent,

View File

@ -38,7 +38,7 @@ const char* ANSI_CLEAR = __ANSI_CLEAR_STRING;
# endif # endif
#endif #endif
#define PRODUCT (LENGTH * CHANNELS) #define PRODUCT `wav_product`
#define FREQUENCY_OF_STATUS_REPORTING 5000 #define FREQUENCY_OF_STATUS_REPORTING 5000
#define SEQUENTIAL_MODE `sequential_mode` #define SEQUENTIAL_MODE `sequential_mode`