Home
last modified time | relevance | path

Searched refs:left_shift_bits (Results 1 – 2 of 2) sorted by relevance

/tools/bpf/bpftool/
Dbtf_dumper.c276 static void btf_int128_shift(__u64 *print_num, __u16 left_shift_bits, in btf_int128_shift() argument
290 if (left_shift_bits >= 64) { in btf_int128_shift()
291 upper_num = lower_num << (left_shift_bits - 64); in btf_int128_shift()
294 upper_num = (upper_num << left_shift_bits) | in btf_int128_shift()
295 (lower_num >> (64 - left_shift_bits)); in btf_int128_shift()
296 lower_num = lower_num << left_shift_bits; in btf_int128_shift()
321 int left_shift_bits, right_shift_bits; in btf_dumper_bitfield() local
331 left_shift_bits = bit_offset; in btf_dumper_bitfield()
333 left_shift_bits = 128 - bits_to_copy; in btf_dumper_bitfield()
339 btf_int128_shift(print_num, left_shift_bits, right_shift_bits); in btf_dumper_bitfield()
/tools/lib/bpf/
Dbtf_dump.c1653 __u16 left_shift_bits, right_shift_bits; in btf_dump_get_bitfield_value() local
1680 left_shift_bits = 64 - nr_copy_bits; in btf_dump_get_bitfield_value()
1683 *value = (num << left_shift_bits) >> right_shift_bits; in btf_dump_get_bitfield_value()