Lines Matching refs:result
210 bc_num first, second, result; in PHP_FUNCTION() local
224 bc_init_num(&result TSRMLS_CC); in PHP_FUNCTION()
227 bc_add (first, second, &result, scale); in PHP_FUNCTION()
229 if (result->n_scale > scale) { in PHP_FUNCTION()
230 result->n_scale = scale; in PHP_FUNCTION()
233 Z_STRVAL_P(return_value) = bc_num2str(result); in PHP_FUNCTION()
238 bc_free_num(&result); in PHP_FUNCTION()
250 bc_num first, second, result; in PHP_FUNCTION() local
263 bc_init_num(&result TSRMLS_CC); in PHP_FUNCTION()
266 bc_sub (first, second, &result, scale); in PHP_FUNCTION()
268 if (result->n_scale > scale) { in PHP_FUNCTION()
269 result->n_scale = scale; in PHP_FUNCTION()
272 Z_STRVAL_P(return_value) = bc_num2str(result); in PHP_FUNCTION()
277 bc_free_num(&result); in PHP_FUNCTION()
289 bc_num first, second, result; in PHP_FUNCTION() local
302 bc_init_num(&result TSRMLS_CC); in PHP_FUNCTION()
305 bc_multiply (first, second, &result, scale TSRMLS_CC); in PHP_FUNCTION()
307 if (result->n_scale > scale) { in PHP_FUNCTION()
308 result->n_scale = scale; in PHP_FUNCTION()
311 Z_STRVAL_P(return_value) = bc_num2str(result); in PHP_FUNCTION()
316 bc_free_num(&result); in PHP_FUNCTION()
328 bc_num first, second, result; in PHP_FUNCTION() local
341 bc_init_num(&result TSRMLS_CC); in PHP_FUNCTION()
345 switch (bc_divide(first, second, &result, scale TSRMLS_CC)) { in PHP_FUNCTION()
347 if (result->n_scale > scale) { in PHP_FUNCTION()
348 result->n_scale = scale; in PHP_FUNCTION()
350 Z_STRVAL_P(return_value) = bc_num2str(result); in PHP_FUNCTION()
361 bc_free_num(&result); in PHP_FUNCTION()
372 bc_num first, second, result; in PHP_FUNCTION() local
380 bc_init_num(&result TSRMLS_CC); in PHP_FUNCTION()
384 switch (bc_modulo(first, second, &result, 0 TSRMLS_CC)) { in PHP_FUNCTION()
386 Z_STRVAL_P(return_value) = bc_num2str(result); in PHP_FUNCTION()
397 bc_free_num(&result); in PHP_FUNCTION()
408 bc_num first, second, mod, result; in PHP_FUNCTION() local
419 bc_init_num(&result TSRMLS_CC); in PHP_FUNCTION()
426 if (bc_raisemod(first, second, mod, &result, scale_int TSRMLS_CC) != -1) { in PHP_FUNCTION()
427 if (result->n_scale > scale) { in PHP_FUNCTION()
428 result->n_scale = scale; in PHP_FUNCTION()
430 Z_STRVAL_P(return_value) = bc_num2str(result); in PHP_FUNCTION()
440 bc_free_num(&result); in PHP_FUNCTION()
452 bc_num first, second, result; in PHP_FUNCTION() local
465 bc_init_num(&result TSRMLS_CC); in PHP_FUNCTION()
468 bc_raise (first, second, &result, scale TSRMLS_CC); in PHP_FUNCTION()
470 if (result->n_scale > scale) { in PHP_FUNCTION()
471 result->n_scale = scale; in PHP_FUNCTION()
474 Z_STRVAL_P(return_value) = bc_num2str(result); in PHP_FUNCTION()
479 bc_free_num(&result); in PHP_FUNCTION()
491 bc_num result; in PHP_FUNCTION() local
502 bc_init_num(&result TSRMLS_CC); in PHP_FUNCTION()
503 php_str2num(&result, left TSRMLS_CC); in PHP_FUNCTION()
505 if (bc_sqrt (&result, scale TSRMLS_CC) != 0) { in PHP_FUNCTION()
506 if (result->n_scale > scale) { in PHP_FUNCTION()
507 result->n_scale = scale; in PHP_FUNCTION()
509 Z_STRVAL_P(return_value) = bc_num2str(result); in PHP_FUNCTION()
516 bc_free_num(&result); in PHP_FUNCTION()