/*************************************************************************************************************************************/ /* */ /* T E S T D E P L U S O U M O I N S L ' I N F I N I E N T I E R : */ /* */ /* */ /* Author of '$xtc/infini.02$c' : */ /* */ /* Jean-Francois COLONNA (LACTAMME, AAAAMMJJhhmmss). */ /* */ /*************************************************************************************************************************************/ #define INFINIn \ (long int)(0x80000000+1) #define INFINIp \ (long int)0x7fffffff #define PRINT(message,valeur) \ { \ printf("\n %+16s=%08x (%+d)",message,valeur,valeur); \ } main() { PRINT("positif",INFINIp); PRINT("-positif",-INFINIp); PRINT("0-positif",0-INFINIp); printf("\n"); PRINT("negatif",INFINIn); PRINT("-negatif",-INFINIn); PRINT("0-negatif",0-INFINIn); }