Lines Matching refs:window_val
24 int window_val; in bn_compute_wNAF() local
65 window_val = scalar->d[0] & mask; in bn_compute_wNAF()
67 while ((window_val != 0) || (j + w + 1 < len)) { /* if j+w+1 >= len, in bn_compute_wNAF()
74 if (window_val & 1) { in bn_compute_wNAF()
77 if (window_val & bit) { in bn_compute_wNAF()
78 digit = window_val - next_bit; /* -2^w < digit < 0 */ in bn_compute_wNAF()
89 digit = window_val & (mask >> 1); /* 0 < digit < 2^w */ in bn_compute_wNAF()
93 digit = window_val; /* 0 < digit < 2^w */ in bn_compute_wNAF()
101 window_val -= digit; in bn_compute_wNAF()
107 if (window_val != 0 && window_val != next_bit in bn_compute_wNAF()
108 && window_val != bit) { in bn_compute_wNAF()
116 window_val >>= 1; in bn_compute_wNAF()
117 window_val += bit * BN_is_bit_set(scalar, j + w); in bn_compute_wNAF()
119 if (window_val > next_bit) { in bn_compute_wNAF()