<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Nov 28, 2013 at 12:10 PM, Pavel Levshin <span dir="ltr"><<a href="mailto:pavel@levshin.spb.ru" target="_blank">pavel@levshin.spb.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">28.11.2013 15:00, Rainer Gerhards:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
ahh... excellent point, I have to admit I overlooked it. es_size_t has the advantage (IMHO) that it is 32 bits and saves us the overhead of passing 64 bits around. I cannot see any reasonable case where we have >2gig messages. How about using uint32_t instead (or just plain int, but...).<br>

<br>
<br>
</blockquote>
<br></div>
I'm not sure. Size_t is universally portable, but uint32_t is also sufficient for all current architectures, which I could think of. Is there someone running liblognorm at 16 bit CPU?..<br></blockquote><div><br></div>
<div>even there uint32_t should be 32bit unsigned, right?<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
For external interface, I'd vote for size_t.<div class="HOEnZb"><div class="h5"><br></div></div></blockquote><div><br></div><div>Yeah, I know this problem for many years. I've been totally fine with size_t when we moved vom 16 to 32 bits. With 64 bits, I have a bit of concern as general use in cases like this. Thinking performance wise-manipulating 64 bits requires a lot of space in registers and cache lines. Especially when we know we will never have string that long (can you envision a 4GB syslog message that is run through lognorm -me not...). But I agree that the "clean" solution would is size_t --- I am undecided myself... <br>
<br></div><div>Can you give me a good argument (besides standards) why size_t would be good here? Or better said: does not hurt.<br><br>Rainer<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">
<br>
<br>
--<br>
Pavel Levshin<br>
<br>
______________________________<u></u>_________________<br>
Lognorm mailing list<br>
<a href="mailto:Lognorm@lists.adiscon.com" target="_blank">Lognorm@lists.adiscon.com</a><br>
<a href="http://lists.adiscon.net/mailman/listinfo/lognorm" target="_blank">http://lists.adiscon.net/<u></u>mailman/listinfo/lognorm</a><br>
</div></div></blockquote></div><br></div></div>