Home
last modified time | relevance | path

Searched refs:num_decimal (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.3/user/libs/libc/src/
Dprintf.c499 uint64_t num_decimal = (uint64_t)(round(1.0 * (num - num_z) * pow(10, precision))); // 获取小数部分 in write_float_point_num() local
513 while (num_decimal > 0) in write_float_point_num()
515 tmp_num_d[js_num_d++] = digits[num_decimal % 10]; in write_float_point_num()
516 num_decimal /= 10; in write_float_point_num()
/DragonOS-0.1.3/kernel/src/libs/
Dprintk.c532 uint64_t num_decimal = (uint64_t)(round(1.0 * (num - num_z) * pow(10, precision))); // 获取小数部分 in write_float_point_num() local
546 while (num_decimal > 0) in write_float_point_num()
548 tmp_num_d[js_num_d++] = digits[num_decimal % 10]; in write_float_point_num()
549 num_decimal /= 10; in write_float_point_num()