[php-src] PR #17987: ext/bcmath: Simplify `bc_divide()` code
| From: | SakiTakamachi | Date: | Fri, 07 Mar 2025 07:51:47 +0000 |
| Subject: | [php-src] PR #17987: ext/bcmath: Simplify `bc_divide()` code | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30984@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17987
Author: SakiTakamachi
While writing the code to make the
bc_num struct hold the data as
BC_VECTOR* instead of a char*, I realized that the code for
bc_divide() could be significantly simplified.
Unfortunately, I won't use the structure change because it slows things down, but I'll try
to simplify the code.
As you know, the code was too complicated and I didn't know where the bug was, so simplifying
the code is a good thing.