Forum Discussion
Altera_Forum
Honored Contributor
12 years agoint c = a <? b; // what is it ? operator ? digraph ? compiler options ?
I search information about this instruction : int c = a <? b; A sample of code who compiled with an older version of nios2-elf-gcc (NIOS II EDS 6.0) : int foo(int a, int b)
{
int c = ...
Altera_Forum
Honored Contributor
12 years agoOh yes you are right! GCC versions prior to 4.0 supported the <? (min) and >? (max) operators, as well as <?= and >?= to assign min and max values. Those were deprecated in 4.0.
You can probably replace them with MIN() and MAX() macros or functions.