Skip to content

Numerical and mask correctness audit + fixes - #164

Merged
pbower merged 1 commit into
mainfrom
arith_correctness
Aug 14, 2026
Merged

Numerical and mask correctness audit + fixes#164
pbower merged 1 commit into
mainfrom
arith_correctness

Conversation

@pbower

@pbower pbower commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

Fixes integer division contract (as it was thresholding instead of returning floats for Scalar)
+ Small mask correctness bugfixes + improvements :

  1. Correct Value::len to report the window for an array view
  2. Add get_unchecked and Copy to BitmaskV
  3. Make guarantee_f64 return windowed null mask
  4. Document and pin integer floor division contract
  5. Ensure integer power validates its exponent and wraps on overflow
  6. Ensure Integer division rounds towards negative infinity
  7. Ensure scalar integer division is true division

@pbower
pbower force-pushed the arith_correctness branch 2 times, most recently from 79b66d1 to 33a2f9a Compare August 14, 2026 18:04
Fixes integer division contract (as it was thresholding instead of
returning floats for Scalar)
+ Small mask correctness bugfixes + improvements :

1. Correct Value::len to report the window for an array view
2. Add get_unchecked and Copy to BitmaskV
3. Make guarantee_f64 return windowed null mask
4. Document and pin integer floor division contract
5. Ensure integer power validates its exponent and wraps on overflow
6. Ensure Integer division rounds towards negative infinity
7. Ensure scalar integer division is true division
@pbower
pbower force-pushed the arith_correctness branch from 33a2f9a to c589768 Compare August 14, 2026 18:20
@pbower
pbower merged commit 8095d88 into main Aug 14, 2026
17 checks passed
@pbower
pbower deleted the arith_correctness branch August 14, 2026 18:22
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