You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Claudiu Zissulescu edited this page May 11, 2020
·
5 revisions
Intro
ARCHS and ARCEM processors are adding support for fixed-point operations via DSP instructions. These instructions are also used/supported by the ARC GNU compiler via <stdfix.h> which is implemented accordingly with C Extensions to support embedded processors standard and GNU GCC manual.
The native fixed-point arithmetic adds:
saturating arithmetic;
fixed-point arithmetic;
Rounding is not considered by the compiler, and it will always be done as specified in ARC's auxiliary register DSP_CTRL;
prefix and postfix increment and decrement operators (++, --);
unary arithmetic operators (+, -, !);
binary arithmetic operators (+, -, *, /);
binary shift operators (<<, >>);
relational operators (<, <=, >=, >);
equality operators (==, !=);
assignment operators (+=, -=, *=, /=, <<=, >>=);
conversions to and from integer, floating-point, or fixed-point types.