diff options
Diffstat (limited to 'include/fbgemm/Utils.h')
-rw-r--r-- | include/fbgemm/Utils.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/fbgemm/Utils.h b/include/fbgemm/Utils.h index 3976790..2533a10 100644 --- a/include/fbgemm/Utils.h +++ b/include/fbgemm/Utils.h @@ -13,16 +13,15 @@ #ifdef _MSC_VER # define ALWAYS_INLINE // __forceinline -# define ALIGNED_MALLOC(size, alignment) _aligned_malloc(size, alignment) -# define FREE(ptr) _aligned_free(ptr) #else # define ALWAYS_INLINE __attribute__((always_inline)) -# define ALIGNED_MALLOC(size, alignment) aligned_alloc(alignment, size) -# define FREE(ptr) free(ptr) #endif namespace fbgemm { +void * genericAlignedAlloc(size_t size, size_t alignment); +void genericFree(void * ptr); + /** * @brief Helper struct to type specialize for uint8 and int8 together. */ |