Question about Boost Integer

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

See this page, int128_t is simply
// Fixed precision signed types:
typedef number
int128_t;
Change 128 to what you want. On Sat, Feb 27, 2021 at 4:44 AM Emilio Paolini via Boost-users < boost-users@lists.boost.org> 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@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users

https://www.boost.org/doc/libs/1_75_0/libs/multiprecision/doc/html/boost_mul... On Sat, Feb 27, 2021 at 4:44 AM Emilio Paolini via Boost-users < boost-users@lists.boost.org> 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@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Emilio Paolini
-
kila suelika