Is is bug?
LIU Hao
lh_mouse@126.com
Sat Sep 19 10:29:05 GMT 2026
在 2026-9-19 18:20, Jakub Juszczakiewicz via Gcc-help 写道:
> Thanks for quick reply!
> Ok, so I need to do this check in other way. It's good to now.
See https://gcc.gnu.org/onlinedocs/gcc/Integer-Overflow-Builtins.html
int kit_sub_int_64(int64_t * output, const int64_t * a, const int64_t * b)
{
return __builtin_sub_overflow(*a, *b, output);
}
--
Best regards,
LIU Hao
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20260919/c03cd469/attachment-0001.sig>
More information about the Gcc-help
mailing list