Разработка, производство и продажа радиоэлектронной аппаратуры
|
Требуется программист в Зеленограде - обработка данных с датчиков; ColdFire; 40 тыс.
e-mail: jobsmp@pochta.ru
|
на самом деле препроцессор C30 считает в unsigned long
Отправлено
Гамма СПб 28 декабря 2007 г. 16:47
В ответ на:
Патамушта отправлено
<font color=gray>Nickolay_B</font> 28 декабря 2007 г. 16:42
MPLAB C30 supports data types for integers that are twice as long as long int. Simply write long long int for a signed integer, or unsigned long long int for an unsigned integer. To make an integer constant of type long long int, add the suffix LL to the integer. To make an integer constant of type unsigned long long int, add the suffix ULL to the integer.
You can use these types in arithmetic like any other integer types. Addition, subtraction and bitwise boolean operations on these types are open-coded, but division and shifts are not open-coded. The operations that are not open-coded use special library routines that come with MPLAB C30.
Составить ответ | Вернуться на конференцию
Ответы