https://www.mathworks.com/help/ecoder/ug/generate-code-with-right-shifts-on-signed-integers.html
Generate Code Containing Right Shifts on Signed Integers - MATLAB & Simulink
Specify whether the generated code contains right shifts on signed integers.
generate codesigned integerscontainingrightshifts