diff options
author | Pablo Tello <pablo.tello@arm.com> | 2022-03-07 18:20:12 +0000 |
---|---|---|
committer | Pablo Marquez Tello <pablo.tello@arm.com> | 2022-03-10 13:44:39 +0000 |
commit | 4e66d707a292b90a344e32c59eb1dacb67a0e4c1 (patch) | |
tree | 48f8548c7a03f3586d27ae7b06d954b958912ee4 /src/cpu | |
parent | 17c48f9e518abfcb45477f0eeebf487498c6a270 (diff) | |
download | ComputeLibrary-4e66d707a292b90a344e32c59eb1dacb67a0e4c1.tar.gz |
Added windows native build support
Resolves MLCE-739
Signed-off-by: Pablo Tello <pablo.tello@arm.com>
Change-Id: I30a11393e928061c82a5c93d8ec195c04a0e838b
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/7279
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Giorgio Arena <giorgio.arena@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/CpuContext.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/cpu/CpuContext.cpp b/src/cpu/CpuContext.cpp index 0cc5070917..d91f917963 100644 --- a/src/cpu/CpuContext.cpp +++ b/src/cpu/CpuContext.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Arm Limited. + * Copyright (c) 2021-2022 Arm Limited. * * SPDX-License-Identifier: MIT * @@ -30,8 +30,12 @@ #include <cstdlib> #if !defined(__APPLE__) && !defined(__OpenBSD__) #include <malloc.h> -#endif // !defined(__APPLE__) && !defined(__OpenBSD__) +#if defined(_WIN64) +#define posix_memalign _aligned_realloc +#define posix_memalign_free _aligned_free +#endif // defined(_WIN64) +#endif // !defined(__APPLE__) && !defined(__OpenBSD__) namespace arm_compute { |