Home
last modified time | relevance | path

Searched refs:DECDPUN (Results 1 – 7 of 7) sorted by relevance

/openbmc/qemu/libdecnumber/dpd/
H A Ddecimal64.c159 if (DECDPUN==3 && pad==0) { in decimal64FromNumber()
553 #if DECDPUN==3
566 #define DECMAXUNITS ((DECMAX754+DECDPUN-1)/DECDPUN)
609 #if DECDPUN<=4
626 #if DECDPUN!=3 /* not fast path */ in decDigitsToDPD()
640 cut=DECDPUN-MSUDIGITS(shift); /* where to slice */ in decDigitsToDPD()
648 #if DECDPUN<=4 in decDigitsToDPD()
657 next=rem*DECPOWERS[DECDPUN-cut]; /* save remainder for next Unit */ in decDigitsToDPD()
671 #if DECDPUN!=3 /* not fast path */ in decDigitsToDPD()
678 #if DECDPUN==3 /* fast path, 3-at-a-time */ in decDigitsToDPD()
[all …]
H A Ddecimal32.c151 if (DECDPUN==3 && pad==0) { in decimal32FromNumber()
/openbmc/qemu/include/libdecnumber/
H A DdecNumberLocal.h175 #if DECDPUN==1
181 #elif DECDPUN==2
186 #elif DECDPUN==3
191 #elif DECDPUN==4
196 #elif DECDPUN==5
201 #elif DECDPUN==6
206 #elif DECDPUN==7
211 #elif DECDPUN==8
216 #elif DECDPUN==9
221 #elif defined(DECDPUN)
[all …]
H A Ddconfig.h36 #ifndef DECDPUN
37 #define DECDPUN 3 macro
H A DdecNumber.h56 #define DECDPUN 3 /* DECimal Digits Per UNit [must be >0 */ macro
69 #if DECDPUN<=2
71 #elif DECDPUN<=4
77 #define DECNUMUNITS ((DECNUMDIGITS+DECDPUN-1)/DECDPUN)
/openbmc/qemu/libdecnumber/
H A DdecNumber.c204 #if DECDPUN<=4
216 #error decNumber.c: DECUSE64 must be 1 when DECDPUN>4
385 #if DECDPUN>1 /* split to higher */ in decNumberToInt32()
391 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in decNumberToInt32()
421 #if DECDPUN>1 /* split to higher */ in decNumberToUInt32()
427 for (d=DECDPUN; d<dn->digits; up++, d+=DECDPUN) hi+=*up*powers[d-1]; in decNumberToUInt32()
524 for (d = 1; d <= dn->digits; up++, d += DECDPUN) { in decNumberIntegralToInt64()
571 for (d = (dn->digits - 1) / DECDPUN; d >= 0; d--) { in decNumberIntegralToInt128()
666 #if DECDPUN>1 in decNumberFromString()
828 #if DECDPUN>1 in decNumberFromString()
[all …]
/openbmc/qemu/target/ppc/
H A Ddfp_helper.c415 assert(DECDPUN == 3); in dfp_get_digit()
416 int unit = n / DECDPUN; in dfp_get_digit()
417 int dig = n % DECDPUN; in dfp_get_digit()