Lines Matching refs:result
225 bc_num first, second, result; in PHP_FUNCTION() local
239 bc_init_num(&result TSRMLS_CC); in PHP_FUNCTION()
242 bc_add (first, second, &result, scale); in PHP_FUNCTION()
244 if (result->n_scale > scale) { in PHP_FUNCTION()
245 result = split_bc_num(result); in PHP_FUNCTION()
246 result->n_scale = scale; in PHP_FUNCTION()
249 Z_STRVAL_P(return_value) = bc_num2str(result); in PHP_FUNCTION()
254 bc_free_num(&result); in PHP_FUNCTION()
266 bc_num first, second, result; in PHP_FUNCTION() local
279 bc_init_num(&result TSRMLS_CC); in PHP_FUNCTION()
282 bc_sub (first, second, &result, scale); in PHP_FUNCTION()
284 if (result->n_scale > scale) { in PHP_FUNCTION()
285 result = split_bc_num(result); in PHP_FUNCTION()
286 result->n_scale = scale; in PHP_FUNCTION()
289 Z_STRVAL_P(return_value) = bc_num2str(result); in PHP_FUNCTION()
294 bc_free_num(&result); in PHP_FUNCTION()
306 bc_num first, second, result; in PHP_FUNCTION() local
319 bc_init_num(&result TSRMLS_CC); in PHP_FUNCTION()
322 bc_multiply (first, second, &result, scale TSRMLS_CC); in PHP_FUNCTION()
324 if (result->n_scale > scale) { in PHP_FUNCTION()
325 result = split_bc_num(result); in PHP_FUNCTION()
326 result->n_scale = scale; in PHP_FUNCTION()
329 Z_STRVAL_P(return_value) = bc_num2str(result); in PHP_FUNCTION()
334 bc_free_num(&result); in PHP_FUNCTION()
346 bc_num first, second, result; in PHP_FUNCTION() local
359 bc_init_num(&result TSRMLS_CC); in PHP_FUNCTION()
363 switch (bc_divide(first, second, &result, scale TSRMLS_CC)) { in PHP_FUNCTION()
365 if (result->n_scale > scale) { in PHP_FUNCTION()
366 result = split_bc_num(result); in PHP_FUNCTION()
367 result->n_scale = scale; in PHP_FUNCTION()
369 Z_STRVAL_P(return_value) = bc_num2str(result); in PHP_FUNCTION()
380 bc_free_num(&result); in PHP_FUNCTION()
391 bc_num first, second, result; in PHP_FUNCTION() local
399 bc_init_num(&result TSRMLS_CC); in PHP_FUNCTION()
403 switch (bc_modulo(first, second, &result, 0 TSRMLS_CC)) { in PHP_FUNCTION()
405 Z_STRVAL_P(return_value) = bc_num2str(result); in PHP_FUNCTION()
416 bc_free_num(&result); in PHP_FUNCTION()
427 bc_num first, second, mod, result; in PHP_FUNCTION() local
438 bc_init_num(&result TSRMLS_CC); in PHP_FUNCTION()
445 if (bc_raisemod(first, second, mod, &result, scale_int TSRMLS_CC) != -1) { in PHP_FUNCTION()
446 if (result->n_scale > scale_int) { in PHP_FUNCTION()
447 result = split_bc_num(result); in PHP_FUNCTION()
448 result->n_scale = scale_int; in PHP_FUNCTION()
450 Z_STRVAL_P(return_value) = bc_num2str(result); in PHP_FUNCTION()
460 bc_free_num(&result); in PHP_FUNCTION()
472 bc_num first, second, result; in PHP_FUNCTION() local
485 bc_init_num(&result TSRMLS_CC); in PHP_FUNCTION()
488 bc_raise (first, second, &result, scale TSRMLS_CC); in PHP_FUNCTION()
490 if (result->n_scale > scale) { in PHP_FUNCTION()
491 result = split_bc_num(result); in PHP_FUNCTION()
492 result->n_scale = scale; in PHP_FUNCTION()
495 Z_STRVAL_P(return_value) = bc_num2str(result); in PHP_FUNCTION()
500 bc_free_num(&result); in PHP_FUNCTION()
512 bc_num result; in PHP_FUNCTION() local
523 bc_init_num(&result TSRMLS_CC); in PHP_FUNCTION()
524 php_str2num(&result, left TSRMLS_CC); in PHP_FUNCTION()
526 if (bc_sqrt (&result, scale TSRMLS_CC) != 0) { in PHP_FUNCTION()
527 if (result->n_scale > scale) { in PHP_FUNCTION()
528 result = split_bc_num(result); in PHP_FUNCTION()
529 result->n_scale = scale; in PHP_FUNCTION()
531 Z_STRVAL_P(return_value) = bc_num2str(result); in PHP_FUNCTION()
538 bc_free_num(&result); in PHP_FUNCTION()