GET_UINT16_BE
GET_UINT16_BE(curr_idx, (const u8*)&(cur_share_i->index), 0);
GET_UINT16_BE(curr_idx, (const u8*)&(cur_share_j->index), 0);
#ifndef GET_UINT16_BE
GET_UINT16_BE(curr_idx, (u8*)&(shares[i].raw_share.index), 0);