diff options
| author | lijia <[email protected]> | 2021-05-08 09:01:32 +0800 |
|---|---|---|
| committer | lijia <[email protected]> | 2021-05-08 09:01:32 +0800 |
| commit | 6e9c0802a6b78bceca85e4d51587539530c1a415 (patch) | |
| tree | ae6d1ec6eaf4456734ea7074cbac27af886f64e8 /src/common | |
| parent | eb1a352ad116b9c5653b9f52cef35c77b641e902 (diff) | |
通过四元组反查streaminfo结构.
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/linux_kernel_jhash.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/common/linux_kernel_jhash.c b/src/common/linux_kernel_jhash.c index 7d141ff..6bd4482 100644 --- a/src/common/linux_kernel_jhash.c +++ b/src/common/linux_kernel_jhash.c @@ -172,7 +172,7 @@ static inline u32 jhash_1word(u32 a, u32 initval) }
-static inline u32 jhash_4words(u32 a, u32 b, u32 c, u32 initval, u32 *out_val)
+u32 sapp_jhash_4words(u32 a, u32 b, u32 c, u32 initval, u32 *out_val)
{
a += JHASH_INITVAL;
b += JHASH_INITVAL;
@@ -241,8 +241,7 @@ int stream_make_hash(struct streaminfo_private *stream_pr, unsigned int maxsize) abort();
}
- //hash_val = jhash_3words(a, b, c, d);
- hash_val = jhash_4words(a, b, c, d, &stream_pr->hash_slave);
+ hash_val = sapp_jhash_4words(a, b, c, d, &stream_pr->hash_slave);
#if HIGH_PERF
return hash_val & (maxsize - 1);
@@ -252,6 +251,8 @@ int stream_make_hash(struct streaminfo_private *stream_pr, unsigned int maxsize) }
#endif
+
+
#ifdef __cplusplus
}
#endif
|
