__thumb
In this section:
Syntax
See Syntax for type attributes used on functions.
Description
The __thumb keyword makes a function execute in Thumb mode.
A function declared __thumb cannot be declared __arm.
In 64-bit mode, this keyword cannot be used.
Example
__thumb int func2(void);