H A D | tnum.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * A tnum tracks knowledge about the bits of a value. Each bit can be either 13 /* A completely unknown value */ 14 const struct tnum tnum_unknown = { .value = 0, .mask = -1 }; 29 /* e.g. if chi = 4, bits = 3, delta = (1<<3) - 1 = 7. in tnum_range() 30 * if chi = 0, bits = 0, delta = (1<<0) - in tnum_range() 37 tnum_lshift(struct tnum a,u8 shift) tnum_lshift() argument 42 tnum_rshift(struct tnum a,u8 shift) tnum_rshift() argument 47 tnum_arshift(struct tnum a,u8 min_shift,u8 insn_bitness) tnum_arshift() argument 62 tnum_add(struct tnum a,struct tnum b) tnum_add() argument 74 tnum_sub(struct tnum a,struct tnum b) tnum_sub() argument 86 tnum_neg(struct tnum a) tnum_neg() argument 91 tnum_and(struct tnum a,struct tnum b) tnum_and() argument 101 tnum_or(struct tnum a,struct tnum b) tnum_or() argument 110 tnum_xor(struct tnum a,struct tnum b) tnum_xor() argument 127 tnum_mul(struct tnum a,struct tnum b) tnum_mul() argument 149 tnum_intersect(struct tnum a,struct tnum b) tnum_intersect() argument 158 tnum_cast(struct tnum a,u8 size) tnum_cast() argument 165 tnum_is_aligned(struct tnum a,u64 size) tnum_is_aligned() argument 172 tnum_in(struct tnum a,struct tnum b) tnum_in() argument 180 tnum_sbin(char * str,size_t size,struct tnum a) tnum_sbin() argument 200 tnum_subreg(struct tnum a) tnum_subreg() argument 205 tnum_clear_subreg(struct tnum a) tnum_clear_subreg() argument 215 tnum_const_subreg(struct tnum a,u32 value) tnum_const_subreg() argument [all...] |