mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
Fix alignment of output array in UTF8Decoder
This commit is contained in:
parent
95eac2e510
commit
72e73f2f81
1 changed files with 1 additions and 1 deletions
|
|
@ -16,8 +16,8 @@ typedef void (*control_byte_callback)(void *data, uint8_t ch);
|
|||
typedef void (*output_chars_callback)(void *data, const uint32_t *chars, unsigned count);
|
||||
|
||||
typedef struct UTF8Decoder {
|
||||
alignas(512/8) uint32_t output[512/8]; // we can process at most 512 bits of input (AVX512) so we get at most 64 chars of output
|
||||
struct { uint32_t cur, prev, codep; } state;
|
||||
alignas(64) uint32_t output[64];
|
||||
|
||||
void *callback_data;
|
||||
control_byte_callback control_byte_callback;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue