Lines Matching refs:N
17 const unsigned N = sizeof(fixuint_t) * CHAR_BIT;
19 unsigned sr = (d ? clz(d) : N) - (n ? clz(n) : N);
20 // 0 <= sr <= N - 1 or sr is very large.
21 if (sr > N - 1) // n < d
23 if (sr == N - 1) // d == 1
26 // 1 <= sr <= N - 1. Shifts do not trigger UB.
28 n <<= N - sr;
31 r = (r << 1) | (n >> (N - 1));
36 const fixint_t s = (fixint_t)(d - r - 1) >> (N - 1);
46 const unsigned N = sizeof(fixuint_t) * CHAR_BIT;
48 unsigned sr = (d ? clz(d) : N) - (n ? clz(n) : N);
49 // 0 <= sr <= N - 1 or sr is very large.
50 if (sr > N - 1) // n < d
52 if (sr == N - 1) // d == 1
55 // 1 <= sr <= N - 1. Shifts do not trigger UB.
57 n <<= N - sr;
60 r = (r << 1) | (n >> (N - 1));
65 const fixint_t s = (fixint_t)(d - r - 1) >> (N - 1);
74 const int N = (int)(sizeof(fixint_t) * CHAR_BIT) - 1;
75 fixint_t s_a = a >> N; // s_a = a < 0 ? -1 : 0
76 fixint_t s_b = b >> N; // s_b = b < 0 ? -1 : 0
86 const int N = (int)(sizeof(fixint_t) * CHAR_BIT) - 1;
87 fixint_t s = b >> N; // s = b < 0 ? -1 : 0
89 s = a >> N; // s = a < 0 ? -1 : 0