- Timestamp:
- May 6, 2016, 3:06:29 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/rosenfeld/nrc2/include/nrarith2x.h
r772 r821 11 11 #define _NRARITH2X_H_ 12 12 13 #ifdef __cplusplus 14 #ifdef PRAGMA_VERBOSE 15 #pragma message ("C++") 16 #endif 17 extern "C" { 18 #endif 13 // Add conditionnel 19 14 20 #ifdef PRAGMA_VERBOSE 21 #pragma message("- include nrarith2x.h") 22 #endif 15 #define addcnz_type_matrix(t) \ 16 void short_name(t,addcnz_,matrix)(t ** src, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, t cte, t ** dst) 17 18 addcnz_type_matrix(int8_t); 19 addcnz_type_matrix(uint8_t); 20 addcnz_type_matrix(int16_t); 21 addcnz_type_matrix(uint16_t); 22 addcnz_type_matrix(int32_t); 23 addcnz_type_matrix(uint32_t); 24 addcnz_type_matrix(int64_t); 25 addcnz_type_matrix(uint64_t); 26 addcnz_type_matrix(float); 27 addcnz_type_matrix(double); 23 28 24 29 25 // Add conditionnel 26 IMAGE_EXPORT(void) addc_bmatrix (byte **src,long nrl,long nrh,long ncl, long nch, byte cte, byte **dst); 27 IMAGE_EXPORT(void) addc_smatrix (sint16 **src,long nrl,long nrh,long ncl, long nch, short cte, sint16 **dst); 28 IMAGE_EXPORT(void) addc_usmatrix(uint16 **src,long nrl,long nrh,long ncl, long nch, short cte, uint16 **dst); 30 #define addandc_type_matrix(t) \ 31 void short_name(t,addandc_,matrix)(t ** src, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, t cte, t ** dst) 29 32 30 IMAGE_EXPORT(void) addandc_bmatrix (byte **src,long nrl,long nrh,long ncl, long nch, byte cte, byte **dst); 31 IMAGE_EXPORT(void) addandc_si16matrix (sint16 **src,long nrl,long nrh,long ncl, long nch, short cte, sint16 **dst); 32 IMAGE_EXPORT(void) addandc_ui16matrix (uint16 **src,long nrl,long nrh,long ncl, long nch, short cte, uint16 **dst); 33 addandc_type_matrix(int8_t); 34 addandc_type_matrix(uint8_t); 35 addandc_type_matrix(int16_t); 36 addandc_type_matrix(uint16_t); 37 addandc_type_matrix(int32_t); 38 addandc_type_matrix(uint32_t); 39 addandc_type_matrix(int64_t); 40 addandc_type_matrix(uint64_t); 41 addandc_type_matrix(float); 42 addandc_type_matrix(double); 33 43 34 IMAGE_EXPORT(void) addcnz_bmatrix(byte **src,long nrl,long nrh,long ncl, long nch, byte cte, byte **dst);35 44 36 IMAGE_EXPORT(int) count_bmatrix(byte **m, long nrl,long nrh,long ncl, long nch); 37 /* 38 * renvoie la somme des points de la matrice 39 */ 45 /* renvoie la somme des points de la matrice */ 40 46 41 #ifdef __cplusplus 42 } 43 #endif 47 #define sum_type_matrix(t,rt) \ 48 rt short_name(t,sum_,matrix)(t ** m, int32_t nrl, int32_t nrh,int32_t ncl, int32_t nch) 49 50 sum_type_matrix(int8_t, int32_t); 51 sum_type_matrix(uint8_t, uint32_t); 52 sum_type_matrix(int16_t, int32_t); 53 sum_type_matrix(uint16_t, uint32_t); 54 sum_type_matrix(int32_t, int64_t); 55 sum_type_matrix(uint32_t, uint64_t); 56 sum_type_matrix(int64_t, int64_t); 57 sum_type_matrix(uint64_t, uint64_t); 58 sum_type_matrix(float, float); 59 sum_type_matrix(double, double); 60 61 44 62 45 63 #endif /* _NRUTIL_H_ */ 64 65 // Local Variables: 66 // tab-width: 4 67 // c-basic-offset: 4 68 // c-file-offsets:((innamespace . 0)(inline-open . 0)) 69 // indent-tabs-mode: nil 70 // End: 71 72 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 73
Note: See TracChangeset
for help on using the changeset viewer.