![Texas Instruments TMS320C2x User Manual Download Page 108](http://html1.mh-extra.com/html/texas-instruments/tms320c2x/tms320c2x_user-manual_1097073108.webp)
Characteristics of TMS320C2x/C2xx/C5x C Language
5-3
TMS320C2x/C2xx/C5x C Language
5.1.4 Expressions
-
When two signed integers are divided and either is negative, the quotient
is negative, and the sign of the remainder is the same as the sign of the
numerator. The slash mark (/) is used to find the quotient and the percent
symbol (%) is used to find the remainder. For example:
10 / −3 = = −3,
−10 / 3 = = −3
10 % −3 = = 1,
−10 % 3 = = −1
(ANSI 3.3.5, K&R A7.6)
-
A right shift of a signed value is an arithmetic shift; that is, the sign is
preserved.
(ANSI 3.3.7, K&R A7.8)
5.1.5 Declarations
-
The
register
storage class is effective for all character, short, integer, and
pointer types.
(ANSI 3.5.1, K&R A8.1)
-
Structure members are not packed into words (with the exception of bit
fields). Each member
is aligned on a 16-bit word boundary.
(ANSI 3.5.2.1, K&R A8.3)
-
A bit field defined as an integer is signed. Bit fields are packed into words
beginning at the low-order bits, and do not cross word boundaries.
(ANSI 3.5.2.1, K&R A8.3)
5.1.6 Preprocessor
The preprocessor ignores any unsupported #pragma directive.
(ANSI 3.8.6, K&R A12.8)
The following pragmas
are
supported:
J
CODE_SECTION
J
DATA_SECTION
J
FUNC_EXT_CALLED
For more information on pragmas, see section 5.4 on page 5-7.
Summary of Contents for TMS320C2x
Page 8: ...viii...
Page 69: ...2 47 C Compiler Description...
Page 159: ...6 36...
Page 226: ...8 6...