cancel
Showing results for 
Search instead for 
Did you mean: 

Does STM32G431 have an Arithmetic Left Shift operation.

Asoni.1
Associate II
 
1 ACCEPTED SOLUTION

Accepted Solutions
Uwe Bonnes
Principal III

It seems there is no ASL. However LSL should do the job.

View solution in original post

3 REPLIES 3
Uwe Bonnes
Principal III

It seems there is no ASL. However LSL should do the job.

If you mean sign-preserving left-shift, then no.

For the Cortex-M4 instruction set, see PM0214.

JW

Uwe Bonnes
Principal III

Use "* (1 << shift)" as workaround to preserve sign