version 1.5, 2022/08/14 14:54:13 |
version 1.6, 2024/02/22 13:15:17 |
|
|
ctt.ctt_type = it->it_refp->it_idx; |
ctt.ctt_type = it->it_refp->it_idx; |
ctsz = sizeof(struct ctf_stype); |
ctsz = sizeof(struct ctf_stype); |
} else if (size <= CTF_MAX_SIZE) { |
} else if (size <= CTF_MAX_SIZE) { |
ctt.ctt_size = size; |
if (kind == CTF_K_INTEGER || kind == CTF_K_FLOAT) { |
|
assert(size <= 64); |
|
if (size == 0) |
|
ctt.ctt_size = 0; |
|
else if (size <= 8) |
|
ctt.ctt_size = 1; |
|
else if (size <= 16) |
|
ctt.ctt_size = 2; |
|
else if (size <= 32) |
|
ctt.ctt_size = 4; |
|
else |
|
ctt.ctt_size = 8; |
|
} else |
|
ctt.ctt_size = size; |
ctsz = sizeof(struct ctf_stype); |
ctsz = sizeof(struct ctf_stype); |
} else { |
} else { |
ctt.ctt_lsizehi = CTF_SIZE_TO_LSIZE_HI(size); |
ctt.ctt_lsizehi = CTF_SIZE_TO_LSIZE_HI(size); |