Skip to content

refactor: consolidate duplicated utility algorithms - #26

Merged
rasros merged 1 commit into
mainfrom
codex/deduplicate-utility-internals
Nov 16, 2026
Merged

rasros merged 1 commit into
mainfrom
codex/deduplicate-utility-internals

Conversation

@rasros

@rasros rasros commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Repeated hash probing, packed-bit operations, and 128-bit division loops were maintained in several places. Reuse the existing primitive-key and packed-bit helpers, centralize bit counting, and share the unsigned division loop while preserving each division method's sign and rounding behavior. Public APIs and primitive storage remain unchanged.

Add regression coverage for duplicate keys in wrapped collision chains, packed-bit counts, and exact/floor division against arbitrary-precision arithmetic across signed limits.

Validation: ./gradlew :util:jvmTest :util:linuxX64Test lintDocs --offline passed (385 JVM tests and 367 Linux Native tests). GitHub CI is the merge gate.

@rasros
rasros merged commit a2aa662 into main Nov 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant