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) \ |
---|
21 | t *** short_name(t,,cube)(int32_t ndl, int32_t ndh, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch) \ |
---|
22 | |
---|
23 | |
---|
24 | type_cube(int8_t); |
---|
25 | type_cube(uint8_t); |
---|
26 | type_cube(int16_t); |
---|
27 | type_cube(uint16_t); |
---|
28 | type_cube(int32_t); |
---|
29 | type_cube(uint32_t); |
---|
30 | type_cube(int64_t); |
---|
31 | type_cube(uint64_t); |
---|
32 | type_cube(float); |
---|
33 | type_cube(double); |
---|
34 | type_cube(rgb8); |
---|
35 | type_cube(rgbx8); |
---|
36 | |
---|
37 | #define free_type_cube(t) \ |
---|
38 | void 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 | |
---|
40 | free_type_cube(int8_t); |
---|
41 | free_type_cube(uint8_t); |
---|
42 | free_type_cube(int16_t); |
---|
43 | free_type_cube(uint16_t); |
---|
44 | free_type_cube(int32_t); |
---|
45 | free_type_cube(uint32_t); |
---|
46 | free_type_cube(int64_t); |
---|
47 | free_type_cube(uint64_t); |
---|
48 | free_type_cube(float); |
---|
49 | free_type_cube(double); |
---|
50 | free_type_cube(rgb8); |
---|
51 | free_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 | |
---|