/* Search the digram table for a length 2 match. */
const u16 digram = mf->next_digram;
- mf->next_digram = *(const u16 *)(&window[cur_pos + 1]);
+ mf->next_digram = load_u16_unaligned(&window[cur_pos + 1]);
prefetch(&mf->digram_tab[mf->next_digram]);
cur_match = mf->digram_tab[digram];
mf->digram_tab[digram] = cur_pos;
do {
if (mf->digram_tab) {
digram = next_digram;
- next_digram = *(const u16 *)(&window[cur_pos + 1]);
+ next_digram = load_u16_unaligned(&window[cur_pos + 1]);
mf->digram_tab[digram] = cur_pos;
}