Skip to content

[mypyc] Add i32 and i64 read/write functions to librt.strings#20757

Merged
JukkaL merged 12 commits intomasterfrom
librt-strings-read-write-2
Feb 6, 2026
Merged

[mypyc] Add i32 and i64 read/write functions to librt.strings#20757
JukkaL merged 12 commits intomasterfrom
librt-strings-read-write-2

Conversation

@JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Feb 6, 2026

Also fix a bug related to overlapping error values. Refactor code and tests. Use memcpy() for unaligned access instead of accessing invidual bytes, since this apparently works efficiently with more C compilers.

I'll add big endian variants in a follow-up PR.

I used coding agent assist, but used it to make small incremental changes.

Follow-up to #20745.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JukkaL JukkaL changed the title [mypyc] Add 32-bit and 64-bit read/write functions to librt.strings [mypyc] Add i32 and i64 read/write functions to librt.strings Feb 6, 2026
@JukkaL JukkaL merged commit e2923a1 into master Feb 6, 2026
23 checks passed
@JukkaL JukkaL deleted the librt-strings-read-write-2 branch February 6, 2026 13:08
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