[772] | 1 | /* ----------------- */ |
---|
| 2 | /* --- nrbool2.h --- */ |
---|
| 3 | /* ----------------- */ |
---|
| 4 | |
---|
| 5 | /* |
---|
| 6 | * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved |
---|
| 7 | * Univ Paris Sud XI, CNRS |
---|
| 8 | */ |
---|
| 9 | |
---|
| 10 | #ifndef _NR_BOOL2_H_ |
---|
| 11 | #define _NR_BOOL2_H_ |
---|
| 12 | |
---|
[822] | 13 | #include "nrc_os_config.h" |
---|
[772] | 14 | |
---|
| 15 | |
---|
[822] | 16 | #define cmpeq_type_matrix(t) \ |
---|
| 17 | int32_t short_name(t,cmpeq_,matrix)(t ** X, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, t ** Y) |
---|
[772] | 18 | |
---|
[822] | 19 | cmpeq_type_matrix(int8_t); |
---|
| 20 | cmpeq_type_matrix(uint8_t); |
---|
| 21 | cmpeq_type_matrix(int16_t); |
---|
| 22 | cmpeq_type_matrix(uint16_t); |
---|
| 23 | cmpeq_type_matrix(int32_t); |
---|
| 24 | cmpeq_type_matrix(uint32_t); |
---|
| 25 | cmpeq_type_matrix(int64_t); |
---|
| 26 | cmpeq_type_matrix(uint64_t); |
---|
[772] | 27 | |
---|
[822] | 28 | |
---|
[772] | 29 | /* |
---|
| 30 | * ----------- |
---|
| 31 | * --- Not --- |
---|
| 32 | * ----------- |
---|
| 33 | */ |
---|
| 34 | |
---|
[822] | 35 | #define not_type_matrix(t) \ |
---|
| 36 | void short_name(t,not_,matrix)(t ** X, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, t ** Y) |
---|
[772] | 37 | |
---|
[822] | 38 | not_type_matrix(int8_t); |
---|
| 39 | not_type_matrix(uint8_t); |
---|
| 40 | not_type_matrix(int16_t); |
---|
| 41 | not_type_matrix(uint16_t); |
---|
| 42 | not_type_matrix(int32_t); |
---|
| 43 | not_type_matrix(uint32_t); |
---|
| 44 | not_type_matrix(int64_t); |
---|
| 45 | not_type_matrix(uint64_t); |
---|
| 46 | not_type_matrix(rgb8); |
---|
| 47 | not_type_matrix(rgbx8); |
---|
| 48 | |
---|
| 49 | |
---|
[772] | 50 | /* |
---|
| 51 | * ---------- |
---|
| 52 | * --- Or --- |
---|
| 53 | * ---------- |
---|
| 54 | */ |
---|
| 55 | |
---|
[822] | 56 | #define or_type_matrix(t) \ |
---|
| 57 | void short_name(t,or_,matrix)(t ** X, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, t ** Y, t ** Z); \ |
---|
| 58 | void short_name(t,orc_,matrix)(t ** X, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, t y, t ** Z) |
---|
[772] | 59 | |
---|
[822] | 60 | or_type_matrix(int8_t); |
---|
| 61 | or_type_matrix(uint8_t); |
---|
| 62 | or_type_matrix(int16_t); |
---|
| 63 | or_type_matrix(uint16_t); |
---|
| 64 | or_type_matrix(int32_t); |
---|
| 65 | or_type_matrix(uint32_t); |
---|
| 66 | or_type_matrix(int64_t); |
---|
| 67 | or_type_matrix(uint64_t); |
---|
| 68 | or_type_matrix(rgb8); |
---|
| 69 | or_type_matrix(rgbx8); |
---|
[772] | 70 | |
---|
[822] | 71 | |
---|
[772] | 72 | /* |
---|
| 73 | * ----------- |
---|
| 74 | * --- Xor --- |
---|
| 75 | * ----------- |
---|
| 76 | */ |
---|
| 77 | |
---|
[822] | 78 | #define xor_type_matrix(t) \ |
---|
| 79 | void short_name(t,xor_,matrix)(t ** X, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, t ** Y, t ** Z); \ |
---|
| 80 | void short_name(t,xorc_,matrix)(t ** X, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, t y, t ** Z) |
---|
[772] | 81 | |
---|
[822] | 82 | xor_type_matrix(int8_t); |
---|
| 83 | xor_type_matrix(uint8_t); |
---|
| 84 | xor_type_matrix(int16_t); |
---|
| 85 | xor_type_matrix(uint16_t); |
---|
| 86 | xor_type_matrix(int32_t); |
---|
| 87 | xor_type_matrix(uint32_t); |
---|
| 88 | xor_type_matrix(int64_t); |
---|
| 89 | xor_type_matrix(uint64_t); |
---|
| 90 | xor_type_matrix(rgb8); |
---|
| 91 | xor_type_matrix(rgbx8); |
---|
[772] | 92 | |
---|
[822] | 93 | |
---|
[772] | 94 | /* |
---|
[822] | 95 | * ---------- |
---|
[772] | 96 | * --- And --- |
---|
[822] | 97 | * ---------- |
---|
[772] | 98 | */ |
---|
| 99 | |
---|
[822] | 100 | #define and_type_matrix(t) \ |
---|
| 101 | void short_name(t,and_,matrix)(t ** X, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, t ** Y, t ** Z); \ |
---|
| 102 | void short_name(t,andc_,matrix)(t ** X, int32_t nrl, int32_t nrh, int32_t ncl, int32_t nch, t y, t ** Z) |
---|
[772] | 103 | |
---|
[822] | 104 | and_type_matrix(int8_t); |
---|
| 105 | and_type_matrix(uint8_t); |
---|
| 106 | and_type_matrix(int16_t); |
---|
| 107 | and_type_matrix(uint16_t); |
---|
| 108 | and_type_matrix(int32_t); |
---|
| 109 | and_type_matrix(uint32_t); |
---|
| 110 | and_type_matrix(int64_t); |
---|
| 111 | and_type_matrix(uint64_t); |
---|
| 112 | and_type_matrix(rgb8); |
---|
| 113 | and_type_matrix(rgbx8); |
---|
[772] | 114 | |
---|
| 115 | |
---|
| 116 | #endif // _NR_BOOL2_H_ |
---|
[822] | 117 | |
---|
| 118 | // Local Variables: |
---|
| 119 | // tab-width: 4 |
---|
| 120 | // c-basic-offset: 4 |
---|
| 121 | // c-file-offsets:((innamespace . 0)(inline-open . 0)) |
---|
| 122 | // indent-tabs-mode: nil |
---|
| 123 | // End: |
---|
| 124 | |
---|
| 125 | // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
---|
| 126 | |
---|