Boost logo

Boost Users :

From: kila suelika (semeegozy_at_[hidden])
Date: 2021-02-28 04:50:31


See this page, int128_t is simply

// Fixed precision signed types:
typedef number<cpp_int_backend<128, 128, signed_magnitude, unchecked, void>
> int128_t;

Change 128 to what you want.

On Sat, Feb 27, 2021 at 4:44 AM Emilio Paolini via Boost-users <
boost-users_at_[hidden]> wrote:

> Hi everyone, i'm pretty new to Boost. I need to use as a default type for
> the CNL. The problem is that i would need an integer type that can assume
> only 2^4 values (so basically that stays on 4 bits). What i am asking is
> that if there is a way to define an integer like int128_t but instead of
> 128 i would need to have 4. Thank you very much for your answers.
> Emilio
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> https://lists.boost.org/mailman/listinfo.cgi/boost-users
>



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net