public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/60846] New: Add 128-bit integer types for general use on 32-bit/64-bit CPUs
@ 2014-04-15 14:06 jirik.svoboda at seznam dot cz
  2014-04-15 14:11 ` [Bug c/60846] " rguenth at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: jirik.svoboda at seznam dot cz @ 2014-04-15 14:06 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60846

            Bug ID: 60846
           Summary: Add 128-bit integer types for general use on
                    32-bit/64-bit CPUs
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jirik.svoboda at seznam dot cz

(u)int64_t is available on all targets (32-bit and 64-bit) but __int128 isn't
(according to http://gcc.gnu.org/onlinedocs/gcc/_005f_005fint128.html __int128
is only available if long long is 128-bits wide which doesn't seem to be the
case for 32-bit/64-bit Intel targets).

Please add something like (u)int128_t, i.e. 128-bit signed and unsigned integer
types available on 32-bit and 64-bit compiler targets. This would allow, for
example, representing an IPv6 address as a single scalar value. Address masking
could be performed with a simple bitwise operator.

Since 32-bit and 64-bit CPUs typically cannot operate on 128-bit integers
directly, multiple instructions need to be generated for a single arithmetic
operation.


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-11-04 14:59 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-15 14:06 [Bug c/60846] New: Add 128-bit integer types for general use on 32-bit/64-bit CPUs jirik.svoboda at seznam dot cz
2014-04-15 14:11 ` [Bug c/60846] " rguenth at gcc dot gnu.org
2014-04-17  3:56 ` hp at gcc dot gnu.org
2014-04-17  3:58 ` hp at gcc dot gnu.org
2014-04-22 13:32 ` jirik.svoboda at seznam dot cz
2014-04-23 18:59 ` hp at gcc dot gnu.org
2020-03-26  1:13 ` mirh at protonmail dot ch
2020-03-27 21:10 ` feliks314159 at yahoo dot com
2020-03-27 22:09 ` pinskia at gcc dot gnu.org
2020-03-27 22:16 ` joseph at codesourcery dot com
2023-11-04 14:59 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).