Home | History | Annotate | Download | only in src
      1 //===------------------------- fallback_malloc.h --------------------------===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is dual licensed under the MIT and the University of Illinois Open
      6 // Source Licenses. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 
     10 #ifndef _FALLBACK_MALLOC_H
     11 #define _FALLBACK_MALLOC_H
     12 
     13 #include "__cxxabi_config.h"
     14 #include <cstddef> // for size_t
     15 
     16 namespace __cxxabiv1 {
     17 
     18 // Allocate some memory from _somewhere_
     19 _LIBCXXABI_HIDDEN void * __aligned_malloc_with_fallback(size_t size);
     20 
     21 // Allocate and zero-initialize memory from _somewhere_
     22 _LIBCXXABI_HIDDEN void * __calloc_with_fallback(size_t count, size_t size);
     23 
     24 _LIBCXXABI_HIDDEN void __aligned_free_with_fallback(void *ptr);
     25 _LIBCXXABI_HIDDEN void __free_with_fallback(void *ptr);
     26 
     27 } // namespace __cxxabiv1
     28 
     29 #endif
     30