Lines Matching full:fcontext
72 uprv_decContextDefault(&fContext, DEC_INIT_BASE);
73 fContext.traps = 0;
74 uprv_decContextSetRounding(&fContext, DEC_ROUND_HALF_EVEN);
75 fContext.digits = fStorage.getCapacity();
107 uprv_memcpy(&fContext, &other.fContext, sizeof(decContext));
112 // Always reset the fContext.digits, even if fDecNumber was not reallocated,
113 // because above we copied fContext from other.fContext.
114 fContext.digits = fStorage.getCapacity();
162 int32_t savedDigits = fContext.digits;
163 fContext.digits = 1;
164 uprv_decNumberCompare(&result, this->fDecNumber, other.fDecNumber, &fContext);
165 fContext.digits = savedDigits;
182 uprv_decNumberReduce(fDecNumber, fDecNumber, &fContext);
200 uprv_decContextSetRounding(&fContext, DEC_ROUND_HALF_EVEN);
272 r = uprv_decContextGetRounding(&fContext);
274 uprv_decContextSetRounding(&fContext, r);
317 U_ASSERT(c <= fContext.digits);
387 if (nDigits < fContext.digits) {
508 uprv_decNumberQuantize(copy.fDecNumber, copy.fDecNumber, zero.fDecNumber, &fContext);
509 result = uprv_decNumberToInt32(copy.fDecNumber, &fContext);
511 result = uprv_decNumberToInt32(fDecNumber, &fContext);
710 uprv_decNumberFromString(fDecNumber, str, &fContext);
769 if (numDigits > fContext.digits) {
770 // fContext.digits == fStorage.getCapacity()
777 fContext.digits = numDigits;
780 fContext.status = 0;
781 uprv_decNumberFromString(fDecNumber, source.data(), &fContext);
782 if ((fContext.status & DEC_Conversion_syntax) != 0) {
824 uprv_decNumberFromString(fDecNumber, rep, &fContext);
839 fContext.status = 0;
841 if (requiredDigits > fContext.digits) {
846 uprv_decNumberMultiply(fDecNumber, fDecNumber, other.fDecNumber, &fContext);
863 uprv_decNumberDivide(fDecNumber, fDecNumber, other.fDecNumber, &fContext);
871 * amount. Never reduce it. Available size is kept in fContext.digits.
888 if (requestedCapacity > fContext.digits) {
894 fContext.digits = requestedCapacity;
909 int32_t savedDigits = fContext.digits;
910 fContext.digits = maximumDigits;
911 uprv_decNumberPlus(fDecNumber, fDecNumber, &fContext);
912 fContext.digits = savedDigits;
929 uprv_decNumberQuantize(fDecNumber, fDecNumber, &scale, &fContext);
938 uprv_decNumberToIntegralValue(fDecNumber, fDecNumber, &fContext);