Lines Matching refs:result

232 	bc_num first, second, result;  in PHP_FUNCTION()  local
248 bc_init_num(&result); in PHP_FUNCTION()
251 bc_add (first, second, &result, scale); in PHP_FUNCTION()
253 if (result->n_scale > scale) { in PHP_FUNCTION()
254 result = split_bc_num(result); in PHP_FUNCTION()
255 result->n_scale = scale; in PHP_FUNCTION()
258 RETVAL_STR(bc_num2str(result)); in PHP_FUNCTION()
261 bc_free_num(&result); in PHP_FUNCTION()
272 bc_num first, second, result; in PHP_FUNCTION() local
288 bc_init_num(&result); in PHP_FUNCTION()
291 bc_sub (first, second, &result, scale); in PHP_FUNCTION()
293 if (result->n_scale > scale) { in PHP_FUNCTION()
294 result = split_bc_num(result); in PHP_FUNCTION()
295 result->n_scale = scale; in PHP_FUNCTION()
298 RETVAL_STR(bc_num2str(result)); in PHP_FUNCTION()
301 bc_free_num(&result); in PHP_FUNCTION()
312 bc_num first, second, result; in PHP_FUNCTION() local
328 bc_init_num(&result); in PHP_FUNCTION()
331 bc_multiply (first, second, &result, scale); in PHP_FUNCTION()
333 if (result->n_scale > scale) { in PHP_FUNCTION()
334 result = split_bc_num(result); in PHP_FUNCTION()
335 result->n_scale = scale; in PHP_FUNCTION()
338 RETVAL_STR(bc_num2str(result)); in PHP_FUNCTION()
341 bc_free_num(&result); in PHP_FUNCTION()
352 bc_num first, second, result; in PHP_FUNCTION() local
368 bc_init_num(&result); in PHP_FUNCTION()
372 switch (bc_divide(first, second, &result, scale)) { in PHP_FUNCTION()
374 if (result->n_scale > scale) { in PHP_FUNCTION()
375 result = split_bc_num(result); in PHP_FUNCTION()
376 result->n_scale = scale; in PHP_FUNCTION()
378 RETVAL_STR(bc_num2str(result)); in PHP_FUNCTION()
387 bc_free_num(&result); in PHP_FUNCTION()
398 bc_num first, second, result; in PHP_FUNCTION() local
414 bc_init_num(&result); in PHP_FUNCTION()
418 switch (bc_modulo(first, second, &result, scale)) { in PHP_FUNCTION()
420 if (result->n_scale > scale) { in PHP_FUNCTION()
421 result = split_bc_num(result); in PHP_FUNCTION()
422 result->n_scale = scale; in PHP_FUNCTION()
424 RETVAL_STR(bc_num2str(result)); in PHP_FUNCTION()
433 bc_free_num(&result); in PHP_FUNCTION()
443 bc_num first, second, mod, result; in PHP_FUNCTION() local
458 bc_init_num(&result); in PHP_FUNCTION()
465 if (bc_raisemod(first, second, mod, &result, scale_int) != -1) { in PHP_FUNCTION()
466 if (result->n_scale > scale_int) { in PHP_FUNCTION()
467 result = split_bc_num(result); in PHP_FUNCTION()
468 result->n_scale = scale_int; in PHP_FUNCTION()
470 RETVAL_STR(bc_num2str(result)); in PHP_FUNCTION()
478 bc_free_num(&result); in PHP_FUNCTION()
489 bc_num first, second, result; in PHP_FUNCTION() local
505 bc_init_num(&result); in PHP_FUNCTION()
508 bc_raise (first, second, &result, scale); in PHP_FUNCTION()
510 if (result->n_scale > scale) { in PHP_FUNCTION()
511 result = split_bc_num(result); in PHP_FUNCTION()
512 result->n_scale = scale; in PHP_FUNCTION()
515 RETVAL_STR(bc_num2str(result)); in PHP_FUNCTION()
518 bc_free_num(&result); in PHP_FUNCTION()
529 bc_num result; in PHP_FUNCTION() local
542 bc_init_num(&result); in PHP_FUNCTION()
543 php_str2num(&result, ZSTR_VAL(left)); in PHP_FUNCTION()
545 if (bc_sqrt (&result, scale) != 0) { in PHP_FUNCTION()
546 if (result->n_scale > scale) { in PHP_FUNCTION()
547 result = split_bc_num(result); in PHP_FUNCTION()
548 result->n_scale = scale; in PHP_FUNCTION()
550 RETVAL_STR(bc_num2str(result)); in PHP_FUNCTION()
555 bc_free_num(&result); in PHP_FUNCTION()