diff options
author | Robert Dubner <rdubner@symas.com> | 2025-08-12 22:13:59 -0400 |
---|---|---|
committer | Robert Dubner <rdubner@symas.com> | 2025-08-12 22:23:47 -0400 |
commit | 67e0490922691305699fb17922e44bce304e0505 (patch) | |
tree | c4a8de67694e6c086127bd3501fc90f70160d7c0 /libjava/java/net/URLStreamHandler.java | |
parent | f622df9af2e7c1da35cf0c9b895dacc1fa75107a (diff) | |
download | gcc-67e0490922691305699fb17922e44bce304e0505.zip gcc-67e0490922691305699fb17922e44bce304e0505.tar.gz gcc-67e0490922691305699fb17922e44bce304e0505.tar.bz2 |
cobol: Implement faster zoned decimal to binary conversion.
Replace " value *= 10; value += digit" routines with a new one that does two
digits at a time and avoids __int128 calculations until they are necessary.
These changes also clean up the conversion behavior when a digit is not valid.
gcc/cobol/ChangeLog:
* genutil.cc (get_binary_value): Use the new routine.
libgcobol/ChangeLog:
* libgcobol.cc (int128_to_field): Use the new routine.
(get_binary_value_local): Use the new routine.
(format_for_display_internal): Formatting.
(__gg__get_file_descriptor): Likewise.
* stringbin.cc (string_from_combined): Formatting.
(packed_from_combined): Likewise.
(int_from_string): New routine.
(__gg__numeric_display_to_binary): Likewise.
* stringbin.h (__gg__numeric_display_to_binary): Likewise.
Diffstat (limited to 'libjava/java/net/URLStreamHandler.java')
0 files changed, 0 insertions, 0 deletions