函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_hash.c Create Date:2022-07-27 07:26:14
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Test the various integer hash functions

函数原型:static bool __init test_int_hash(unsigned long long h64, u32 hash_or[2][33])

返回类型:bool

参数:

类型参数名称
unsigned long longh64
u32hash_or
72  h0等于h64
75  hash_or[0][0]或等于h1等于The _generic versions exist only so lib/test_hash.c can compare* the arch-optimized versions with the generic.* Note that if you change these, any that aren't updated* to match need to have their HAVE_ARCH_* define values updated so the(h0)
88 k小于等于32循环
89  m等于2左移k减1位的值减1
92  hash_or[0][k]或等于h1等于hash_32(h0, k)
93  如果h1大于m
94  打印错误信息("hash_32(%#x, %d) = %#x > %#x", h0, k, h1, m)
95  返回:false
114  hash_or[1][k]或等于h1等于hash_64(h64, k)
115  如果h1大于m
116  打印错误信息("hash_64(%#llx, %d) = %#x > %#x", h64, k, h1, m)
117  返回:false
138  返回:true