函数逻辑报告

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

函数名称: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.

函数原型:static __attribute__((__noinline__)) unsigned put_dec_helper4(char *buf, unsigned x)

返回类型:unsigned

参数:

类型参数名称
char *buf
unsignedx
291  q等于x乘0x346DC5D7右移43位
293  put_dec_full4(buf, x - q * 10000)
294  返回:q
调用者
名称描述
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.