Home | History | Annotate | Download | only in dpd

Lines Matching refs:d32

81 decimal32 * decimal32FromNumber(decimal32 *d32, const decNumber *dn,
173 UBFROMUI(d32->bytes, targ); /* directly store the int */
176 /* decimal32Show(d32); */
177 return d32;
182 /* d32 is the source decimal32 */
186 decNumber * decimal32ToNumber(const decimal32 *d32, decNumber *dn) {
194 sour=UBTOUI(d32->bytes); /* directly load the int */
237 /* decimal32ToString(d32, string); */
238 /* decimal32ToEngString(d32, string); */
240 /* d32 is the decimal32 format number to convert */
247 char * decimal32ToEngString(const decimal32 *d32, char *string){
249 decimal32ToNumber(d32, &dn);
254 char * decimal32ToString(const decimal32 *d32, char *string){
268 sour=UBTOUI(d32->bytes); /* directly load the int */
403 /* d32 is the source decimal32 */
404 /* returns 1 if the encoding of d32 is canonical, 0 otherwise */
407 uInt decimal32IsCanonical(const decimal32 *d32) {
412 decimal32ToNumber(d32
414 return memcmp(d32, &canon, DECIMAL32_Bytes)==0;
419 /* d32 is the source decimal32 */
424 decimal32 * decimal32Canonical(decimal32 *result, const decimal32 *d32) {
428 decimal32ToNumber(d32, &dn);
460 /* d32 -- the number to show */
463 void decimal32Show(const decimal32 *d32) {
469 sprintf(&buf[j], "%02x", d32->bytes[3-i]);
471 printf(" D32> %s [S:%d Cb:%02x Ec:%02x] LittleEndian\n", buf,
472 d32->bytes[3]>>7, (d32->bytes[3]>>2)&0x1f,
473 ((d32->bytes[3]&0x3)<<4)| (d32->bytes[2]>>4));
477 sprintf(&buf[j], "%02x", d32->bytes[i]);
479 printf(" D32> %s [S:%d Cb:%02x Ec:%02x] BigEndian\n", buf,
480 decimal32Sign(d32), decimal32Comb(d32), decimal32ExpCon(d32));