Changeset 826 for soft/giet_vm/applications/rosenfeld/nrc2/include/nrset1.h
- Timestamp:
- Jul 13, 2017, 11:01:58 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/rosenfeld/nrc2/include/nrset1.h
r772 r826 11 11 #define _NRSET1_H_ 12 12 13 #ifdef __cplusplus14 #ifdef PRAGMA_VERBOSE15 #pragma message ("C++")16 #endif17 extern "C" {18 #endif19 20 #ifdef PRAGMA_VERBOSE21 //#pragma message("- include nrset1.h")22 #endif23 13 24 14 /* 25 15 * ------------ 26 16 * --- Zero --- 17 * --- set_vector --- 18 * --- set_vector_param --- 19 * --- set_vector_j --- 27 20 * ------------ 28 21 */ 29 22 30 IMAGE_EXPORT(void) zero_si8vector (sint8 *v, long nl, long nh); 31 IMAGE_EXPORT(void) zero_ui8vector (uint8 *v, long nl, long nh); 32 IMAGE_EXPORT(void) zero_si16vector (sint16 *v, long nl, long nh); 33 IMAGE_EXPORT(void) zero_ui16vector (uint16 *v, long nl, long nh); 34 IMAGE_EXPORT(void) zero_si32vector (sint32 *v, long nl, long nh); 35 IMAGE_EXPORT(void) zero_ui32vector (uint32 *v, long nl, long nh); 36 IMAGE_EXPORT(void) zero_si64vector (sint64 *v, long nl, long nh); 37 IMAGE_EXPORT(void) zero_ui64vector (uint64 *v, long nl, long nh); 23 #define zero_set_type_vector(t) \ 24 void short_name(t,zero_,vector)(t * v, int32_t nl, int32_t nh); \ 25 void short_name(t,set_,vector)(t * v, int32_t nl, int32_t nh, t x); \ 26 void short_name(t,set_,vector_param)(t * v, int32_t nl, int32_t nh, t x, t xstep); \ 27 void short_name(t,set_,vector_j)(t * v, int32_t nl, int32_t nh); 38 28 39 IMAGE_EXPORT(void) zero_f32vector (float32 *v, long nl, long nh); 40 IMAGE_EXPORT(void) zero_f64vector (float64 *v, long nl, long nh); 29 zero_set_type_vector(int8_t); 30 zero_set_type_vector(uint8_t); 31 zero_set_type_vector(int16_t); 32 zero_set_type_vector(uint16_t); 33 zero_set_type_vector(int32_t); 34 zero_set_type_vector(uint32_t); 35 zero_set_type_vector(int64_t); 36 zero_set_type_vector(uint64_t); 37 zero_set_type_vector(float); 38 zero_set_type_vector(double); 39 zero_set_type_vector(rgb8); 40 zero_set_type_vector(rgbx8); 41 41 42 IMAGE_EXPORT(void) zero_rgb8vector (rgb8 *v, long nl, long nh);43 IMAGE_EXPORT(void) zero_rgbx8vector(rgbx8 *v, long nl, long nh);44 45 /*46 * ------------------47 * --- set_vector ---48 * ------------------49 */50 51 IMAGE_EXPORT(void) set_si8vector (sint8 *v, long nl, long nh, sint8 x);52 IMAGE_EXPORT(void) set_ui8vector (uint8 *v, long nl, long nh, uint8 x);53 IMAGE_EXPORT(void) set_si16vector (sint16 *v, long nl, long nh, int16 x);54 IMAGE_EXPORT(void) set_ui16vector (uint16 *v, long nl, long nh, uint16 x);55 IMAGE_EXPORT(void) set_si32vector (sint32 *v, long nl, long nh, sint32 x);56 IMAGE_EXPORT(void) set_ui32vector (uint32 *v, long nl, long nh, uint32 x);57 IMAGE_EXPORT(void) set_si64vector (sint64 *v, long nl, long nh, sint64 x);58 IMAGE_EXPORT(void) set_ui64vector (uint64 *v, long nl, long nh, uint64 x);59 60 IMAGE_EXPORT(void) set_f32vector (float32 *v, long nl, long nh, float32 x);61 IMAGE_EXPORT(void) set_f64vector (float64 *v, long nl, long nh, float64 x);62 63 IMAGE_EXPORT(void) set_rgb8vector (rgb8 *v, long nl, long nh, rgb8 x);64 IMAGE_EXPORT(void) set_rgbx8vector(rgbx8 *v, long nl, long nh, rgbx8 x);65 66 /*67 * ------------------------68 * --- set_vector_param ---69 * ------------------------70 */71 72 IMAGE_EXPORT(void) set_si8vector_param (sint8 *v, long nl, long nh, sint8 x, sint8 xstep);73 IMAGE_EXPORT(void) set_ui8vector_param (uint8 *v, long nl, long nh, uint8 x, uint8 xstep);74 IMAGE_EXPORT(void) set_si16vector_param (sint16 *v, long nl, long nh, int16 x, sint16 xstep);75 IMAGE_EXPORT(void) set_ui16vector_param (uint16 *v, long nl, long nh, uint16 x, uint16 xstep);76 IMAGE_EXPORT(void) set_si32vector_param (sint32 *v, long nl, long nh, sint32 x, sint32 xstep);77 IMAGE_EXPORT(void) set_ui32vector_param (uint32 *v, long nl, long nh, uint32 x, uint32 xstep);78 IMAGE_EXPORT(void) set_si64vector_param (sint64 *v, long nl, long nh, sint64 x, sint64 xstep);79 IMAGE_EXPORT(void) set_ui64vector_param (uint64 *v, long nl, long nh, uint64 x, uint64 xstep);80 81 IMAGE_EXPORT(void) set_f32vector_param (float32 *v, long nl, long nh, float32 x, float32 xstep);82 IMAGE_EXPORT(void) set_f64vector_param (float64 *v, long nl, long nh, float64 x, float64 xstep);83 84 IMAGE_EXPORT(void) set_rgb8vector_param (rgb8 *v, long nl, long nh, rgb8 x, rgb8 xstep);85 IMAGE_EXPORT(void) set_rgbx8vector_param(rgbx8 *v, long nl, long nh, rgbx8 x, rgbx8 xstep);86 87 /*88 * --------------------89 * --- set_vector_j ---90 * --------------------91 */92 93 IMAGE_EXPORT(void) set_si8vector_j (sint8 *v, long nl, long nh);94 IMAGE_EXPORT(void) set_ui8vector_j (uint8 *v, long nl, long nh);95 IMAGE_EXPORT(void) set_si16vector_j (sint16 *v, long nl, long nh);96 IMAGE_EXPORT(void) set_ui16vector_j (uint16 *v, long nl, long nh);97 IMAGE_EXPORT(void) set_si32vector_j (sint32 *v, long nl, long nh);98 IMAGE_EXPORT(void) set_ui32vector_j (uint32 *v, long nl, long nh);99 100 IMAGE_EXPORT(void) set_f32vector_j (float32 *v, long nl, long nh);101 IMAGE_EXPORT(void) set_f64vector_j (float64 *v, long nl, long nh);102 103 IMAGE_EXPORT(void) set_rgb8vector_j (rgb8 *v, long nl, long nh);104 IMAGE_EXPORT(void) set_rgbx8vector_j(rgbx8 *v, long nl, long nh);105 42 106 43 /* … … 110 47 */ 111 48 112 IMAGE_EXPORT(void) set_si8vector_str (sint8 *v, long nl, long nh, char *str); 113 IMAGE_EXPORT(void) set_ui8vector_str (uint8 *v, long nl, long nh, char *str); 114 IMAGE_EXPORT(void) set_si16vector_str (sint16 *v, long nl, long nh, char *str); 115 IMAGE_EXPORT(void) set_ui16vector_str (uint16 *v, long nl, long nh, char *str); 116 IMAGE_EXPORT(void) set_si32vector_str (sint32 *v, long nl, long nh, char *str); 117 IMAGE_EXPORT(void) set_ui32vector_str (uint32 *v, long nl, long nh, char *str); 49 #define set_type_vector_str(t) \ 50 void short_name(t,set_,vector_str)(t * v, int32_t nl, int32_t nh, char * str); 118 51 119 #ifdef __cplusplus 120 } 121 #endif 52 set_type_vector_str(int8_t); 53 set_type_vector_str(uint8_t); 54 set_type_vector_str(int16_t); 55 set_type_vector_str(uint16_t); 56 set_type_vector_str(int32_t); 57 set_type_vector_str(uint32_t); 58 set_type_vector_str(int64_t); 59 set_type_vector_str(uint64_t); 60 122 61 123 62 #endif /* __NRSET1_H__ */ 63
Note: See TracChangeset
for help on using the changeset viewer.