Home | History | Annotate | Download | only in i18n

Lines Matching refs:df

296   /* Refer to a 32-bit word or byte in a decFloat (df) by big-endian  */
303 #define DFBYTE(df, off) ((df)->bytes[DECBYTES-1-(off)])
304 #define DFWORD(df, off) ((df)->words[DECWORDS-1-(off)])
307 #define DFBYTE(df, off) ((df)->bytes[off])
308 #define DFWORD(df, off) ((df)->words[off])
313 #define DFISSIGNED(df) (DFWORD(df, 0)&0x80000000)
314 #define DFISSPECIAL(df) ((DFWORD(df, 0)&0x78000000)==0x78000000)
315 #define DFISINF(df) ((DFWORD(df, 0)&0x7c000000)==0x78000000)
316 #define DFISNAN(df) ((DFWORD(df, 0)&0x7c000000)==0x7c000000)
317 #define DFISQNAN(df) ((DFWORD(df, 0)&0x7e000000)==0x7c000000)
318 #define DFISSNAN(df) ((DFWORD(df, 0)&0x7e000000)==0x7e000000)
357 #define DFISZERO(df) ((DFWORD(df, 0)&0x1c0fffff)==0 \
358 && (DFWORD(df, 0)&0x60000000)!=0x60000000)
361 #define DFISZERO(df) ((DFWORD(df, 1)==0 \
362 && (DFWORD(df, 0)&0x1c03ffff)==0 \
363 && (DFWORD(df, 0)&0x60000000)!=0x60000000))
364 #define DFISINT(df) ((DFWORD(df, 0)&0x63fc0000)==0x22380000 \
365 ||(DFWORD(df, 0)&0x7bfc0000)==0x6a380000)
366 #define DFISUINT01(df) ((DFWORD(df, 0)&0xfbfc0000)==0x22380000)
367 #define DFISCCZERO(df) (DFWORD(df, 1)==0 \
368 && (DFWORD(df, 0)&0x0003ffff)==0)
369 #define DFISCC01(df) ((DFWORD(df, 0)&~0xfffc9124)==0 \
370 && (DFWORD(df, 1)&~0x49124491)==0)
373 #define DFISZERO(df) ((DFWORD(df, 3)==0 \
374 && DFWORD(df, 2)==0 \
375 && DFWORD(df, 1)==0 \
376 && (DFWORD(df, 0)&0x1c003fff)==0 \
377 && (DFWORD(df, 0)&0x60000000)!=0x60000000))
378 #define DFISINT(df) ((DFWORD(df, 0)&0x63ffc000)==0x22080000 \
379 ||(DFWORD(df, 0)&0x7bffc000)==0x6a080000)
380 #define DFISUINT01(df) ((DFWORD(df, 0)&0xfbffc000)==0x22080000)
381 #define DFISCCZERO(df) (DFWORD(df, 3)==0 \
382 && DFWORD(df, 2)==0 \
383 && DFWORD(df, 1)==0 \
384 && (DFWORD(df, 0)&0x00003fff)==0)
386 #define DFISCC01(df) ((DFWORD(df, 0)&~0xffffc912)==0 \
387 && (DFWORD(df, 1)&~0x44912449)==0 \
388 && (DFWORD(df, 2)&~0x12449124)==0 \
389 && (DFWORD(df, 3)&~0x49124491)==0)
434 /* Get the exponent continuation from a decFloat *df as an Int */
435 #define GETECON(df) ((Int)((DFWORD((df), 0)&0x03ffffff)>>(32-6-DECECONL)))
437 #define GETWECON(df) ((Int)((DFWWORD((df), 0)&0x03ffffff)>>(32-6-DECWECONL)))
439 #define GETEXP(df) ((Int)(DECCOMBEXP[DFWORD((df), 0)>>26]+GETECON(df)))
441 #define GETEXPUN(df) ((Int)GETEXP(df)-DECBIAS)
443 #define GETMSD(df) (DECCOMBMSD[DFWORD((df), 0)>>26])
451 /* Macros to decode the coefficient in a finite decFloat *df into */
477 #define GETCOEFF(df, bcd) { \
478 uInt sourhi=DFWORD(df, 0); \
482 #define GETWCOEFF(df, bcd) { \
483 uInt sourhi=DFWWORD(df, 0); \
484 uInt sourlo=DFWWORD(df, 1); \
493 #define GETCOEFF(df, bcd) { \
494 uInt sourhi=DFWORD(df, 0); \
495 uInt sourlo=DFWORD(df, 1); \
502 #define GETWCOEFF(df, bcd) { \
503 uInt sourhi=DFWWORD(df, 0); \
504 uInt sourmh=DFWWORD(df, 1); \
505 uInt sourml=DFWWORD(df, 2); \
506 uInt sourlo=DFWWORD(df, 3); \
521 #define GETCOEFF(df, bcd) { \
522 uInt sourhi=DFWORD(df, 0); \
523 uInt sourmh=DFWORD(df, 1); \
524 uInt sourml=DFWORD(df, 2); \
525 uInt sourlo=DFWORD(df, 3); \
539 #define GETWCOEFF(df, bcd) {??} /* [should never be used] */
542 /* Macros to decode the coefficient in a finite decFloat *df into */
555 #define GETCOEFFBILL(df, buf) { \
556 uInt sourhi=DFWORD(df, 0); \
562 #define GETCOEFFBILL(df, buf) { \
564 sourlo=DFWORD(df, 1); \
568 sourhi=DFWORD(df, 0); \
574 #define GETCOEFFBILL(df, buf) { \
576 sourlo=DFWORD(df, 3); \
580 sourml=DFWORD(df, 2); \
584 sourmh=DFWORD(df, 1); \
588 sourhi=DFWORD(df, 0); \
595 /* Macros to decode the coefficient in a finite decFloat *df into */
602 #define GETCOEFFTHOU(df, buf) { \
603 uInt sourhi=DFWORD(df, 0); \
609 #define GETCOEFFTHOU(df, buf) { \
611 sourlo=DFWORD(df, 1); \
615 sourhi=DFWORD(df, 0); \
621 #define GETCOEFFTHOU(df, buf) { \
623 sourlo=DFWORD(df, 3); \
627 sourml=DFWORD(df, 2); \
631 sourmh=DFWORD(df, 1); \
635 sourhi=DFWORD(df, 0); \
642 /* Macros to decode the coefficient in a finite decFloat *df and */
647 #define ADDCOEFFTHOU(df, buf) { \
648 uInt sourhi=DFWORD(df, 0); \
656 #define ADDCOEFFTHOU(df, buf) { \
658 sourlo=DFWORD(df, 1); \
665 sourhi=DFWORD(df, 0); \
673 #define ADDCOEFFTHOU(df, buf) { \
675 sourlo=DFWORD(df, 3); \
682 sourml=DFWORD(df, 2); \
689 sourmh=DFWORD(df, 1); \
696 sourhi=DFWORD(df, 0); \
707 #define DFSETNMAX(df) \
708 {DFWORD(df, 0)=0x77f3fcff;}
710 #define DFSETNMAX(df) \
711 {DFWORD(df, 0)=0x77fcff3f; \
712 DFWORD(df, 1)=0xcff3fcff;}
714 #define DFSETNMAX(df) \
715 {DFWORD(df, 0)=0x77ffcff3; \
716 DFWORD(df, 1)=0xfcff3fcf; \
717 DFWORD(df, 2)=0xf3fcff3f; \
718 DFWORD(df, 3)=0xcff3fcff;}