-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improved performance for comparisons between numeric DISPLAY, numeric…
… DISPLAY to literal, as well as BCD + ZERO and to other (and BCD zero) co-authored by @chaat libcob: * numeric.c (cob_numdisp_cmp): new version cob_numeric_display_cmp that does NOT do any conversion to integer formats, also it does not use any temporary buffers to do the compare which should improve its performance * numeric.c (cob_numeric_display_cmp_zero, cob_bcd_cmp_zero), common.h: new functions for optimized check of common compare * numeric.c (cob_set_packed_u64): restore cleanup code for padding byte, but only execute it if we wrote to first data position cobc/typeck.c: * (cb_build_optim_cond): generate calls to new functions for numeric zero compare for USAGE DISPLAY and PACKED, as well as comparison between two USAGE DISPLAY or USAGE DISPLAY to literal * (validate_move): internally change literals like 0.00 to zero constant allowing use of optimized MOVE code
sf-mensch
committed
Jan 28, 2024
1 parent
12e31f9
commit 47ffbd8
Showing
6 changed files
with
402 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters