Skip to content

Make sure we don't allocate VMBigInteger objects for values fitting into the small int range#75

Merged
smarr merged 6 commits intoSOM-st:masterfrom
smarr:big-int-reduction-to-small-int
Aug 17, 2025
Merged

Make sure we don't allocate VMBigInteger objects for values fitting into the small int range#75
smarr merged 6 commits intoSOM-st:masterfrom
smarr:big-int-reduction-to-small-int

Conversation

@smarr
Copy link
Member

@smarr smarr commented Aug 17, 2025

This is the follow up to #74 and makes sure that we don't have VMBigInteger objects that could just be tagged ints.

The PR also fixes a typing issue with the relevant macros and has a few other minor improvements.

smarr added 6 commits August 17, 2025 10:07
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
Signed-off-by: Stefan Marr <git@stefan-marr.de>
- need to be sure that what I compare is a int64_t
  if it would be a size_t, the range check would fail
- also update TAG_INTEGER under ADDITIONAL_ALLOCATION to match normal one

Signed-off-by: Stefan Marr <git@stefan-marr.de>
@smarr smarr merged commit 6b807e1 into SOM-st:master Aug 17, 2025
19 checks passed
@smarr smarr deleted the big-int-reduction-to-small-int branch August 17, 2025 10:31
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.

1 participant