source: soft/giet_vm/applications/rosenfeld/nrc2/include/nralloc2.h @ 822

Last change on this file since 822 was 821, checked in by meunier, 9 years ago
  • Added several versions of rosenfeld: { SLOW, FAST } x { FEATURES, NO_FEATURES }
  • Added native linux compilation support
  • Added a script to check results natively
  • Started to refactor nrc code
File size: 2.8 KB
Line 
1/* ------------------ */
2/* --- nralloc2.h --- */
3/* ------------------ */
4
5/*
6 * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved
7 * Univ Paris Sud XI, CNRS
8*
9*/
10
11/*
12 * 2002/06/11 ajout des fonctions endline
13 */
14
15#ifndef __NRALLOC2_H__
16#define __NRALLOC2_H__
17
18#include "nrc_os_config.h"
19
20/*
21 * --------------
22 * --- matrix ---
23 * --------------
24 */
25
26
27#undef type_matrix
28#define type_matrix(t) \
29t ** short_name(t,,matrix)(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)
30
31
32type_matrix(int8_t);
33type_matrix(uint8_t);
34type_matrix(int16_t);
35type_matrix(uint16_t);
36type_matrix(int32_t);
37type_matrix(uint32_t);
38type_matrix(int64_t);
39type_matrix(uint64_t);
40type_matrix(float);
41type_matrix(double);
42type_matrix(void_p);
43type_matrix(rgb8);
44type_matrix(rgbx8);
45type_matrix(rgb32);
46type_matrix(rgbx32);
47type_matrix(complex32);
48type_matrix(complex64);
49
50
51#undef type_matrix0
52#define type_matrix0(t) \
53t ** short_name(t,,matrix0)(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)
54
55
56type_matrix0(int8_t);
57type_matrix0(uint8_t);
58type_matrix0(int16_t);
59type_matrix0(uint16_t);
60type_matrix0(int32_t);
61type_matrix0(uint32_t);
62type_matrix0(int64_t);
63type_matrix0(uint64_t);
64type_matrix0(float);
65type_matrix0(double);
66type_matrix0(void_p);
67type_matrix0(rgb8);
68type_matrix0(rgbx8);
69type_matrix0(rgb32);
70type_matrix0(rgbx32);
71type_matrix0(complex32);
72type_matrix0(complex64);
73
74
75#if TARGET_OS == GIETVM
76
77#undef remote_type_matrix
78#define remote_type_matrix(t) \
79t ** short_name(t,remote_,matrix)(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)
80
81remote_type_matrix(int8_t);
82remote_type_matrix(uint8_t);
83remote_type_matrix(int16_t);
84remote_type_matrix(uint16_t);
85remote_type_matrix(int32_t);
86remote_type_matrix(uint32_t);
87remote_type_matrix(int64_t);
88remote_type_matrix(uint64_t);
89remote_type_matrix(float);
90remote_type_matrix(double);
91remote_type_matrix(void_p);
92remote_type_matrix(rgb8);
93remote_type_matrix(rgbx8);
94remote_type_matrix(rgb32);
95remote_type_matrix(rgbx32);
96remote_type_matrix(complex32);
97remote_type_matrix(complex64);
98
99#endif
100
101
102#undef free_type_matrix
103#define free_type_matrix(t) \
104void short_name(t,free_,matrix)(t ** m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch)
105
106free_type_matrix(int8_t);
107free_type_matrix(uint8_t);
108free_type_matrix(int16_t);
109free_type_matrix(uint16_t);
110free_type_matrix(int32_t);
111free_type_matrix(uint32_t);
112free_type_matrix(int64_t);
113free_type_matrix(uint64_t);
114free_type_matrix(float);
115free_type_matrix(double);
116free_type_matrix(void_p);
117free_type_matrix(rgb8);
118free_type_matrix(rgbx8);
119free_type_matrix(rgb32);
120free_type_matrix(rgbx32);
121free_type_matrix(complex32);
122free_type_matrix(complex64);
123
124
125#endif /* __NRALLOC2_H__ */
126
127// Local Variables:
128// tab-width: 4
129// c-basic-offset: 4
130// c-file-offsets:((innamespace . 0)(inline-open . 0))
131// indent-tabs-mode: nil
132// End:
133// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
134
Note: See TracBrowser for help on using the repository browser.