Changeset 2f08a55d in mainline for src/debug/print.c
- Timestamp:
- 2005-09-03T14:16:25Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f6297e0
- Parents:
- 544b4bf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/debug/print.c
r544b4bf r2f08a55d 50 50 unsigned long in1,in2; 51 51 52 /* 52 53 53 if (fmath_is_nan(num)) { 54 54 print_str("NaN"); 55 55 return; 56 56 } 57 */ 58 59 if (fmath_is_negative(num)) { 57 58 if (num<0.0) { 60 59 putchar('-'); 61 } 62 63 num=fmath_abs(num); 60 num=num*-1.0; 61 } 62 63 64 if (fmath_is_infinity(num)) { 65 print_str("Inf"); 66 return; 67 } 64 68 65 69 if ((modifier=='E')||(modifier=='e')) { … … 79 83 } 80 84 81 82 /*83 if (fmath_is_infinity(num)) {84 print_str("Inf");85 }86 */87 85 //TODO: rounding constant - when we got fraction >= 0.5, we must increment last printed number 88 86
Note:
See TracChangeset
for help on using the changeset viewer.