Lines Matching refs:val
98 int val[4];
118 ctx->val[ctx->digits++] = (int)(s - base64);
122 if (ctx->val[0] == 64 || ctx->val[1] == 64)
124 if (ctx->val[2] == 64 && ctx->val[3] != 64)
129 if (ctx->val[2] == 64 && (ctx->val[1] & 0xf) != 0)
132 * We don't need to test for ctx->val[2] != 64 as
135 if (ctx->val[3] == 64 && (ctx->val[2] & 0x3) != 0)
137 n = (ctx->val[2] == 64) ? 1 :
138 (ctx->val[3] == 64) ? 2 : 3;
141 if (ctx->val[2] == 64)
142 ctx->val[2] = 0;
143 if (ctx->val[3] == 64)
144 ctx->val[3] = 0;
146 buf[0] = (ctx->val[0]<<2)|(ctx->val[1]>>4);
147 buf[1] = (ctx->val[1]<<4)|(ctx->val[2]>>2);
148 buf[2] = (ctx->val[2]<<6)|(ctx->val[3]);