函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\vsprintf.c Create Date:2022-07-27 07:09:14
Last Modify:2022-05-21 09:47:42 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:put_dec_full4

函数原型:static void put_dec_full4(char *buf, unsigned r)

返回类型:void

参数:

类型参数名称
char *buf
unsignedr
274  q等于r乘0x147b右移19位
275  *buf等于Decimal conversion is by far the most typical, and is used for* /proc and /sys data. This directly impacts e.g. top performance* with many processes running. We optimize it for speed by emitting* two characters at a time, using a 200 byte lookup table[r - 100 * q]
276  buf加等于2
278  *buf等于Decimal conversion is by far the most typical, and is used for* /proc and /sys data. This directly impacts e.g. top performance* with many processes running. We optimize it for speed by emitting* two characters at a time, using a 200 byte lookup table[q]
调用者
名称描述
put_dec_helper4Call put_dec_full4 on x % 10000, return x / 10000.* The approximation x/10000 == (x * 0x346DC5D7) >> 43* holds for all x < 1,128,869,999. The largest value this* helper will ever be asked to convert is 1,125,520,955.