WB_FRN_HIST_THR_SLOTS
#define WB_FRN_HIST_MAX_SLOTS (WB_FRN_HIST_THR_SLOTS / 2 + 1)
if (hweight16(history) > WB_FRN_HIST_THR_SLOTS)