Lines Matching defs:bcd
2535 /* start: 00a bcd efg hij klm npq */
3477 /* bcd is the uInt array that will receive dn->digits BCD bytes, */
3479 /* returns bcd */
3481 /* bcd must have at least dn->digits bytes. No error is possible; if */
3484 U_CAPI uByte * U_EXPORT2 uprv_decNumberGetBCD(const decNumber *dn, uByte *bcd) {
3485 uByte *ub=bcd+dn->digits-1; /* -> lsd */
3489 for (; ub>=bcd; ub--, up++) *ub=*up;
3493 for (; ub>=bcd; ub--) {
3503 return bcd;
3509 /* bcd is the uInt array that will source n BCD bytes, most- */
3511 /* n is the number of digits in the source BCD array (bcd) */
3516 /* and bcd[0] zero. */
3518 U_CAPI decNumber * U_EXPORT2 uprv_decNumberSetBCD(decNumber *dn, const uByte *bcd, uInt n) {
3520 const uByte *ub=bcd; /* -> source msd */
3523 for (; ub<bcd+n; ub++, up--) *up=*ub;