Skip to content

Canonicalize signed zero in effective effort - #1792

Merged
ryanbr merged 1 commit into
ryanbr:mainfrom
bhelm:fix/issue-37-signed-zero
Sep 1, 2026
Merged

ryanbr merged 1 commit into
ryanbr:mainfrom
bhelm:fix/issue-37-signed-zero

Conversation

@bhelm

@bhelm bhelm commented Sep 1, 2026

Copy link
Copy Markdown

Canonicalize the both-present signed-zero case to positive zero in the mirrored Swift and Kotlin analytics implementations. This removes the platform-dependent tie behavior of Swift.max and kotlin.math.max while preserving nil passthrough, nonzero ordering/equality, infinities, and NaN operand-order behavior.\n\nAdds mirrored raw-bit regression coverage for all four signed-zero operand combinations plus preservation cases.\n\nRelated issue: https://github.com/bhelm/noop/issues/37\n\nVerification:\n- Swift EffectiveEffortTests: 10 tests, 0 failures\n- Android EffectiveEffortTest: BUILD SUCCESSFUL\n- git diff --check\n- Two independent reviews: no P0/P1 findings

@ryanbr
ryanbr merged commit 08c0f82 into ryanbr:main Sep 1, 2026
15 checks passed
@bhelm
bhelm deleted the fix/issue-37-signed-zero branch September 15, 2026 22:35
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.

2 participants