This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR target/16570: missing _mm_malloc and _mm_free functions inxmmintrin.h
Danny Smith <dannysmith@clear.net.nz> writes:
> The attached rervision replaces
> * ((void **) ((size_t) aligned_ptr - 1)) = malloc_ptr;
>
> with
> *(((void **) ((size_t) aligned_ptr)) - 1) = malloc_ptr;
Which means you can just drop the size_t cast, since the value is
immediately casted to void **. I'd write it like this, which makes it
much easier to parse by a human:
((void **) aligned_ptr)[-1] = malloc_ptr;
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."