summaryrefslogtreecommitdiff
path: root/prism/util/pm_integer.c
AgeCommit message (Collapse)Author
2024-08-26Shrink `pm_integer_t` (32 bytes → 24)Alexander Momchilov
2024-05-28[ruby/prism] Typo fix: poitive => positiveHerwin
https://github.com/ruby/prism/commit/d13a05252d
2024-05-24[ruby/prism] Remove various unused memsize infraKevin Newton
https://github.com/ruby/prism/commit/283938ed1f
2024-05-24[ruby/prism] Remove Debug::integer_parseKevin Newton
https://github.com/ruby/prism/commit/14e397598b
2024-05-21[ruby/prism] Reconfigure rationalsKevin Newton
This eliminates the subnode on RationalNode and replaces it with two integer fields, which represent the ratio for the rational. It also reduces those two integers if they both fit into 32 bits. Importantly, this PR does not implement bignum reduction. That's something I'd like to consider for the future, but it's simple enough for now to leave them unreduced, which makes it more useful than it used to be. https://github.com/ruby/prism/commit/86e06c7068
2024-04-23[ruby/prism] Fix recursive multiply when values are switched in ↵Kevin Newton
karatsuba_multiply https://github.com/ruby/prism/commit/4dc6ea960d
2024-04-17[ruby/prism] Fix up more clang-analyzer failuresKevin Newton
https://github.com/ruby/prism/commit/f9a1abbc64
2024-04-16[ruby/prism] Fix up clang-analyzer violationsKevin Newton
https://github.com/ruby/prism/commit/259aef2acd
2024-03-11[ruby/prism] Provide more documentation for pm_integer_parse_digit_valuesKevin Newton
https://github.com/ruby/prism/commit/c3fcb5031f
2024-03-11[ruby/prism] Stop crashing on invalid integersKevin Newton
https://github.com/ruby/prism/commit/afac2d6646
2024-03-07[ruby/prism] Shared integer parsing logicKevin Newton
https://github.com/ruby/prism/commit/a2594a23c1
2024-03-07[ruby/prism] Style and allocation functionsKevin Newton
https://github.com/ruby/prism/commit/97f838c323
2024-03-07[ruby/prism] Change pm_integer_t structuretompng
https://github.com/ruby/prism/commit/588acf823f
2024-03-07[ruby/prism] Faster pm_integer_parse pm_integer_string using karatsuba algorithmtompng
https://github.com/ruby/prism/commit/ae4fb6b988
2024-03-04[ruby/prism] Make alloc interface replaceableHASUMI Hitoshi
- Add `x` prefix to malloc, calloc, realloc, and free (eg: malloc -> xmalloc) - By default, they are replaced with stdlib's functions at build - You can use custom functions by defining `PRISM_CUSTOM_ALLOCATOR` macro https://github.com/ruby/prism/commit/7a878af619
2024-02-23[ruby/prism] Convert pm_integer_t to stringsKevin Newton
https://github.com/ruby/prism/commit/fa9a30ad91
2024-02-23[ruby/prism] Factor in sign to integer comparisonKevin Newton
https://github.com/ruby/prism/commit/377666a5df
2024-02-23[ruby/prism] Duplicated when clausesKevin Newton
https://github.com/ruby/prism/commit/865b0d5fbe
2024-02-23[ruby/prism] Duplicated hash keysKevin Newton
https://github.com/ruby/prism/commit/3e10c46c14
2024-02-22[ruby/prism] Regenerate snapshots using integer valuesKevin Newton