]> git.ipfire.org Git - thirdparty/gcc.git/commit
cobol: Implement and use faster __gg__packed_to_binary() routine.
authorRobert Dubner <rdubner@symas.com>
Wed, 13 Aug 2025 15:17:05 +0000 (11:17 -0400)
committerRobert Dubner <rdubner@symas.com>
Wed, 13 Aug 2025 15:33:41 +0000 (11:33 -0400)
commit33e26a071f9daea57cb0d170d75d9fdf406040f1
tree509a7f822ed4ca079bc7f46a630162e7461b1509
parent236633fd74706f11044ea51306775a43c294da57
cobol: Implement and use faster __gg__packed_to_binary() routine.

The new routine uses table lookups more effectively, and avoids __int128
arithmetic until necessary.

gcc/cobol/ChangeLog:

* genutil.cc (get_binary_value): Use the new routine.

libgcobol/ChangeLog:

* libgcobol.cc (get_binary_value_local): Use the new routine.
* stringbin.cc (int_from_string): Removed.
(__gg__packed_to_binary): Implement new routine.
* stringbin.h (__gg__packed_to_binary): Likewise.
gcc/cobol/genutil.cc
libgcobol/libgcobol.cc
libgcobol/stringbin.cc
libgcobol/stringbin.h