1 /* 2 3 Copyright (C) 2014, The University of Texas at Austin 4 5 This file is part of libflame and is available under the 3-Clause 6 BSD license, which can be found in the LICENSE file at the top-level 7 directory, or at http://opensource.org/licenses/BSD-3-Clause 8 9 */ 10 11 #include "blis1.h" 12 13 #ifdef BLIS1_ENABLE_USE_OF_FLA_MALLOC 14 #include "FLAME.h" 15 #define BLIS1_FREE FLA_free 16 #else 17 #define BLIS1_FREE free 18 #endif 19 bl1_vfree(void * p)20void bl1_vfree( void* p ) 21 { 22 free( ( void* ) p ); 23 } 24 bl1_ifree(int * p)25void bl1_ifree( int* p ) 26 { 27 free( ( int* ) p ); 28 } 29 bl1_sfree(float * p)30void bl1_sfree( float* p ) 31 { 32 free( ( void* ) p ); 33 } 34 bl1_dfree(double * p)35void bl1_dfree( double* p ) 36 { 37 free( ( void* ) p ); 38 } 39 bl1_cfree(scomplex * p)40void bl1_cfree( scomplex* p ) 41 { 42 free( ( void* ) p ); 43 } 44 bl1_zfree(dcomplex * p)45void bl1_zfree( dcomplex* p ) 46 { 47 free( ( void* ) p ); 48 } 49 50