test_inputs_32.h (3021B)
1/* 2 * Header file for pattern and random test inputs 3 * 4 * Copyright (C) 2019 Wave Computing, Inc. 5 * Copyright (C) 2019 Aleksandar Markovic <amarkovic@wavecomp.com> 6 * 7 * This program is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program. If not, see <https://www.gnu.org/licenses/>. 19 * 20 */ 21 22#ifndef TEST_INPUTS_32_H 23#define TEST_INPUTS_32_H 24 25#include <stdint.h> 26 27 28#define PATTERN_INPUTS_32_COUNT 64 29#define PATTERN_INPUTS_32_SHORT_COUNT 8 30 31static const uint32_t b32_pattern[PATTERN_INPUTS_32_COUNT] = { 32 0xFFFFFFFF, /* 0 */ 33 0x00000000, 34 0xAAAAAAAA, 35 0x55555555, 36 0xCCCCCCCC, 37 0x33333333, 38 0xE38E38E3, 39 0x1C71C71C, 40 0xF0F0F0F0, /* 8 */ 41 0x0F0F0F0F, 42 0xF83E0F83, 43 0x07C1F07C, 44 0xFC0FC0FC, 45 0x03F03F03, 46 0xFE03F80F, 47 0x01FC07F0, 48 0xFF00FF00, /* 16 */ 49 0x00FF00FF, 50 0xFF803FE0, 51 0x007FC01F, 52 0xFFC00FFC, 53 0x003FF003, 54 0xFFE003FF, 55 0x001FFC00, 56 0xFFF000FF, /* 24 */ 57 0x000FFF00, 58 0xFFF8003F, 59 0x0007FFC0, 60 0xFFFC000F, 61 0x0003FFF0, 62 0xFFFE0003, 63 0x0001FFFC, 64 0xFFFF0000, /* 32 */ 65 0x0000FFFF, 66 0xFFFF8000, 67 0x00007FFF, 68 0xFFFFC000, 69 0x00003FFF, 70 0xFFFFE000, 71 0x00001FFF, 72 0xFFFFF000, /* 40 */ 73 0x00000FFF, 74 0xFFFFF800, 75 0x000007FF, 76 0xFFFFFC00, 77 0x000003FF, 78 0xFFFFFE00, 79 0x000001FF, 80 0xFFFFFF00, /* 48 */ 81 0x000000FF, 82 0xFFFFFF80, 83 0x0000007F, 84 0xFFFFFFC0, 85 0x0000003F, 86 0xFFFFFFE0, 87 0x0000001F, 88 0xFFFFFFF0, /* 56 */ 89 0x0000000F, 90 0xFFFFFFF8, 91 0x00000007, 92 0xFFFFFFFC, 93 0x00000003, 94 0xFFFFFFFE, 95 0x00000001, 96}; 97 98 99#define RANDOM_INPUTS_32_COUNT 16 100#define RANDOM_INPUTS_32_SHORT_COUNT 4 101 102static const uint32_t b32_random[RANDOM_INPUTS_32_COUNT] = { 103 0x886AE6CC, /* 0 */ 104 0xFBBE0063, 105 0xAC5AAEAA, 106 0x704F164D, 107 0xB9926B7C, 108 0xD027BE89, 109 0xB83B5806, 110 0xFC8F23F0, 111 0x201E09CD, /* 8 */ 112 0xA57CD913, 113 0xA2E8F6F5, 114 0xA89CF2F1, 115 0xE61438E9, 116 0x944A35FD, 117 0x46304263, 118 0x8B5AA7A2, 119}; 120 121 122#endif