19 #ifndef SDRBASE_UTIL_FIXEDTRAITS_H_ 20 #define SDRBASE_UTIL_FIXEDTRAITS_H_ 26 template<u
int32_t IntBits>
34 static const uint32_t fixed_resolution_shift = 28;
35 static const int64_t fixed_resolution = 1LL << fixed_resolution_shift;
36 static const int32_t max_power = 63 - fixed_resolution_shift;
37 static const int64_t internal_pi = 0x3243f6a8;
38 static const int64_t internal_two_pi = 0x6487ed51;
39 static const int64_t internal_half_pi = 0x1921fb54;
40 static const int64_t internal_quarter_pi = 0xc90fdaa;
41 static const int64_t log_two_power_n_reversed[35];
42 static const int64_t log_one_plus_two_power_minus_n[28];
43 static const int64_t log_one_over_one_minus_two_power_minus_n[28];
50 static const uint32_t fixed_resolution_shift = 16;
51 static const int64_t fixed_resolution = 1LL << fixed_resolution_shift;
52 static const int32_t max_power = 63 - fixed_resolution_shift;
53 static const int64_t internal_pi = 205887;
54 static const int64_t internal_two_pi = 411775;
55 static const int64_t internal_half_pi = 102944;
56 static const int64_t internal_quarter_pi = 51472;
57 static const int64_t log_two_power_n_reversed[47];
58 static const int64_t log_one_plus_two_power_minus_n[16];
59 static const int64_t log_one_over_one_minus_two_power_minus_n[16];
66 static const uint32_t fixed_resolution_shift = 23;
67 static const int64_t fixed_resolution = 1LL << fixed_resolution_shift;
68 static const int32_t max_power = 63 - fixed_resolution_shift;
69 static const int64_t internal_pi = 26353589;
70 static const int64_t internal_two_pi = 52707179;
71 static const int64_t internal_half_pi = 13176795;
72 static const int64_t internal_quarter_pi = 6588397;
73 static const int64_t log_two_power_n_reversed[40];
74 static const int64_t log_one_plus_two_power_minus_n[23];
75 static const int64_t log_one_over_one_minus_two_power_minus_n[23];
82 static const uint32_t fixed_resolution_shift = 24;
83 static const int64_t fixed_resolution = 1LL << fixed_resolution_shift;
84 static const int32_t max_power = 63 - fixed_resolution_shift;
85 static const int64_t internal_pi = 52707179;
86 static const int64_t internal_two_pi = 105414357;
87 static const int64_t internal_half_pi = 26353589;
88 static const int64_t internal_quarter_pi = 13176795;
89 static const int64_t log_two_power_n_reversed[39];
90 static const int64_t log_one_plus_two_power_minus_n[24];
91 static const int64_t log_one_over_one_minus_two_power_minus_n[24];