]> granicus.if.org Git - php/commit
Optimize truncation to zero scale in bc_raisemod()
authorChristoph M. Becker <cmbecker69@gmx.de>
Sat, 9 Sep 2017 16:41:59 +0000 (18:41 +0200)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sat, 9 Sep 2017 16:41:59 +0000 (18:41 +0200)
commitd1e82b39e2c87961565da9f5b869829dd0da0437
treed482988fd34bbddf20b628a3746aac8957b0e40b
parent65b575134fe286b2ce8b23181eb70f0ecda5ac16
Optimize truncation to zero scale in bc_raisemod()

There's no need to use a division by one to truncate to zero scale;
instead we introduce and use `_bc_truncate()`, what is more efficient.
ext/bcmath/libbcmath/src/raisemod.c