Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\btf.c Create Date:2022-07-28 13:18:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:btf_int128_shift

Proto:static void btf_int128_shift(u64 *print_num, u16 left_shift_bits, u16 right_shift_bits)

Type:void

Parameter:

TypeParameterName
u64 *print_num
u16left_shift_bits
u16right_shift_bits
1430  upper_num = print_num[1]
1431  lower_num = print_num[0]
1435  If left_shift_bits >= 64 Then
1436  upper_num = lower_num << left_shift_bits - 64
1437  lower_num = 0
1438  Else
1439  upper_num = upper_num << left_shift_bits | lower_num >> 64 - left_shift_bits
1441  lower_num = lower_num << left_shift_bits
1444  If right_shift_bits >= 64 Then
1445  lower_num = upper_num >> right_shift_bits - 64
1446  upper_num = 0
1447  Else
1448  lower_num = lower_num >> right_shift_bits | upper_num << 64 - right_shift_bits
1450  upper_num = upper_num >> right_shift_bits
1457  print_num[0] = lower_num
1458  print_num[1] = upper_num
Caller
NameDescribe
btf_bitfield_seq_show