3.3.1.1.1 : Le fichier asterics_alloc.h
Développons le fichier asterics_alloc.h :
1 2 3 4 5 6 7 8 9 10 |
#ifndef __ASTERICS_ALLOC_H__ #define __ASTERICS_ALLOC_H__ void * asterics_malloc(long unsigned int sizeOfVectorInBytes); void asterics_free(void* ptr); long unsigned int getPitch(long unsigned int nbCol); float * asterics_malloc2f(long unsigned int nbRow, long unsigned int nbCol); #endif |
Le fichier asterics_alloc.h complet.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
/*************************************** Auteur : Pierre Aubert Mail : pierre.aubert@lapp.in2p3.fr Licence : CeCILL-C ****************************************/ #ifndef __ASTERICS_ALLOC_H__ #define __ASTERICS_ALLOC_H__ void * asterics_malloc(long unsigned int sizeOfVectorInBytes); void asterics_free(void* ptr); long unsigned int getPitch(long unsigned int nbCol); float * asterics_malloc2f(long unsigned int nbRow, long unsigned int nbCol); #endif |
Vous pouvez télécharger le fichier ici.