Searched refs:FRAC_ONE (Results 1 – 7 of 7) sorted by relevance
47 #define FRAC_ONE (1 << FRAC_BITS) macro79 a = a & (FRAC_ONE - 1); /* modulo 2 * pi */ in int_cos()80 if (a >= (FRAC_ONE / 2)) in int_cos()81 a = FRAC_ONE - a; in int_cos()83 if (a > (FRAC_ONE / 4)) { in int_cos()85 a = (FRAC_ONE / 2) - a; in int_cos()189 a += (1000 * FRAC_ONE) / sample_rate; in main()199 a += (f * FRAC_ONE) / sample_rate; in main()227 taba[j] += (f * FRAC_ONE) / sample_rate; in main()236 amp = ((FRAC_ONE + int_cos(ampa)) * 5000) >> FRAC_BITS; in main()[all …]
50 #define FRAC_ONE (1 << FRAC_BITS) macro56 a = a & (FRAC_ONE - 1); in int_cos()57 if (a >= (FRAC_ONE / 2)) in int_cos()58 a = FRAC_ONE - a; in int_cos()60 if (a > (FRAC_ONE / 4)) { in int_cos()62 a = (FRAC_ONE / 2) - a; in int_cos()64 v = FRAC_ONE - ((a * a) >> 4); in int_cos()99 dx = int_cos(num * FRAC_ONE / 50) * 35; in gen_image()100 dy = int_cos(num * FRAC_ONE / 50 + FRAC_ONE / 10) * 30; in gen_image()
58 #define FRAC_ONE (1 << FRAC_BITS) macro60 #define FIX(a) ((int)((a) * FRAC_ONE))
30 #define FIXR_OLD(a) ((int)((a) * FRAC_ONE + 0.5))31 #define FIXR(a) ((int)((a) * FRAC_ONE + 0.5))
30 #define FIXR_OLD(a) ((int)((a) * FRAC_ONE + 0.5))
71 # define FIXR(a) ((int)((a) * FRAC_ONE + 0.5))
246 norm = ((INT64_C(1) << n) * FRAC_ONE) / ((1 << n) - 1); in decode_init_static()