Home
last modified time | relevance | path

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

/external/icu/icu4c/source/i18n/
DdecNumber.c3105 Int todrop=ideal-a->exponent; /* most that can be dropped */ in uprv_decNumberSquareRoot() local
3106 if (todrop<0) status|=DEC_Rounded; /* ideally would add 0s */ in uprv_decNumberSquareRoot()
3111 if (todrop>maxdrop && set->clamp) { /* apply clamping */ in uprv_decNumberSquareRoot()
3112 todrop=maxdrop; in uprv_decNumberSquareRoot()
3115 if (dropped<todrop) { /* clamp to those available */ in uprv_decNumberSquareRoot()
3116 todrop=dropped; in uprv_decNumberSquareRoot()
3119 if (todrop>0) { /* have some to drop */ in uprv_decNumberSquareRoot()
3120 decShiftToLeast(a->lsu, D2U(a->digits), todrop); in uprv_decNumberSquareRoot()
3121 a->exponent+=todrop; /* maintain numerical value */ in uprv_decNumberSquareRoot()
3122 a->digits-=todrop; /* new length */ in uprv_decNumberSquareRoot()