Skip to content

[ntuple] fix bit truncation on big endian#22358

Merged
jblomer merged 1 commit into
root-project:masterfrom
jblomer:ntuple-fix-bigendian
May 22, 2026
Merged

[ntuple] fix bit truncation on big endian#22358
jblomer merged 1 commit into
root-project:masterfrom
jblomer:ntuple-fix-bigendian

Conversation

@jblomer
Copy link
Copy Markdown
Contributor

@jblomer jblomer commented May 20, 2026

Moves the endianess handling inside BitPacking::[Pack|Unpack]Bits. Fixes truncated and quantized real values on big endian architectures.

Remaining open point from #10409 (comment)

Verified on POWER8 using the RNTuple validation suite.

@jblomer jblomer requested review from hahnjo and silverweed May 20, 2026 20:14
@jblomer jblomer self-assigned this May 20, 2026
@jblomer jblomer force-pushed the ntuple-fix-bigendian branch from 3853662 to 16464fa Compare May 20, 2026 20:19
Moves the endianess handling inside BitPacking::[Pack|Unpack]Bits.
Fixes truncated and quantized real values on big endian architectures.
@jblomer jblomer requested review from enirolf and pcanal May 20, 2026 20:49
@github-actions
Copy link
Copy Markdown

Test Results

    22 files      22 suites   3d 9h 27m 47s ⏱️
 3 857 tests  3 857 ✅ 0 💤 0 ❌
76 170 runs  76 170 ✅ 0 💤 0 ❌

Results for commit 16464fa.

Copy link
Copy Markdown
Member

@hahnjo hahnjo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with the discussion offline that it is already byte-swapped, we "only" need to memcpy to the right place.

@jblomer jblomer merged commit 6e9d145 into root-project:master May 22, 2026
33 checks passed
@jblomer
Copy link
Copy Markdown
Contributor Author

jblomer commented May 22, 2026

/backport to 6.40

@jblomer jblomer deleted the ntuple-fix-bigendian branch May 22, 2026 12:57
@root-project-bot
Copy link
Copy Markdown

Preparing to backport PR #22358 to branch 6.40 requested by jblomer

@root-project-bot
Copy link
Copy Markdown

This PR has been backported to branch 6.40: #22390

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants