Lines Matching refs:quotient
244 SecUnsignedInt32 quotient; local
248 quotient = (val32 >> 1U) + (val32 >> 2U); /* Fast div magic 2 */
249 quotient = quotient + (quotient >> 4U); /* Fast div magic 4 */
250 quotient = quotient + (quotient >> 8U); /* Fast div magic 8 */
251 quotient = quotient + (quotient >> 16U); /* Fast div magic 16 */
252 quotient = quotient >> 3U; /* Fast div magic 3 */
253 remain = val32 - SECUREC_MUL_TEN(quotient);
254 val32 = (remain > 9U) ? (quotient + 1U) : quotient; /* Fast div magic 9 */
293 * Calculation divisor multiply 0xcccccccccccccccdULL, resultHi64 >> 3 as quotient
295 SECUREC_INLINE void SecU64Div10(SecUnsignedInt64 divisor, SecUnsignedInt64 *quotient, SecUnsignedIn… argument
309 *quotient = resultHi64 >> 3U; /* Fast divide 10 magic numbers 3 */
310 *residue = (SecUnsignedInt32)(divisor - ((*quotient) * 10)); /* Quotient mul 10 */
318 SecUnsignedInt64 *quotient, SecUnsignedInt32 *residue) argument
322 SecU64Div10(divisor, quotient, residue);
325 *quotient = SECUREC_DIV_QUOTIENT_HEX(divisor);
329 *quotient = SECUREC_DIV_QUOTIENT_OCTAL(divisor);
342 SecUnsignedInt64 quotient = 0; local
343 if (SecU64Div32(val64, (SecUnsignedInt32)attr->radix, "ient, &digit) != 0) {
349 val64 = quotient;
362 SecUnsignedInt64 quotient = 0; local
364 SecU64Div10(val64, "ient, &digit);
368 val64 = quotient;