Home
last modified time | relevance | path

Searched refs:num (Results 1 – 13 of 13) sorted by relevance

/DragonOS-0.1.8/user/libs/libc/src/
Dprintf.c10 static char *write_num(char *str, uint64_t num, int base, int field_width, int precision, int flags…
11 static char *write_float_point_num(char *str, double num, int field_width, int precision, int flags…
352 static char *write_num(char *str, uint64_t num, int base, int field_width, int precision, int flags) in write_num() argument
384 int64_t signed_num = (int64_t)num; in write_num()
388 num = -signed_num; in write_num()
391 num = signed_num; in write_num()
411 if (num == 0) in write_num()
415 num = llabs(num); in write_num()
417 while (num > 0) in write_num()
419 tmp_num[js_num++] = digits[num % base]; // 注意这里,输出的数字,是小端对齐的。低位存低位 in write_num()
[all …]
/DragonOS-0.1.8/kernel/src/libs/
Dprintk.c25 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…
383 static char *write_num(char *str, ul num, int base, int field_width, int precision, int flags) in write_num() argument
415 int64_t signed_num = (int64_t)num; in write_num()
419 num = -signed_num; in write_num()
422 num = signed_num; in write_num()
442 if (num == 0) in write_num()
446 num = ABS(num); in write_num()
448 while (num > 0) in write_num()
450 tmp_num[js_num++] = digits[num % base]; // 注意这里,输出的数字,是小端对齐的。低位存低位 in write_num()
[all …]
/DragonOS-0.1.8/kernel/
DCargo.toml21 # num-traits 0.2.15
22 num-traits = { git = "https://git.mirrors.dragonos.org/DragonOS-Community/num-traits.git", rev="159…
23 num = { version = "0.4.0", default-features = false }
24 num-derive = "0.3"
/DragonOS-0.1.8/kernel/src/ipc/
Dpipe.rs104 let mut num = inode.valid_cnt as usize; in read_at() localVariable
112 num = len; in read_at()
119 buf[(PIPE_BUFF_SIZE - start)..num].copy_from_slice(&inode.data[0..end]); in read_at()
121 buf[0..num].copy_from_slice(&inode.data[start..end]); in read_at()
125 inode.read_pos = (inode.read_pos + num as i32) % PIPE_BUFF_SIZE as i32; in read_at()
126 inode.valid_cnt -= num as i32; in read_at()
131 return Ok(num); in read_at()
/DragonOS-0.1.8/docs/kernel/core_api/
Dcasting.md5 - 数值类型转换 (使用`num-traits`库)
15   您可以使用`num-traits`库提供的宏,实现枚举类型和整数类型之间的转换。
/DragonOS-0.1.8/kernel/src/driver/base/platform/
Dmod.rs153 let mut num = 0; in driver_match_device() localVariable
165 num = num + 1; in driver_match_device()
174 if num == 0 { in driver_match_device()
177 return Ok(num); in driver_match_device()
/DragonOS-0.1.8/kernel/src/common/
Dblk_types.h44 void (*end_handler)(ul num, ul arg);
/DragonOS-0.1.8/kernel/src/time/
Dtimekeeping.rs224 let num = nsec % NSEC_PER_SEC as i64; in timekeeping_init() localVariable
225 nsec += num * NSEC_PER_SEC as i64; in timekeeping_init()
226 sec -= num; in timekeeping_init()
/DragonOS-0.1.8/kernel/src/
Dlib.rs49 extern crate num;
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dbuddy.rs161 let num = entries % Self::BUDDY_ENTRIES; in new() localVariable
162 entries -= num; in new()
165 for _j in 0..num { in new()
/DragonOS-0.1.8/kernel/src/filesystem/fat/
Dentry.rs1976 let num = num_suffix.unwrap(); localVariable
1977 self.suffix_bitmask |= 1 << num;
1991 Result<u16, core::num::ParseIntError>,
1997 let num = num_suffix.unwrap(); localVariable
1999 self.checksum_bitmask |= 1 << num;
2033 self.checksum = (core::num::Wrapping(self.checksum) + core::num::Wrapping(1)).0; in next_iteration()
2045 fn build_prefixed_name(&self, num: u32, with_checksum: bool) -> [u8; 11] { in build_prefixed_name()
2059 buf[prefix_len + 1] = char::from_digit(num, 10).unwrap() as u8;
/DragonOS-0.1.8/kernel/src/driver/multiboot2/
Dmultiboot2.h318 unsigned int num; member
/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci.rs94 pub fn num(&self) -> usize { in num() method
1131 PCI_DEVICE_LINKEDLIST.num() in pci_init()