Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Test the various integer hash functions

Proto:static bool __init test_int_hash(unsigned long long h64, u32 hash_or[2][33])

Type:bool

Parameter:

TypeParameterName
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  When k <= 32 cycle
89  m = (2 << k - 1 ) - 1
92  hash_or[0][k] |= h1 = hash_32(h0, k)
93  If h1 > m Then
94  pr_err("hash_32(%#x, %d) = %#x > %#x", h0, k, h1, m)
95  Return false
114  hash_or[1][k] |= h1 = hash_64(h64, k)
115  If h1 > m Then
116  pr_err("hash_64(%#llx, %d) = %#x > %#x", h64, k, h1, m)
117  Return false
138  Return true