fixed to fix and some more
This commit is contained in:
@@ -4,8 +4,6 @@ import math
|
||||
|
||||
def generate_pi():
|
||||
print(f"#define COM_FIXED_PI (com_fixed_t){int(math.pi * (1 << 16))}\n")
|
||||
print(f"#define COM_FIXED_PI2 (com_fixed_t){int(math.pi*2 * (1 << 16))}\n")
|
||||
print(f"#define COM_FIXED_PIHALF (com_fixed_t){int(math.pi/2 * (1 << 16))}\n")
|
||||
|
||||
# Idea is to generate only one quadrant, as the values repeat later with different sign and order.
|
||||
def generate_sin_table(n_entries=128):
|
||||
|
||||
Reference in New Issue
Block a user