bc: convert two macros to functions, unwing one complex max(a,min(b,c))
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 7 Dec 2018 15:22:45 +0000 (16:22 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 7 Dec 2018 15:22:45 +0000 (16:22 +0100)
commit2d615fee3879f7eec6fd51c468ce074cc6e7a47c
treedbd4e411ee422765d09f748168a46fb8e401d1a0
parent64074a1767f69b186ce58cafb7eb95bc1aa0dda9
bc: convert two macros to functions, unwing one complex max(a,min(b,c))

function                                             old     new   delta
BC_NUM_AREQ                                            -      45     +45
BC_NUM_MREQ                                            -      33     +33
bc_num_rem                                           104      91     -13
bc_num_divmod                                        168     155     -13
bc_num_d                                             584     569     -15
bc_num_mul                                            80      62     -18
bc_num_mod                                            80      62     -18
bc_num_div                                            80      62     -18
bc_num_sub                                           112      77     -35
bc_num_add                                           112      77     -35
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/8 up/down: 78/-165)           Total: -87 bytes
   text    data     bss     dec     hex filename
 985526     485    7296  993307   f281b busybox_old
 985439     485    7296  993220   f27c4 busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/bc.c