define fixed point arithmetic constants

This commit is contained in:
EDiasAlberto
2024-10-15 14:57:37 +01:00
parent 0a9cf6f242
commit 1042295e5f
5 changed files with 144 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#ifndef FIXED_POINT_H
#define FIXED_POINT_H
/* Fixed Point Arithmetic bit count constants */
#define NUM_INT_BITS 11
#define NUM_FRAC_BITS 20
#define CONVERSION_CONST 1048576 /* f = 2^q, (2^20) */
#endif //FIXED_POINT_H