<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>On 20 Jan 2010, at 19:29, Darko wrote:</div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>My point is that the LONGINT type should be thought of abstractly as something longer than an INTEGER. It would be great if the compiler used the right sized integer for a subrange with a particular number of members (2^16, 2^32, 2^64 or 2^128), but you might just have to say "don't compile LONGINTS bigger than 64 bits" for efficiency.</div></div></blockquote><div><br></div><div>M3 defines all arithmetic as operating on the base type. It does seem reasonable to be able to build for targets with different-sized LONGINT, just as we do for targets with different-sized INTEGER.</div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>You're using the syntax for packed types in your example, but I think they'd have to be subranges.</div></div></blockquote><div><br></div><div>Sorry, yes. [Jet-lag]</div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I think the idea that "basics" don't change meaning doesn't wash because you can't make assumptions about what hardware you're running on and therefore might be condemning the language to inefficiency on certain hardware.</div></div></blockquote><div><br></div><div>Agreed!</div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div><br></div><br><div><div>On 20/01/2010, at 10:20 PM, Jay K wrote:</div><br class="Apple-interchange-newline"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">Ok with changing LONGINT to be __int128, *but*<br>you really should not change it with a compiler flag.<br>For any given platform, "basics" like this should not change meaning.<br>It makes it such that you can't link code safely.<br> <br> <br>Basically, "platform" or "target" should map to one "ABI".<br> <br> <br>I really kind of like what I proposed earlier.<br> Let the user define things.<br> TYPE INT64 = BITS 64 FOR INTEGER;<br> TYPE INT128 = BITS 128 FOR INTEGER;<br> <br>TYPE INT256 = BITS 256 FOR INTEGER;<br> (* either an error, or the compiler generates calls to multi-precision library *)<br> <br> <br>This is btw why the user thread stuff should be either 1) a runtime alterable decision<br>or 2) separate platforms (I386_LINUX_USERTHREADS or somesuch).<br>So that there aren't multiple ABIs and you can link together any code for<br>a given platform.<br>With an *occasional* alteration/fix, such as when NT386 LONGINT grows to 64bits.<br>That forces recompilation of everything affected.<br> <br> <br> - Jay<br><br> <br><hr id="stopSpelling">Subject: Re: [M3devel] __int128 coming to gcc<br>From:<span class="Apple-converted-space"> </span><a href="mailto:darko@darko.org">darko@darko.org</a><br>Date: Wed, 20 Jan 2010 14:23:32 +1100<br>CC:<span class="Apple-converted-space"> </span><a href="mailto:jay.krell@cornell.edu">jay.krell@cornell.edu</a>;<span class="Apple-converted-space"> </span><a href="mailto:m3devel@elegosoft.com">m3devel@elegosoft.com</a><br>To:<span class="Apple-converted-space"> </span><a href="mailto:hosking@cs.purdue.edu">hosking@cs.purdue.edu</a><br><br><div>I'm with Tony on this one. LONGINT should just mean "larger than the natural integer the machine" and its range should be implementation dependent. You could then change it's actual size with a compiler flag or the like.</div><div><br></div><br><div><div>On 19/01/2010, at 1:03 AM, Tony Hosking wrote:</div><br class="ecxApple-interchange-newline"><div style="word-wrap: break-word; "><div><span class="ecxApple-style-span" style="text-transform: none; text-indent: 0px; border-collapse: separate; font: normal normal normal 12px/normal Helvetica; white-space: normal; letter-spacing: normal; word-spacing: 0px; "><span class="ecxApple-style-span" style="text-transform: none; text-indent: 0px; border-collapse: separate; font: normal normal normal 12px/normal Helvetica; white-space: normal; letter-spacing: normal; word-spacing: 0px; "><div style="word-wrap: break-word; "><span class="ecxApple-style-span" style="text-transform: none; text-indent: 0px; border-collapse: separate; font: normal normal normal 12px/normal Helvetica; white-space: normal; letter-spacing: normal; word-spacing: 0px; "><span class="ecxApple-style-span" style="text-transform: none; text-indent: 0px; border-collapse: separate; font: normal normal normal 12px/normal Helvetica; white-space: normal; letter-spacing: normal; word-spacing: 0px; "><span class="ecxApple-style-span" style="text-transform: none; text-indent: 0px; border-collapse: separate; font: normal normal normal 12px/normal Helvetica; white-space: normal; letter-spacing: normal; word-spacing: 0px; "><span class="ecxApple-style-span" style="text-transform: none; text-indent: 0px; border-collapse: separate; font: normal normal normal 12px/normal Helvetica; white-space: normal; letter-spacing: normal; word-spacing: 0px; "><span class="ecxApple-style-span" style="text-transform: none; text-indent: 0px; border-collapse: separate; font: normal normal normal 12px/normal Helvetica; white-space: normal; letter-spacing: normal; word-spacing: 0px; "><span class="ecxApple-style-span" style="text-transform: none; text-indent: 0px; border-collapse: separate; font: normal normal normal 12px/normal Helvetica; white-space: normal; letter-spacing: normal; word-spacing: 0px; "><span class="ecxApple-style-span" style="text-transform: none; text-indent: 0px; border-collapse: separate; font: normal normal normal 12px/normal Helvetica; white-space: normal; letter-spacing: normal; word-spacing: 0px; "><span class="ecxApple-style-span" style="text-transform: none; text-indent: 0px; border-collapse: separate; font: normal normal normal 12px/normal Helvetica; white-space: normal; letter-spacing: normal; word-spacing: 0px; "><div><span class="ecxApple-style-span" style="font-size: medium; ">On 18 Jan 2010, at 08:05, Jay K wrote:</span></div></span></span></span></span></span></span></span></span></div></span></span></div><div><br class="ecxApple-interchange-newline"><blockquote><span class="ecxApple-style-span" style="text-transform: none; text-indent: 0px; border-collapse: separate; font: normal normal normal medium/normal Helvetica; white-space: normal; letter-spacing: normal; word-spacing: 0px; "><div class="ecxhmmessage" style="font-family: Verdana; font-size: 10pt; ">gcc 4.6 apparently will have __int128.<br>How long until we have LONGLONGINT or INT128?<br>Presumably we should have LONGLONGINT or INT128 to expose it?<br>:)<br></div></span></blockquote><div><br></div><div>Why would we not simply expand LONGINT? It doesn't matter even if it is slow. Then 64-bit can be expressed as</div><div><br></div><div>BITS 64 FOR [0L..16_7FFFFFFFFFFFFFFFL]</div><div><br></div><blockquote><span class="ecxApple-style-span" style="text-transform: none; text-indent: 0px; border-collapse: separate; font: normal normal normal medium/normal Helvetica; white-space: normal; letter-spacing: normal; word-spacing: 0px; "><div class="ecxhmmessage" style="font-family: Verdana; font-size: 10pt; "> Or, again, I should look at the arithemetic library...<br> <br> <br> - Jay<br> <br> <br>Date: Mon, 18 Jan 2010 13:01:13 +0000<br>From: gcc-patches-digest-help@<br>To: gcc-patches@<br>Subject: gcc-patches Digest 18 Jan 2010 13:01:13 -0000 Issue 14091<br><br><br>gcc-patches Digest 18 Jan 2010 13:01:13 -0000 Issue 14091<br><br>...<span class="ecxApple-converted-space"> </span><br>[patch]: New feature __int128 type C/C++ for upcoming 4.6 for review<br>255919 by: Kai Tietz <ktietz70@><br><br>...<br><br>--Forwarded Message Attachment--<br>Date: Mon, 18 Jan 2010 14:01:00 +0100<br>Subject: Re: [patch]: New feature __int128 type C/C++ for upcoming 4.6 for review<br>From: ktietz70@<br>To: joseph@<br>CC: gcc-patches@<br><br><br><pre>Hello,<br> <br>this is the recent version of the __int128 type support as gcc<br>extension. Comments in parser for C and C++ are updated and complex<br>type and tests are added.<br> <br>ChangeLog gcc/<br>....</pre></div></span></blockquote></div><br></div></div><br></div></span><br class="Apple-interchange-newline"></div><br></div></blockquote></div><br></body></html>