| 43 | } |
| 44 | |
| 45 | unsigned int get_dir_entries(const struct fat_boot_sector *fat_header) |
| 46 | { |
| 47 | const unsigned int hi=fat_header->dir_entries[1]; |
| 48 | const unsigned int lo=fat_header->dir_entries[0]; |
| 49 | /*@ assert 0 <= hi < 1<<8; */ |
| 50 | /*@ assert 0 <= hi<<8 < 1<<16; */ |
| 51 | /*@ assert 0 <= lo < 1<<8; */ |
| 52 | const unsigned int res=(hi<<8)|lo; |
| 53 | /*@ assert res <= 65535; */ |
| 54 | return res; |
| 55 | } |
| 56 | |
| 57 | unsigned int fat_sectors(const struct fat_boot_sector *fat_header) |
| 58 | { |
no outgoing calls