Small limb-size in mini-gmp?
    Vincent Lefevre 
    vincent at vinc17.net
       
    Wed Nov 13 15:28:46 UTC 2019
    
    
  
On 2019-11-12 22:22:00 +0100, Marco Bodrato wrote:
> Is something like the following too tricky?
> 
>   #ifndef MINI_GMP_LIMB_TYPE
>   #define MINI_GMP_LIMB_TYPE long
>   #endif
> 
>   typedef unsigned MINI_GMP_LIMB_TYPE mp_limb_t
> 
> As only unsigned types are supported...
Unsigned types do not necessarily start with "unsigned".
Example: uint128_t
-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
    
    
More information about the gmp-devel
mailing list