Where to find implementation of __int128_t

Jonathan Wakely jwakely.gcc@gmail.com
Tue Mar 28 22:38:11 GMT 2023


On Tue, 28 Mar 2023 at 22:57, Frederick Virchanza Gotham via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
>
> I want to fork the GNU g++ compiler and add a new integer type, __int256_t.
>
> Could someone please point me to the relevant files where __int128_t
> is implemented? I've been searching the repository on Github but can't
> find it.

You should clone the repo and use git grep, not github's search. That
will find it instantly. For github you need to search for the string
"__int128_t" (with quotes).

But __int128_t is just an implicitly-defined typedef, you probably
want to add the actual types __int128 and unsigned  __int128 instead.

You want to search for INT_N and __intN to see how non-standard
integer types are defined.


More information about the Gcc-help mailing list