# 1 "bisect.c" # 1 "" # 1 "" # 1 "bisect.c" typedef long int int32_t; typedef unsigned long long int uint64_t; typedef unsigned long int uint32_t; extern void *memset (void *__s, int __c, uint32_t __n); void make_isolinux_mbr(int32_t *img_blocks, char *wpt) { uint32_t nominal_part_size; uint64_t hd_img_blocks; int b, part_offset, part; hd_img_blocks = ((uint64_t) *img_blocks) * (uint64_t) 2; part_offset = hd_img_blocks / 2; for (part = 1 ; part <= 2; part++) { if (part != 1) { memset(wpt, 0, 16); continue; } if (hd_img_blocks - (uint64_t) part_offset > (uint64_t) 0xffffffff) nominal_part_size = 0xffffffff; else nominal_part_size = hd_img_blocks - (uint64_t) part_offset; for (b = 0; b < 32; b += 8) *((unsigned char *) (wpt++)) = (nominal_part_size >> b) & 0xff; } }