64 bit arithmetic soft fork

Posted by ajtowns

Jun 20, 2024/16:25 UTC

Implementing an alternative to __int128_t for certain computational functions could be approached by considering the use of a combination of uint64_t absval; bool negated;. This method would involve manual checks to ensure values do not exceed their intended bounds, thereby potentially offering a more controlled environment for handling large numbers. Alternatively, adopting a big number class, similar to arith_uint256, presents itself as another viable option. This approach would encapsulate the complexities of managing large numerical values within a class structure, providing a more straightforward interface for operations requiring extended numeric ranges beyond standard data types.

Exploring these options highlights the ongoing quest for efficiency and accuracy in computational processes, especially in areas such as cryptography where precision and the ability to handle large numbers are paramount. The conditional use of __int128_t within crypto/muhash.h serves as a reference point for this discussion, suggesting that while existing implementations may rely on this data type, there is room for innovation and improvement through alternative methods. The proposition of using a dual-component system comprising an absolute value and a negation flag, or shifting towards a dedicated big number class, reflects a thoughtful consideration of both performance implications and the practicalities of software development.

Link to Raw Post

Thread Summary (52 replies)

Jan 10 - Jun 20, 2024

Bitcoin Logo

TLDR

Join Our Newsletter

We’ll email you summaries of the latest discussions from authoritative bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.

Explore all Products

ChatBTC imageBitcoin searchBitcoin TranscriptsSaving SatoshiBitcoin Transcripts Review
Built with 🧡 by the Bitcoin Dev Project
View our public visitor count

We'd love to hear your feedback on this project?

Give Feedback