Lines Matching refs:neg
25 int neg, ret; in ASN1_INTEGER_cmp() local
27 neg = x->type & V_ASN1_NEG; in ASN1_INTEGER_cmp()
28 if (neg != (y->type & V_ASN1_NEG)) { in ASN1_INTEGER_cmp()
29 if (neg) in ASN1_INTEGER_cmp()
37 if (neg) in ASN1_INTEGER_cmp()
91 static size_t i2c_ibuf(const unsigned char *b, size_t blen, int neg, in i2c_ibuf() argument
101 if (!neg && (i > 127)) { in i2c_ibuf()
104 } else if (neg) { in i2c_ibuf()
151 int neg, pad; in c2i_ibuf() local
157 neg = p[0] & 0x80; in c2i_ibuf()
159 *pneg = neg; in c2i_ibuf()
163 if (neg) in c2i_ibuf()
186 if (pad && (neg == (p[1] & 0x80))) { in c2i_ibuf()
196 twos_complement(b, p, plen, neg ? 0xffU : 0); in c2i_ibuf()
250 int neg) in asn1_get_int64() argument
255 if (neg) { in asn1_get_int64()
285 int neg; in c2i_ASN1_INTEGER() local
303 c2i_ibuf(ret->data, &neg, *pp, len); in c2i_ASN1_INTEGER()
305 if (neg) in c2i_ASN1_INTEGER()
606 int c2i_uint64_int(uint64_t *ret, int *neg, const unsigned char **pp, long len) in c2i_uint64_int() argument
618 (void)c2i_ibuf(buf, neg, *pp, len); in c2i_uint64_int()
622 int i2c_uint64_int(unsigned char *p, uint64_t r, int neg) in i2c_uint64_int() argument
628 return i2c_ibuf(buf + off, sizeof(buf) - off, neg, &p); in i2c_uint64_int()