函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This will print a single '0' even if r == 0, since we would* immediately jump to out_r where two 0s would be written but only* one of them accounted for in buf. This is needed by ip4_string* below. All other callers pass a non-zero value of r.

函数原型:static __attribute__((__noinline__)) char *put_dec_trunc8(char *buf, unsigned r)

返回类型:char

参数:

类型参数名称
char *buf
unsignedr
192  如果r小于100则转到:out_r
196  q等于r乘0x28f5c29右移32位
197  *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]
198  buf加等于2
201  如果q小于100则转到:out_q
205  r等于q乘0x28f5c29右移32位
206  *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 - 100 * r]
207  buf加等于2
210  如果r小于100则转到:out_r
214  q等于r乘0x147b右移19位
215  *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]
216  buf加等于2
217  out_q :
219  r等于q
220  out_r :
222  *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]
223  buf加等于如果r小于10则1否则2
224  返回:buf
调用者
名称描述
put_decBased on code by Douglas W. Jones found at* * (with permission from the author).* Performs no 64-bit division and hence should be fast on 32-bit machines.
ip4_string