Landing: cb237c2df0dc
Project / Subsystem
gcc / cobol
Date
2026-08-01
Author
Robert Dubner
Commit
cb237c2df0dce66e01985b627633233ec966c3eb
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- cobol
- patch_id
- —
- commit_hash
- cb237c2df0dce66e01985b627633233ec966c3eb
- source_type
- github
- headline
- Cobol: Refactor gmath.cc 'int256' structure.
- tldr
- Refactors Cobol's `int256` structure to include `rdigits` for fixed-point arithmetic.
- author
- Robert Dubner
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • cobol
- • fixed-point
- • refactoring
- • gmath
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-01T00:00:00.000Z
This commit refactors the int256 structure used in libgcobol’s gmath.cc for fixed-point arithmetic. The rdigits member, representing the number of digits to the right of the decimal point, is now integrated into the structure itself. This change simplifies operations by carrying the scale information with the number, reducing the need for separate scale management logic in functions like addition, subtraction, and multiplication.