Micro-optimize num2str()
authorBart Van Assche <bvanassche@acm.org>
Sun, 26 Aug 2018 15:54:19 +0000 (08:54 -0700)
committerBart Van Assche <bvanassche@acm.org>
Fri, 7 Sep 2018 14:21:10 +0000 (07:21 -0700)
commit3b6879b271835dabefbe7bc626cb24ecb96547c1
tree11ec57070ef2849d1dff25e2260d4e189004d39d
parentc7d23f4bd20fcb255619508210ed91f185f0ff6f
Micro-optimize num2str()

Instead of selecting an element from the thousand[] array several times,
perform the choice between 1000 and 1024 once. This patch does not change
any functionality.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
lib/num2str.c