mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-07-11 02:03:22 +00:00
Micro-optimization
Use 31 bits for the index rather than 32bits.
This commit is contained in:
parent
bacfb436e9
commit
e54a761768
1 changed files with 3 additions and 3 deletions
|
|
@ -42,10 +42,10 @@ static_assert(sizeof(GPUCell) == 20, "Fix the ordering of GPUCell");
|
|||
|
||||
typedef union CPUCell {
|
||||
struct {
|
||||
char_type ch_or_idx: sizeof(char_type) * 8;
|
||||
hyperlink_id_type hyperlink_id: sizeof(hyperlink_id_type) * 8;
|
||||
bool ch_is_idx: 1;
|
||||
uint16_t : 15;
|
||||
char_type ch_or_idx: sizeof(char_type) * 8 - 1;
|
||||
hyperlink_id_type hyperlink_id: sizeof(hyperlink_id_type) * 8;
|
||||
uint16_t : 16;
|
||||
};
|
||||
uint64_t val;
|
||||
} CPUCell;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue