<br><br><div class="gmail_quote">On Thu, Jun 16, 2011 at 11:30 PM, Renato Golin <span dir="ltr"><<a href="mailto:rengolin@systemcall.org">rengolin@systemcall.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 16 June 2011 20:20, Kostya Serebryany <<a href="mailto:kcc@google.com">kcc@google.com</a>> wrote:<br>
> Not hard at all.<br>
> At some point the file had no asm at all, but using the custom asm allows to<br>
> make the generated code more compact.<br>
<br>
</div>That should also be simple for other platforms...<br></blockquote><div>Sure.  </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
<br>
> My first attempt that used no asm required ~15 bytes of code.<br>
> Note, this code is executed only once, so it affects the performance very<br>
> slightly (through icache size).<br>
<br>
</div>I see, maybe you could leave your C implementation as a fall back.<br></blockquote><div>Not easy, because it will require a fallback code in the run time library. </div><div>But yes, possible. </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im"><br>
<br>
> Alas. It will grow even more when we add MacOS support.<br>
> (currently, only tiny tests work on Mac).<br>
<br>
</div>I saw a few APPLE macros. </blockquote><div><br></div><div>Yea...  </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I think that's the part that needs most<br>

care, since multi-platform (os/arch/etc) could bloat that<br>
considerably.<br></blockquote><div><br></div><div>Agree. We've been adding APPLE code just recently. Time to split. </div><div>I afraid we'll have to keep a single .cc file and add .h files for os/arch specific code to keep inlining under manual control (I don't want to reply on the compiler doing cross-cc-file inlining for me). </div>
<div><br></div><div>--kcc </div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
cheers,<br>
<font color="#888888">--renato<br>
</font></blockquote></div><br>