This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 1/2] Replace check_mul_overflow_size_t with INT_MULTIPLY_WRAPV
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: libc-alpha at sourceware dot org
- Date: Sat, 22 Dec 2018 07:17:36 +0100
- Subject: Re: [PATCH 1/2] Replace check_mul_overflow_size_t with INT_MULTIPLY_WRAPV
- References: <20181221183813.16245-1-adhemerval.zanella@linaro.org>
* Adhemerval Zanella:
> - bool overflow = check_mul_overflow_size_t (element_size, count, &size);
> + bool overflow = INT_MULTIPLY_WRAPV (element_size, count, &size);
What's the reason for not using the compiler built-in?