Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\vsprintf.c Create Date:2022-07-28 06:11:57
Last Modify:2022-05-21 09:47:42 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:put_dec_full4

Proto:static void put_dec_full4(char *buf, unsigned r)

Type:void

Parameter:

TypeParameterName
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]
Caller
NameDescribe
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.