comparison libdecnumber/decCommon.c @ 36:855418dad1a3

gcc-4.4-20091020
author e075725
date Tue, 22 Dec 2009 21:19:31 +0900
parents a06113de4d67
children 77e2b8dfacca
comparison
equal deleted inserted replaced
19:58ad6c70ea60 36:855418dad1a3
1087 uInt decFloatRadix(const decFloat *df) { 1087 uInt decFloatRadix(const decFloat *df) {
1088 if (df) return 10; /* to placate compiler */ 1088 if (df) return 10; /* to placate compiler */
1089 return 10; 1089 return 10;
1090 } /* decFloatRadix */ 1090 } /* decFloatRadix */
1091 1091
1092 #if (DECCHECK || DECTRACE)
1092 /* ------------------------------------------------------------------ */ 1093 /* ------------------------------------------------------------------ */
1093 /* decFloatShow -- printf a decFloat in hexadecimal and decimal */ 1094 /* decFloatShow -- printf a decFloat in hexadecimal and decimal */
1094 /* df is the decFloat to show */ 1095 /* df is the decFloat to show */
1095 /* tag is a tag string displayed with the number */ 1096 /* tag is a tag string displayed with the number */
1096 /* */ 1097 /* */
1113 } 1114 }
1114 decFloatToString(df, buff); 1115 decFloatToString(df, buff);
1115 printf(">%s> %s [big-endian] %s\n", tag, hexbuf, buff); 1116 printf(">%s> %s [big-endian] %s\n", tag, hexbuf, buff);
1116 return; 1117 return;
1117 } /* decFloatShow */ 1118 } /* decFloatShow */
1119 #endif
1118 1120
1119 /* ------------------------------------------------------------------ */ 1121 /* ------------------------------------------------------------------ */
1120 /* decFloatToBCD -- get sign, exponent, and BCD8 from a decFloat */ 1122 /* decFloatToBCD -- get sign, exponent, and BCD8 from a decFloat */
1121 /* */ 1123 /* */
1122 /* df is the source decFloat */ 1124 /* df is the source decFloat */