diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-26 21:17:12 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-26 21:17:12 +0100 |
commit | 2beb1f6fafc341f571501829fc17773f2e0ddbbf (patch) | |
tree | 129a2e16b33d8412630c673df5862e9d113798c4 | |
parent | 8af11087b20e2e9d19836a070ea460b7bec82a8f (diff) | |
download | busybox-w32-2beb1f6fafc341f571501829fc17773f2e0ddbbf.tar.gz busybox-w32-2beb1f6fafc341f571501829fc17773f2e0ddbbf.tar.bz2 busybox-w32-2beb1f6fafc341f571501829fc17773f2e0ddbbf.zip |
bc: use ALIGN1 where appropriate
text data bss dec hex filename
980138 485 7296 987919 f130f busybox_old
980128 485 7296 987909 f1305 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | miscutils/bc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c index af94981ec..9a0db2172 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c | |||
@@ -610,7 +610,7 @@ static ALWAYS_INLINE long lex_allowed_in_bc_expr(unsigned i) | |||
610 | 610 | ||
611 | // This is an array of data for operators that correspond to | 611 | // This is an array of data for operators that correspond to |
612 | // [XC_LEX_1st_op...] token types. | 612 | // [XC_LEX_1st_op...] token types. |
613 | static const uint8_t bc_parse_ops[] = { | 613 | static const uint8_t bc_parse_ops[] ALIGN1 = { |
614 | #define OP(p,l) ((int)(l) * 0x10 + (p)) | 614 | #define OP(p,l) ((int)(l) * 0x10 + (p)) |
615 | OP(1, false), // neg | 615 | OP(1, false), // neg |
616 | OP(6, true ), OP( 6, true ), OP( 6, true ), OP( 6, true ), OP( 6, true ), OP( 6, true ), // == <= >= != < > | 616 | OP(6, true ), OP( 6, true ), OP( 6, true ), OP( 6, true ), OP( 6, true ), OP( 6, true ), // == <= >= != < > |
@@ -631,7 +631,7 @@ static const uint8_t bc_parse_ops[] = { | |||
631 | #if ENABLE_DC | 631 | #if ENABLE_DC |
632 | static const //BcLexType - should be this type | 632 | static const //BcLexType - should be this type |
633 | uint8_t | 633 | uint8_t |
634 | dc_char_to_LEX[] = { | 634 | dc_char_to_LEX[] ALIGN1 = { |
635 | /* %&'( */ | 635 | /* %&'( */ |
636 | XC_LEX_OP_MODULUS, XC_LEX_INVALID, XC_LEX_INVALID, DC_LEX_LPAREN, | 636 | XC_LEX_OP_MODULUS, XC_LEX_INVALID, XC_LEX_INVALID, DC_LEX_LPAREN, |
637 | /* )*+, */ | 637 | /* )*+, */ |
@@ -674,7 +674,7 @@ dc_char_to_LEX[] = { | |||
674 | }; | 674 | }; |
675 | static const //BcInst - should be this type. Using signed narrow type since DC_INST_INVALID is -1 | 675 | static const //BcInst - should be this type. Using signed narrow type since DC_INST_INVALID is -1 |
676 | int8_t | 676 | int8_t |
677 | dc_LEX_to_INST[] = { // starts at XC_LEX_OP_POWER // corresponding XC/DC_LEX_xyz: | 677 | dc_LEX_to_INST[] ALIGN1 = { // starts at XC_LEX_OP_POWER // corresponding XC/DC_LEX_xyz: |
678 | XC_INST_POWER, XC_INST_MULTIPLY, // OP_POWER OP_MULTIPLY | 678 | XC_INST_POWER, XC_INST_MULTIPLY, // OP_POWER OP_MULTIPLY |
679 | XC_INST_DIVIDE, XC_INST_MODULUS, // OP_DIVIDE OP_MODULUS | 679 | XC_INST_DIVIDE, XC_INST_MODULUS, // OP_DIVIDE OP_MODULUS |
680 | XC_INST_PLUS, XC_INST_MINUS, // OP_PLUS OP_MINUS | 680 | XC_INST_PLUS, XC_INST_MINUS, // OP_PLUS OP_MINUS |
@@ -3329,7 +3329,7 @@ static BC_STATUS zdc_lex_token(void) | |||
3329 | BcParse *p = &G.prs; | 3329 | BcParse *p = &G.prs; |
3330 | static const //BcLexType - should be this type, but narrower type saves size: | 3330 | static const //BcLexType - should be this type, but narrower type saves size: |
3331 | uint8_t | 3331 | uint8_t |
3332 | dc_lex_regs[] = { | 3332 | dc_lex_regs[] ALIGN1 = { |
3333 | XC_LEX_OP_REL_EQ, XC_LEX_OP_REL_LE, XC_LEX_OP_REL_GE, XC_LEX_OP_REL_NE, | 3333 | XC_LEX_OP_REL_EQ, XC_LEX_OP_REL_LE, XC_LEX_OP_REL_GE, XC_LEX_OP_REL_NE, |
3334 | XC_LEX_OP_REL_LT, XC_LEX_OP_REL_GT, DC_LEX_SCOLON, DC_LEX_COLON, | 3334 | XC_LEX_OP_REL_LT, XC_LEX_OP_REL_GT, DC_LEX_SCOLON, DC_LEX_COLON, |
3335 | DC_LEX_ELSE, DC_LEX_LOAD, DC_LEX_LOAD_POP, DC_LEX_OP_ASSIGN, | 3335 | DC_LEX_ELSE, DC_LEX_LOAD, DC_LEX_LOAD_POP, DC_LEX_OP_ASSIGN, |