Skip to content

Implement 64bit/32bit limb size based on cpu/compiler - #1

Merged
NTT1906 merged 24 commits into
mainfrom
llimb
May 20, 2026
Merged

Implement 64bit/32bit limb size based on cpu/compiler#1
NTT1906 merged 24 commits into
mainfrom
llimb

Conversation

@NTT1906

@NTT1906 NTT1906 commented May 20, 2026

Copy link
Copy Markdown
Owner

No description provided.

NTT1906 added 24 commits May 19, 2026 04:39
+ error 64101: Fix out-of-bounds shifting assertion by ensuring 'k' remains within constraints (< BI_BIT - 1)
+ error 64102: Prevent out-of-bounds shifts in shift_left_expand() by clamping 'k' to safe constraints (< BI_BIT * 2 - 1)
+ error 64103: Resolve underflow risk in shift_left_expand_fused() via safe boundary check on index iterations
+ error 64104: Rectify an infinite loop scenario in shift_right_ip_imp() by correcting sign-mismatch conditions
+ error 64105: Fix dynamic hardware intrinsics fallback bug for Apple Silicon and ARM platforms in i_addcarry()
+ error 64106: Correct unrolling logic and edge-case handling in mul_imp_fast() when input arrays have high zero-limbs
+ improve: Modernize loop logic across operations and fully inline performance-critical math intrinsics to boost processing throughput
+ error C2440: Resolve ambiguous initialization of 'udw' from integer literals by implementing a generic template constructor
+ error C2451: Add explicit 'operator bool()' conversion to allow 'udw' instances to be evaluated inside conditional structures
+ error C2666: Fix overloaded operator ambiguities ('<<', '/', '%', '+', '>') by changing binary members to non-member friend functions
+ error C2678: Add bitwise operator overloads ('|', '&', '^', '~') for symmetric mixed-mode binary operations involving 'udw'
+ improve: Remove explicit single-argument keyword to match native primitive implicit up-promotion rules under MSVC x64
…soft_mod function to malfunction leading to all mont functions failed to produce correct results.
@NTT1906
NTT1906 marked this pull request as ready for review May 20, 2026 11:11
@NTT1906
NTT1906 merged commit 2e4b5b7 into main May 20, 2026
4 checks passed
@NTT1906
NTT1906 deleted the llimb branch May 24, 2026 16:54
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.

1 participant