<p dir="ltr">Got it, looks good.</p>
<p dir="ltr">Jonathan</p>
<br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Wed, Feb 12, 2025, 7:33 AM Gao Xiang <<a href="mailto:hsiangkao@linux.alibaba.com">hsiangkao@linux.alibaba.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On 2025/2/12 22:17, Jonathan Bar Or wrote:<br>
> This is good, but may I suggest using __builtin_add_overflow instead?<br>
<br>
They are just the same.<br>
<br>
erofs-utils follows the kernel style, mostly the kernel doesn't<br>
directly use __builtin_add_overflow, instead it has a wrapper<br>
check_add_overflow().<br>
<br>
I could use __builtin_add_overflow for u-boot only.<br>
<br>
Thanks,<br>
Gao Xiang<br>
<br>
> <br>
> Jonathan<br>
> <br>
</blockquote></div>