qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 6/9] util: Share qemu_try_memalign() implementation between P


From: Richard Henderson
Subject: Re: [PATCH 6/9] util: Share qemu_try_memalign() implementation between POSIX and Windows
Date: Sat, 26 Feb 2022 14:56:54 -1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 2/26/22 08:07, Peter Maydell wrote:
The qemu_try_memalign() functions for POSIX and Windows used to be
significantly different, but these days they are identical except for
the actual allocation function called, and the POSIX version already
has to have ifdeffery for different allocation functions.

Move to a single implementation in memalign.c, which uses the Windows
_aligned_malloc if we detect that function in meson.

Signed-off-by: Peter Maydell<peter.maydell@linaro.org>
---
  meson.build        |  1 +
  util/memalign.c    | 33 +++++++++++++++++++++++++++++++++
  util/oslib-posix.c | 26 --------------------------
  util/oslib-win32.c | 18 ------------------
  4 files changed, 34 insertions(+), 44 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]