Lines Matching refs:pad
51 * encoding, except if the first byte is >= 0x80 we need to add a zero pad.
63 * Padding is a little trickier too. If the first bytes is > 0x80 then we pad
65 * is non-zero we pad with 0xff. The reason for this distinction is that 0x80
70 * If |pad| is zero, the operation is effectively reduced to memcpy,
71 * and if |pad| is 0xff, then it performs two's complement, ~dst + 1.
77 size_t len, unsigned char pad)
79 unsigned int carry = pad & 1;
92 *(--dst) = (unsigned char)(carry += *(--src) ^ pad);
100 unsigned int pad = 0;
108 pad = 1;
113 pad = 1;
117 * if any other bytes non zero we pad, otherwise we don't.
119 for (pad = 0, i = 1; i < blen; i++)
120 pad |= b[i];
121 pb = pad != 0 ? 0xffU : 0;
122 pad = pb & 1;
125 ret += pad;
140 p += pad; /* yes, p[0] can be written twice, but it's little
157 int neg, pad;
177 pad = 0;
179 pad = 1;
187 for (pad = 0, i = 1; i < plen; i++)
188 pad |= p[i];
189 pad = pad != 0 ? 1 : 0;
192 if (pad && (neg == (p[1] & 0x80))) {
197 /* skip over pad */
198 p += pad;
199 plen -= pad;