Changeset 2639
- Timestamp:
- Apr 22, 2009 3:32:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/third_party/g7221/common/basic_op.c
r2623 r2639 11 11 */ 12 12 13 #include <stdio.h>14 #include <stdlib.h>13 //#include <stdio.h> 14 //#include <stdlib.h> 15 15 #include "typedef.h" 16 16 #include "basic_op.h" 17 #include <pj/assert.h> 17 18 18 19 #if (WMOPS) … … 1200 1201 if ((var1 > var2) || (var1 < 0) || (var2 < 0)) 1201 1202 { 1202 printf ("Division Error var1=%d var2=%d\n", var1, var2); 1203 abort(); /* exit (0); */ 1203 //printf ("Division Error var1=%d var2=%d\n", var1, var2); 1204 //abort(); /* exit (0); */ 1205 pj_assert(!"Division Error"); 1204 1206 } 1205 1207 if (var2 == 0) 1206 1208 { 1207 printf ("Division by 0, Fatal error \n"); 1208 abort(); /* exit (0); */ 1209 //printf ("Division by 0, Fatal error \n"); 1210 //abort(); /* exit (0); */ 1211 assert(!"Division by 0"); 1209 1212 } 1210 1213 if (var1 == 0) … … 1440 1443 1441 1444 if ( den == (Word16) 0 ) { 1442 printf("Division by 0 in div_l, Fatal error \n"); 1443 exit(0); 1445 //printf("Division by 0 in div_l, Fatal error \n"); 1446 //exit(0); 1447 assert(!"Division by 0"); 1444 1448 } 1445 1449 1446 1450 if ( (L_num < (Word32) 0) || (den < (Word16) 0) ) { 1447 printf("Division Error in div_l, Fatal error \n"); 1448 exit(0); 1451 //printf("Division Error in div_l, Fatal error \n"); 1452 //exit(0); 1453 assert(!"Division Error"); 1449 1454 } 1450 1455
Note: See TracChangeset
for help on using the changeset viewer.