Add sign_extend32() needed by rtw88.
MFC after: 10 days
should index be uint8_t aswell?
This matches the function signature from Linux
@emaste "this" being "int" or "uint8_t"? The 64bit version above only had a "int" and I went by that,