stencillogic / astro-float

Arbitrary precision floating point numbers library
MIT License
101 stars 4 forks source link

Use target pointer width rather than x86 #26

Open tgross35 opened 7 months ago

tgross35 commented 7 months ago

The code https://github.com/stencillogic/astro-float/blob/891843d8341d032f889f1b77077dd7ceb05b7a01/astro-float-num/src/defs.rs#L11-L33 has a lot of code that is configured based on x86 or not(x86). Is there a reason that x86 is special, or could this instead use #[cfg(target_pointer_width = 64)]/#[cfg(target_pointer_width = 32)]?

stencillogic commented 7 months ago

Basically, the library only supports x64 and x86. Hence it uses just x86 and not(x86) here and there. It was tested for ARM once, but in general ARM is not supported at the moment.