Searched refs:ctz (Results 1 – 6 of 6) sorted by relevance
/littlefs-3.7.0-3.6.0/ |
D | lfs.c | 465 static void lfs_ctz_fromle32(struct lfs_ctz *ctz) { in lfs_ctz_fromle32() argument 466 ctz->head = lfs_fromle32(ctz->head); in lfs_ctz_fromle32() 467 ctz->size = lfs_fromle32(ctz->size); in lfs_ctz_fromle32() 471 static void lfs_ctz_tole32(struct lfs_ctz *ctz) { in lfs_ctz_tole32() argument 472 ctz->head = lfs_tole32(ctz->head); in lfs_ctz_tole32() 473 ctz->size = lfs_tole32(ctz->size); in lfs_ctz_tole32() 1399 struct lfs_ctz ctz; in lfs_dir_getinfo() local 1401 LFS_MKTAG(LFS_TYPE_STRUCT, id, sizeof(ctz)), &ctz); in lfs_dir_getinfo() 1405 lfs_ctz_fromle32(&ctz); in lfs_dir_getinfo() 1408 info->size = ctz.size; in lfs_dir_getinfo() [all …]
|
D | DESIGN.md | 628 The name comes from heavy use of the [CTZ instruction][wikipedia-ctz], which 630 that block contains ctz(_n_)+1 pointers. 689 ![lim,n->inf((1/n)sum,i,0->n(ctz(i)+1)) = sum,i,0->inf(1/2^i) = 2][ctz-formula1] 697 ![B = (w/8)ceil(log2(2^w / (B-2w/8)))][ctz-formula2] 722 ![N = sum,i,0->n(B-(w/8)(ctz(i)+1))][ctz-formula3] 737 ![sum,i,0->n(ctz(i)+1) = 2n-popcount(n)][ctz-formula4] 741 1. ctz(![x]) = the number of trailing bits that are 0 in ![x] 753 ![N = Bn - (w/8)(2n-popcount(n))][ctz-formula5] 762 ![n = floor((N-(w/8)popcount(N/(B-2w/8))) / (B-2w/8))][ctz-formula6] 768 ![off = N - (B-2w/8)n - (w/8)popcount(n)][ctz-formula7] [all …]
|
D | lfs.h | 390 } ctz; member
|
D | SPEC.md | 457 example, appending a ctz-struct replaces an inline-struct on the same file. 536 found in the [DESIGN.md](DESIGN.md#ctz-skip-lists).
|
/littlefs-3.7.0-3.6.0/tests/ |
D | test_evil.toml | 162 struct lfs_ctz ctz; 165 LFS_MKTAG(LFS_TYPE_STRUCT, 1, sizeof(struct lfs_ctz)), &ctz) 167 lfs_ctz_fromle32(&ctz); 170 cfg->read(cfg, ctz.head, 0, bbuffer, BLOCK_SIZE) => 0; 174 cfg->erase(cfg, ctz.head) => 0; 175 cfg->prog(cfg, ctz.head, 0, bbuffer, BLOCK_SIZE) => 0;
|
D | test_alloc.toml | 420 lfs_block_t fileblock = file.ctz.head;
|