Home
last modified time | relevance | path

Searched refs:ONE_K (Results 1 - 2 of 2) sorted by relevance

/third_party/rust/crates/nix/test/sys/
H A Dtest_mman.rs28 const ONE_K: size_t = 1024; in test_mremap_grow() consts
29 let one_k_non_zero = NonZeroUsize::new(ONE_K).unwrap(); in test_mremap_grow()
41 std::slice::from_raw_parts_mut(mem as *mut u8, ONE_K) in test_mremap_grow()
43 assert_eq!(slice[ONE_K - 1], 0x00); in test_mremap_grow()
44 slice[ONE_K - 1] = 0xFF; in test_mremap_grow()
45 assert_eq!(slice[ONE_K - 1], 0xFF); in test_mremap_grow()
51 ONE_K, in test_mremap_grow()
52 10 * ONE_K, in test_mremap_grow()
60 ONE_K, in test_mremap_grow()
61 10 * ONE_K, in test_mremap_grow()
87 const ONE_K: size_t = 1024; test_mremap_shrink() consts
[all...]
/third_party/toybox/toys/pending/
H A Dfdisk.c43 #define ONE_K 1024 macro
105 start = g_heads * g_sectors * ONE_K - 1; in set_hsc()
114 end = g_heads * g_sectors * ONE_K - 1; in set_hsc()
383 if ((g_cylinders > ONE_K) && !(FLAG(l) || FLAG(S))) in read_mbr()
435 if (g_cylinders <= ONE_K && (physbc != lbc || physbh != lbh || physbs != lbs)) { in consistency_check()
440 if (g_cylinders <= ONE_K && (physec != lec || physeh != leh || physes != les)) { in consistency_check()
480 if (g_sect_size < ONE_K) { in list_partitions()
481 blocks /= (ONE_K/g_sect_size); in list_partitions()
482 odds = secs %(ONE_K/g_sect_size); in list_partitions()
483 } else if (g_sect_size > ONE_K) block in list_partitions()
[all...]

Completed in 2 milliseconds