convert_signed_to_fixed
ret = convert_signed_to_fixed(R, &fixedR);
ret = convert_signed_to_fixed(S, &fixedS);