Searched refs:precision (Results 1 – 2 of 2) sorted by relevance
/DragonOS-0.1.2/user/libs/libc/src/ |
D | printf.c | 9 static char *write_num(char *str, uint64_t num, int base, int field_width, int precision, int flags… 10 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags… 83 int precision; //精度 in vsprintf() local 167 precision = -1; in vsprintf() 173 precision = va_arg(args, int); in vsprintf() 178 precision = skip_and_atoi(&fmt); in vsprintf() 229 if (precision < 0) in vsprintf() 232 precision = len; in vsprintf() 235 else if (len > precision) in vsprintf() 237 len = precision; in vsprintf() [all …]
|
/DragonOS-0.1.2/kernel/src/libs/ |
D | printk.c | 25 static char *write_num(char *str, ul num, int base, int field_width, int precision, int flags); 27 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags… 66 int precision; //精度 in __do_vsprintf() local 154 precision = -1; in __do_vsprintf() 160 precision = va_arg(args, int); in __do_vsprintf() 165 precision = skip_and_atoi(&fmt); in __do_vsprintf() 216 if (precision < 0) in __do_vsprintf() 219 precision = len; in __do_vsprintf() 222 else if (len > precision) in __do_vsprintf() 224 len = precision; in __do_vsprintf() [all …]
|