Lines Matching defs:typ
35 #define NBITS(typ) (1 << ((typ)->t_info >> 1))
36 #define SIGNED(typ) ((typ)->t_info & 1)
421 kubsan_deserialize_int(struct type_descriptor *typ, unsigned long val)
423 switch (NBITS(typ)) {
437 kubsan_deserialize_uint(struct type_descriptor *typ, unsigned long val)
439 switch (NBITS(typ)) {
475 kubsan_format_int(struct type_descriptor *typ, unsigned long val,
478 switch (typ->t_kind) {
480 if (SIGNED(typ)) {
481 int64_t i = kubsan_deserialize_int(typ, val);
484 uint64_t u = kubsan_deserialize_uint(typ, val);
489 snprintf(buf, bufsiz, "%#x<NaN>", typ->t_kind);
763 is_negative(struct type_descriptor *typ, unsigned long val)
765 return (SIGNED(typ) && kubsan_deserialize_int(typ, val) < 0);
769 is_shift_exponent_too_large(struct type_descriptor *typ, unsigned long val)
771 return (kubsan_deserialize_int(typ, val) >= NBITS(typ));