函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:reciprocal_divide

函数原型:static inline u32 reciprocal_divide(u32 a, struct reciprocal_value R)

返回类型:u32

参数:

类型参数名称
u32a
struct reciprocal_valueR
35  t等于am右移32位
36  返回:tat右移sh1位的值右移sh2
调用者
名称描述
obj_to_indexWe want to avoid an expensive divide : (offset / cache->size)* Using the fact that size is a constant for a particular cache,* we can replace (offset / cache->size) by* reciprocal_divide(offset, cache->reciprocal_buffer_size)