Skip to content

[mypyc] Native int primitives #12973

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Jun 16, 2022
Merged

[mypyc] Native int primitives #12973

merged 23 commits into from
Jun 16, 2022

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Jun 11, 2022

Add various C primitives that will be used to support native ints.

The primitives aren't used for anything yet. I'll prepare follow-up PRs
that use the primitives and include tests. I'm splitting these into a
separate PR to make this easier to review. All of these are tested in
my local branch, at least to a basic level.

Most of these are fairly straightforward, but we need to jump through
some hoops to make the semantics of // and % operators compatible
with Python semantics when using negative operands.

Work on mypyc/mypyc#837.

@JukkaL JukkaL requested a review from jhance June 13, 2022 16:57
@JukkaL JukkaL merged commit eb1b1e0 into master Jun 16, 2022
@JukkaL JukkaL deleted the native-int-primitives branch June 16, 2022 17:42
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