Lines Matching full:bcd
2522 /* start: 00a bcd efg hij klm npq */
3464 /* bcd is the uInt array that will receive dn->digits BCD bytes, */
3466 /* returns bcd */
3468 /* bcd must have at least dn->digits bytes. No error is possible; if */
3471 U_CAPI uByte * U_EXPORT2 uprv_decNumberGetBCD(const decNumber *dn, uByte *bcd) {
3472 uByte *ub=bcd+dn->digits-1; /* -> lsd */
3476 for (; ub>=bcd; ub--, up++) *ub=*up;
3480 for (; ub>=bcd; ub--) {
3490 return bcd;
3496 /* bcd is the uInt array that will source n BCD bytes, most- */
3498 /* n is the number of digits in the source BCD array (bcd) */
3503 /* and bcd[0] zero. */
3505 U_CAPI decNumber * U_EXPORT2 uprv_decNumberSetBCD(decNumber *dn, const uByte *bcd, uInt n) {
3507 const uByte *ub=bcd; /* -> source msd */
3510 for (; ub<bcd+n; ub++, up--) *up=*ub;