[772] | 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 | |
---|
[821] | 18 | #include "nrc_os_config.h" |
---|
[772] | 19 | |
---|
| 20 | /* |
---|
| 21 | * -------------- |
---|
| 22 | * --- matrix --- |
---|
| 23 | * -------------- |
---|
| 24 | */ |
---|
| 25 | |
---|
| 26 | |
---|
[821] | 27 | #undef type_matrix |
---|
| 28 | #define type_matrix(t) \ |
---|
| 29 | t ** short_name(t,,matrix)(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch) |
---|
[772] | 30 | |
---|
| 31 | |
---|
[821] | 32 | type_matrix(int8_t); |
---|
| 33 | type_matrix(uint8_t); |
---|
| 34 | type_matrix(int16_t); |
---|
| 35 | type_matrix(uint16_t); |
---|
| 36 | type_matrix(int32_t); |
---|
| 37 | type_matrix(uint32_t); |
---|
| 38 | type_matrix(int64_t); |
---|
| 39 | type_matrix(uint64_t); |
---|
| 40 | type_matrix(float); |
---|
| 41 | type_matrix(double); |
---|
| 42 | type_matrix(void_p); |
---|
| 43 | type_matrix(rgb8); |
---|
| 44 | type_matrix(rgbx8); |
---|
| 45 | type_matrix(rgb32); |
---|
| 46 | type_matrix(rgbx32); |
---|
| 47 | type_matrix(complex32); |
---|
| 48 | type_matrix(complex64); |
---|
[772] | 49 | |
---|
| 50 | |
---|
[821] | 51 | #undef type_matrix0 |
---|
| 52 | #define type_matrix0(t) \ |
---|
| 53 | t ** short_name(t,,matrix0)(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch) |
---|
[772] | 54 | |
---|
| 55 | |
---|
[821] | 56 | type_matrix0(int8_t); |
---|
| 57 | type_matrix0(uint8_t); |
---|
| 58 | type_matrix0(int16_t); |
---|
| 59 | type_matrix0(uint16_t); |
---|
| 60 | type_matrix0(int32_t); |
---|
| 61 | type_matrix0(uint32_t); |
---|
| 62 | type_matrix0(int64_t); |
---|
| 63 | type_matrix0(uint64_t); |
---|
| 64 | type_matrix0(float); |
---|
| 65 | type_matrix0(double); |
---|
| 66 | type_matrix0(void_p); |
---|
| 67 | type_matrix0(rgb8); |
---|
| 68 | type_matrix0(rgbx8); |
---|
| 69 | type_matrix0(rgb32); |
---|
| 70 | type_matrix0(rgbx32); |
---|
| 71 | type_matrix0(complex32); |
---|
| 72 | type_matrix0(complex64); |
---|
[772] | 73 | |
---|
| 74 | |
---|
[821] | 75 | #if TARGET_OS == GIETVM |
---|
[772] | 76 | |
---|
[821] | 77 | #undef remote_type_matrix |
---|
| 78 | #define remote_type_matrix(t) \ |
---|
[826] | 79 | t ** short_name(t,remote_,matrix)(int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, int32_t x, int32_t y) |
---|
[772] | 80 | |
---|
[821] | 81 | remote_type_matrix(int8_t); |
---|
| 82 | remote_type_matrix(uint8_t); |
---|
| 83 | remote_type_matrix(int16_t); |
---|
| 84 | remote_type_matrix(uint16_t); |
---|
| 85 | remote_type_matrix(int32_t); |
---|
| 86 | remote_type_matrix(uint32_t); |
---|
| 87 | remote_type_matrix(int64_t); |
---|
| 88 | remote_type_matrix(uint64_t); |
---|
| 89 | remote_type_matrix(float); |
---|
| 90 | remote_type_matrix(double); |
---|
| 91 | remote_type_matrix(void_p); |
---|
| 92 | remote_type_matrix(rgb8); |
---|
| 93 | remote_type_matrix(rgbx8); |
---|
| 94 | remote_type_matrix(rgb32); |
---|
| 95 | remote_type_matrix(rgbx32); |
---|
| 96 | remote_type_matrix(complex32); |
---|
| 97 | remote_type_matrix(complex64); |
---|
| 98 | |
---|
[772] | 99 | #endif |
---|
| 100 | |
---|
[821] | 101 | |
---|
| 102 | #undef free_type_matrix |
---|
| 103 | #define free_type_matrix(t) \ |
---|
| 104 | void short_name(t,free_,matrix)(t ** m, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch) |
---|
| 105 | |
---|
| 106 | free_type_matrix(int8_t); |
---|
| 107 | free_type_matrix(uint8_t); |
---|
| 108 | free_type_matrix(int16_t); |
---|
| 109 | free_type_matrix(uint16_t); |
---|
| 110 | free_type_matrix(int32_t); |
---|
| 111 | free_type_matrix(uint32_t); |
---|
| 112 | free_type_matrix(int64_t); |
---|
| 113 | free_type_matrix(uint64_t); |
---|
| 114 | free_type_matrix(float); |
---|
| 115 | free_type_matrix(double); |
---|
| 116 | free_type_matrix(void_p); |
---|
| 117 | free_type_matrix(rgb8); |
---|
| 118 | free_type_matrix(rgbx8); |
---|
| 119 | free_type_matrix(rgb32); |
---|
| 120 | free_type_matrix(rgbx32); |
---|
| 121 | free_type_matrix(complex32); |
---|
| 122 | free_type_matrix(complex64); |
---|
| 123 | |
---|
| 124 | |
---|
[772] | 125 | #endif /* __NRALLOC2_H__ */ |
---|
[821] | 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 | |
---|