Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Call 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.

Proto:static __attribute__((__noinline__)) unsigned put_dec_helper4(char *buf, unsigned x)

Type:unsigned

Parameter:

TypeParameterName
char *buf
unsignedx
291  q = x * 0x346DC5D7 >> 43
293  put_dec_full4(buf, x - q * 10000)
294  Return q
Caller
NameDescribe
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.