source: soft/giet_vm/applications/rosenfeld/nrc2/include/nralloc3.h @ 821

Last change on this file since 821 was 821, checked in by meunier, 8 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: 1.4 KB
Line 
1/* ------------------ */
2/* --- nralloc3.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#ifndef __NRALLOC3_H__
13#define __NRALLOC3_H__
14
15#include "nrc_os_config.h"
16
17//double*** d3tensor(long nrl, long nrh, long ncl, long nch, long ndl, long ndh);
18//void free_d3tensor(double  ***t,long nrl,long nrh,long ncl,long nch,long ndl,long ndh);
19
20#define type_cube(t) \
21t *** short_name(t,,cube)(int32_t ndl, int32_t ndh, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch) \
22
23
24type_cube(int8_t);
25type_cube(uint8_t);
26type_cube(int16_t);
27type_cube(uint16_t);
28type_cube(int32_t);
29type_cube(uint32_t);
30type_cube(int64_t);
31type_cube(uint64_t);
32type_cube(float);
33type_cube(double);
34type_cube(rgb8);
35type_cube(rgbx8);
36
37#define free_type_cube(t) \
38void short_name(t,free_,cube)(t *** c, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t ndl, int32_t ndh) \
39
40free_type_cube(int8_t);
41free_type_cube(uint8_t);
42free_type_cube(int16_t);
43free_type_cube(uint16_t);
44free_type_cube(int32_t);
45free_type_cube(uint32_t);
46free_type_cube(int64_t);
47free_type_cube(uint64_t);
48free_type_cube(float);
49free_type_cube(double);
50free_type_cube(rgb8);
51free_type_cube(rgbx8);
52
53
54#endif /* __NRALLOC3_H__ */
55
56// Local Variables:
57// tab-width: 4
58// c-basic-offset: 4
59// c-file-offsets:((innamespace . 0)(inline-open . 0))
60// indent-tabs-mode: nil
61// End:
62
63// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
64
Note: See TracBrowser for help on using the repository browser.