[772] | 1 | /* ----------------- */ |
---|
| 2 | /* --- nrbool1.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_BOOL1_H_ |
---|
| 11 | #define _NR_BOOL1_H_ |
---|
| 12 | |
---|
| 13 | |
---|
[822] | 14 | /* ========================== */ |
---|
| 15 | /* === Logical operations === */ |
---|
| 16 | /* ========================== */ |
---|
[772] | 17 | |
---|
| 18 | /* ----------- */ |
---|
| 19 | /* --- Not --- */ |
---|
| 20 | /* ----------- */ |
---|
| 21 | /* Y = ! Y */ |
---|
| 22 | |
---|
[822] | 23 | #define not_type_vector(t) \ |
---|
| 24 | void short_name(t,not_,vector)(t * X, int32_t ncl, int32_t nch, t * Y) |
---|
| 25 | |
---|
| 26 | not_type_vector(int8_t); |
---|
| 27 | not_type_vector(uint8_t); |
---|
| 28 | not_type_vector(int16_t); |
---|
| 29 | not_type_vector(uint16_t); |
---|
| 30 | not_type_vector(int32_t); |
---|
| 31 | not_type_vector(uint32_t); |
---|
| 32 | not_type_vector(int64_t); |
---|
| 33 | not_type_vector(uint64_t); |
---|
| 34 | not_type_vector(rgb8); |
---|
| 35 | not_type_vector(rgbx8); |
---|
| 36 | |
---|
| 37 | |
---|
[772] | 38 | /* ---------- */ |
---|
| 39 | /* --- Or --- */ |
---|
| 40 | /* ---------- */ |
---|
| 41 | /* Z = X | Y */ |
---|
| 42 | |
---|
[822] | 43 | #define or_type_vector(t) \ |
---|
| 44 | void short_name(t,or_,vector)(t * X, int32_t ncl, int32_t nch, t * Y, t * Z); \ |
---|
| 45 | void short_name(t,orc_,vector)(t * X, int32_t ncl, int32_t nch, t y, t * Z) |
---|
[772] | 46 | |
---|
[822] | 47 | or_type_vector(int8_t); |
---|
| 48 | or_type_vector(uint8_t); |
---|
| 49 | or_type_vector(int16_t); |
---|
| 50 | or_type_vector(uint16_t); |
---|
| 51 | or_type_vector(int32_t); |
---|
| 52 | or_type_vector(uint32_t); |
---|
| 53 | or_type_vector(int64_t); |
---|
| 54 | or_type_vector(uint64_t); |
---|
| 55 | or_type_vector(rgb8); |
---|
| 56 | or_type_vector(rgbx8); |
---|
[772] | 57 | |
---|
[822] | 58 | |
---|
[772] | 59 | /* ----------- */ |
---|
| 60 | /* --- Xor --- */ |
---|
| 61 | /* ----------- */ |
---|
| 62 | /* Z = X ^ Y */ |
---|
| 63 | |
---|
[822] | 64 | #define xor_type_vector(t) \ |
---|
| 65 | void short_name(t,xor_,vector)(t * X, int32_t ncl, int32_t nch, t * Y, t * Z); \ |
---|
| 66 | void short_name(t,xorc_,vector)(t * X, int32_t ncl, int32_t nch, t y, t * Z) |
---|
[772] | 67 | |
---|
[822] | 68 | xor_type_vector(int8_t); |
---|
| 69 | xor_type_vector(uint8_t); |
---|
| 70 | xor_type_vector(int16_t); |
---|
| 71 | xor_type_vector(uint16_t); |
---|
| 72 | xor_type_vector(int32_t); |
---|
| 73 | xor_type_vector(uint32_t); |
---|
| 74 | xor_type_vector(int64_t); |
---|
| 75 | xor_type_vector(uint64_t); |
---|
| 76 | xor_type_vector(rgb8); |
---|
| 77 | xor_type_vector(rgbx8); |
---|
[772] | 78 | |
---|
[822] | 79 | |
---|
[772] | 80 | /* ----------- */ |
---|
| 81 | /* --- And --- */ |
---|
| 82 | /* ----------- */ |
---|
| 83 | /* Z = X & Y */ |
---|
| 84 | |
---|
[822] | 85 | #define and_type_vector(t) \ |
---|
| 86 | void short_name(t,and_,vector)(t * X, int32_t ncl, int32_t nch, t * Y, t * Z); \ |
---|
| 87 | void short_name(t,andc_,vector)(t * X, int32_t ncl, int32_t nch, t y, t * Z) |
---|
[772] | 88 | |
---|
[822] | 89 | and_type_vector(int8_t); |
---|
| 90 | and_type_vector(uint8_t); |
---|
| 91 | and_type_vector(int16_t); |
---|
| 92 | and_type_vector(uint16_t); |
---|
| 93 | and_type_vector(int32_t); |
---|
| 94 | and_type_vector(uint32_t); |
---|
| 95 | and_type_vector(int64_t); |
---|
| 96 | and_type_vector(uint64_t); |
---|
| 97 | and_type_vector(rgb8); |
---|
| 98 | and_type_vector(rgbx8); |
---|
[772] | 99 | |
---|
| 100 | |
---|
[822] | 101 | #endif // _NR_BOOL1_H_ |
---|
[772] | 102 | |
---|
[822] | 103 | // Local Variables: |
---|
| 104 | // tab-width: 4 |
---|
| 105 | // c-basic-offset: 4 |
---|
| 106 | // c-file-offsets:((innamespace . 0)(inline-open . 0)) |
---|
| 107 | // indent-tabs-mode: nil |
---|
| 108 | // End: |
---|
| 109 | |
---|
| 110 | // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
---|
| 111 | |
---|