Skip to main content
Asoni.1
Associate II
August 18, 2020
Solved

Does STM32G431 have an Arithmetic Left Shift operation.

  • August 18, 2020
  • 3 replies
  • 1123 views

..

This topic has been closed for replies.
Best answer by Uwe Bonnes

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

3 replies

Uwe Bonnes
Uwe BonnesBest answer
Chief
August 18, 2020

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

waclawek.jan
Super User
August 18, 2020

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

For the Cortex-M4 instruction set, see PM0214.

JW

Uwe Bonnes
Chief
August 18, 2020

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