Comments (1)
usize
is defined as being a pointer-sized integer, the only reason Limb
isn't a wrapper over usize
is because some of the intrinsics I use are only defined for fixed widths. The overload is because all the operations have much simpler single-word implementations and I know that usize
won't be larger than a word, while u64
might. In fact, I overload for usize
and the "base integer" type (which is either u32
or u64
, depending on the platform).
I don't think I rely on the size of usize
directly, beyond it's definition as being the same as a pointer, but if there is somewhere that isn't true, feel free to point it out and re-open.
from ramp.
Related Issues (20)
- Documentation Broken HOT 1
- Use of pow with Int exp HOT 6
- Expose numerator/denominator of Rational HOT 1
- [Feature Request] Implement From trait for i128 and u128 HOT 1
- Copy trait not implemented on Int struct HOT 4
- AVX2 HOT 2
- Float Support HOT 1
- Add Support For Finding Primes Using Miller-Rabin Test HOT 1
- error[E0432]: unresolved import `std::alloc::Alloc` HOT 2
- Multiplication Error on 32-bit machines HOT 1
- Add "ramp-primes" to Documentation HOT 1
- could not find `AllocInit` in `alloc` HOT 2
- Cannot compile 0.5.6 HOT 4
- Failing to build the project HOT 2
- gen_uint() method cant be called on ThreadRng due to unsatisfied Trait bounds HOT 3
- pow_mod() incredibly slow HOT 2
- Cargo build failed HOT 1
- ramp fails to build "error[E0199]: implementing the trait `Step` is not unsafe" HOT 2
- Build fail, consider updating num-bigint
- Removal of `RawVec` from the rust standard library.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ramp.