| 1 |
/* SPDX-License-Identifier: MIT |
| 2 |
* |
| 3 |
* Permission is hereby granted, free of charge, to any person |
| 4 |
* obtaining a copy of this software and associated documentation |
| 5 |
* files (the "Software"), to deal in the Software without |
| 6 |
* restriction, including without limitation the rights to use, copy, |
| 7 |
* modify, merge, publish, distribute, sublicense, and/or sell copies |
| 8 |
* of the Software, and to permit persons to whom the Software is |
| 9 |
* furnished to do so, subject to the following conditions: |
| 10 |
* |
| 11 |
* The above copyright notice and this permission notice shall be |
| 12 |
* included in all copies or substantial portions of the Software. |
| 13 |
* |
| 14 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 15 |
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 16 |
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 17 |
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS |
| 18 |
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
| 19 |
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 20 |
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 21 |
* SOFTWARE. |
| 22 |
* |
| 23 |
* Copyright: |
| 24 |
* 2020 Evan Nemerson <[email protected]> |
| 25 |
*/ |
| 26 |
|
| 27 |
/* Constify macros. For internal use only. |
| 28 |
* |
| 29 |
* These are used to make it possible to call a function which takes |
| 30 |
* an Integer Constant Expression (ICE) using a compile time constant. |
| 31 |
* Technically it would also be possible to use a value not trivially |
| 32 |
* known by the compiler, but there would be a siginficant performance |
| 33 |
* hit (a switch switch is used). |
| 34 |
* |
| 35 |
* The basic idea is pretty simple; we just emit a do while loop which |
| 36 |
* contains a switch with a case for every possible value of the |
| 37 |
* constant. |
| 38 |
* |
| 39 |
* As long as the value you pass to the function in constant, pretty |
| 40 |
* much any copmiler shouldn't have a problem generating exactly the |
| 41 |
* same code as if you had used an ICE. |
| 42 |
* |
| 43 |
* This is intended to be used in the SIMDe implementations of |
| 44 |
* functions the compilers require to be an ICE, but the other benefit |
| 45 |
* is that if we also disable the warnings from |
| 46 |
* SIMDE_REQUIRE_CONSTANT_RANGE we can actually just allow the tests |
| 47 |
* to use non-ICE parameters |
| 48 |
*/ |
| 49 |
|
| 50 |
#if !defined(SIMDE_CONSTIFY_H) |
| 51 |
#define SIMDE_CONSTIFY_H |
| 52 |
|
| 53 |
#include "simde-diagnostic.h" |
| 54 |
|
| 55 |
HEDLEY_DIAGNOSTIC_PUSH |
| 56 |
SIMDE_DIAGNOSTIC_DISABLE_VARIADIC_MACROS_ |
| 57 |
SIMDE_DIAGNOSTIC_DISABLE_CPP98_COMPAT_PEDANTIC_ |
| 58 |
|
| 59 |
#define SIMDE_CONSTIFY_2_(func_name, result, default_case, imm, ...) \ |
| 60 |
do { \ |
| 61 |
switch(imm) { \ |
| 62 |
case 0: result = func_name(__VA_ARGS__, 0); break; \ |
| 63 |
case 1: result = func_name(__VA_ARGS__, 1); break; \ |
| 64 |
default: result = default_case; break; \ |
| 65 |
} \ |
| 66 |
} while (0) |
| 67 |
|
| 68 |
#define SIMDE_CONSTIFY_4_(func_name, result, default_case, imm, ...) \ |
| 69 |
do { \ |
| 70 |
switch(imm) { \ |
| 71 |
case 0: result = func_name(__VA_ARGS__, 0); break; \ |
| 72 |
case 1: result = func_name(__VA_ARGS__, 1); break; \ |
| 73 |
case 2: result = func_name(__VA_ARGS__, 2); break; \ |
| 74 |
case 3: result = func_name(__VA_ARGS__, 3); break; \ |
| 75 |
default: result = default_case; break; \ |
| 76 |
} \ |
| 77 |
} while (0) |
| 78 |
|
| 79 |
#define SIMDE_CONSTIFY_8_(func_name, result, default_case, imm, ...) \ |
| 80 |
do { \ |
| 81 |
switch(imm) { \ |
| 82 |
case 0: result = func_name(__VA_ARGS__, 0); break; \ |
| 83 |
case 1: result = func_name(__VA_ARGS__, 1); break; \ |
| 84 |
case 2: result = func_name(__VA_ARGS__, 2); break; \ |
| 85 |
case 3: result = func_name(__VA_ARGS__, 3); break; \ |
| 86 |
case 4: result = func_name(__VA_ARGS__, 4); break; \ |
| 87 |
case 5: result = func_name(__VA_ARGS__, 5); break; \ |
| 88 |
case 6: result = func_name(__VA_ARGS__, 6); break; \ |
| 89 |
case 7: result = func_name(__VA_ARGS__, 7); break; \ |
| 90 |
default: result = default_case; break; \ |
| 91 |
} \ |
| 92 |
} while (0) |
| 93 |
|
| 94 |
#define SIMDE_CONSTIFY_16_(func_name, result, default_case, imm, ...) \ |
| 95 |
do { \ |
| 96 |
switch(imm) { \ |
| 97 |
case 0: result = func_name(__VA_ARGS__, 0); break; \ |
| 98 |
case 1: result = func_name(__VA_ARGS__, 1); break; \ |
| 99 |
case 2: result = func_name(__VA_ARGS__, 2); break; \ |
| 100 |
case 3: result = func_name(__VA_ARGS__, 3); break; \ |
| 101 |
case 4: result = func_name(__VA_ARGS__, 4); break; \ |
| 102 |
case 5: result = func_name(__VA_ARGS__, 5); break; \ |
| 103 |
case 6: result = func_name(__VA_ARGS__, 6); break; \ |
| 104 |
case 7: result = func_name(__VA_ARGS__, 7); break; \ |
| 105 |
case 8: result = func_name(__VA_ARGS__, 8); break; \ |
| 106 |
case 9: result = func_name(__VA_ARGS__, 9); break; \ |
| 107 |
case 10: result = func_name(__VA_ARGS__, 10); break; \ |
| 108 |
case 11: result = func_name(__VA_ARGS__, 11); break; \ |
| 109 |
case 12: result = func_name(__VA_ARGS__, 12); break; \ |
| 110 |
case 13: result = func_name(__VA_ARGS__, 13); break; \ |
| 111 |
case 14: result = func_name(__VA_ARGS__, 14); break; \ |
| 112 |
case 15: result = func_name(__VA_ARGS__, 15); break; \ |
| 113 |
default: result = default_case; break; \ |
| 114 |
} \ |
| 115 |
} while (0) |
| 116 |
|
| 117 |
#define SIMDE_CONSTIFY_32_(func_name, result, default_case, imm, ...) \ |
| 118 |
do { \ |
| 119 |
switch(imm) { \ |
| 120 |
case 0: result = func_name(__VA_ARGS__, 0); break; \ |
| 121 |
case 1: result = func_name(__VA_ARGS__, 1); break; \ |
| 122 |
case 2: result = func_name(__VA_ARGS__, 2); break; \ |
| 123 |
case 3: result = func_name(__VA_ARGS__, 3); break; \ |
| 124 |
case 4: result = func_name(__VA_ARGS__, 4); break; \ |
| 125 |
case 5: result = func_name(__VA_ARGS__, 5); break; \ |
| 126 |
case 6: result = func_name(__VA_ARGS__, 6); break; \ |
| 127 |
case 7: result = func_name(__VA_ARGS__, 7); break; \ |
| 128 |
case 8: result = func_name(__VA_ARGS__, 8); break; \ |
| 129 |
case 9: result = func_name(__VA_ARGS__, 9); break; \ |
| 130 |
case 10: result = func_name(__VA_ARGS__, 10); break; \ |
| 131 |
case 11: result = func_name(__VA_ARGS__, 11); break; \ |
| 132 |
case 12: result = func_name(__VA_ARGS__, 12); break; \ |
| 133 |
case 13: result = func_name(__VA_ARGS__, 13); break; \ |
| 134 |
case 14: result = func_name(__VA_ARGS__, 14); break; \ |
| 135 |
case 15: result = func_name(__VA_ARGS__, 15); break; \ |
| 136 |
case 16: result = func_name(__VA_ARGS__, 16); break; \ |
| 137 |
case 17: result = func_name(__VA_ARGS__, 17); break; \ |
| 138 |
case 18: result = func_name(__VA_ARGS__, 18); break; \ |
| 139 |
case 19: result = func_name(__VA_ARGS__, 19); break; \ |
| 140 |
case 20: result = func_name(__VA_ARGS__, 20); break; \ |
| 141 |
case 21: result = func_name(__VA_ARGS__, 21); break; \ |
| 142 |
case 22: result = func_name(__VA_ARGS__, 22); break; \ |
| 143 |
case 23: result = func_name(__VA_ARGS__, 23); break; \ |
| 144 |
case 24: result = func_name(__VA_ARGS__, 24); break; \ |
| 145 |
case 25: result = func_name(__VA_ARGS__, 25); break; \ |
| 146 |
case 26: result = func_name(__VA_ARGS__, 26); break; \ |
| 147 |
case 27: result = func_name(__VA_ARGS__, 27); break; \ |
| 148 |
case 28: result = func_name(__VA_ARGS__, 28); break; \ |
| 149 |
case 29: result = func_name(__VA_ARGS__, 29); break; \ |
| 150 |
case 30: result = func_name(__VA_ARGS__, 30); break; \ |
| 151 |
case 31: result = func_name(__VA_ARGS__, 31); break; \ |
| 152 |
default: result = default_case; break; \ |
| 153 |
} \ |
| 154 |
} while (0) |
| 155 |
|
| 156 |
#define SIMDE_CONSTIFY_64_(func_name, result, default_case, imm, ...) \ |
| 157 |
do { \ |
| 158 |
switch(imm) { \ |
| 159 |
case 0: result = func_name(__VA_ARGS__, 0); break; \ |
| 160 |
case 1: result = func_name(__VA_ARGS__, 1); break; \ |
| 161 |
case 2: result = func_name(__VA_ARGS__, 2); break; \ |
| 162 |
case 3: result = func_name(__VA_ARGS__, 3); break; \ |
| 163 |
case 4: result = func_name(__VA_ARGS__, 4); break; \ |
| 164 |
case 5: result = func_name(__VA_ARGS__, 5); break; \ |
| 165 |
case 6: result = func_name(__VA_ARGS__, 6); break; \ |
| 166 |
case 7: result = func_name(__VA_ARGS__, 7); break; \ |
| 167 |
case 8: result = func_name(__VA_ARGS__, 8); break; \ |
| 168 |
case 9: result = func_name(__VA_ARGS__, 9); break; \ |
| 169 |
case 10: result = func_name(__VA_ARGS__, 10); break; \ |
| 170 |
case 11: result = func_name(__VA_ARGS__, 11); break; \ |
| 171 |
case 12: result = func_name(__VA_ARGS__, 12); break; \ |
| 172 |
case 13: result = func_name(__VA_ARGS__, 13); break; \ |
| 173 |
case 14: result = func_name(__VA_ARGS__, 14); break; \ |
| 174 |
case 15: result = func_name(__VA_ARGS__, 15); break; \ |
| 175 |
case 16: result = func_name(__VA_ARGS__, 16); break; \ |
| 176 |
case 17: result = func_name(__VA_ARGS__, 17); break; \ |
| 177 |
case 18: result = func_name(__VA_ARGS__, 18); break; \ |
| 178 |
case 19: result = func_name(__VA_ARGS__, 19); break; \ |
| 179 |
case 20: result = func_name(__VA_ARGS__, 20); break; \ |
| 180 |
case 21: result = func_name(__VA_ARGS__, 21); break; \ |
| 181 |
case 22: result = func_name(__VA_ARGS__, 22); break; \ |
| 182 |
case 23: result = func_name(__VA_ARGS__, 23); break; \ |
| 183 |
case 24: result = func_name(__VA_ARGS__, 24); break; \ |
| 184 |
case 25: result = func_name(__VA_ARGS__, 25); break; \ |
| 185 |
case 26: result = func_name(__VA_ARGS__, 26); break; \ |
| 186 |
case 27: result = func_name(__VA_ARGS__, 27); break; \ |
| 187 |
case 28: result = func_name(__VA_ARGS__, 28); break; \ |
| 188 |
case 29: result = func_name(__VA_ARGS__, 29); break; \ |
| 189 |
case 30: result = func_name(__VA_ARGS__, 30); break; \ |
| 190 |
case 31: result = func_name(__VA_ARGS__, 31); break; \ |
| 191 |
case 32: result = func_name(__VA_ARGS__, 32); break; \ |
| 192 |
case 33: result = func_name(__VA_ARGS__, 33); break; \ |
| 193 |
case 34: result = func_name(__VA_ARGS__, 34); break; \ |
| 194 |
case 35: result = func_name(__VA_ARGS__, 35); break; \ |
| 195 |
case 36: result = func_name(__VA_ARGS__, 36); break; \ |
| 196 |
case 37: result = func_name(__VA_ARGS__, 37); break; \ |
| 197 |
case 38: result = func_name(__VA_ARGS__, 38); break; \ |
| 198 |
case 39: result = func_name(__VA_ARGS__, 39); break; \ |
| 199 |
case 40: result = func_name(__VA_ARGS__, 40); break; \ |
| 200 |
case 41: result = func_name(__VA_ARGS__, 41); break; \ |
| 201 |
case 42: result = func_name(__VA_ARGS__, 42); break; \ |
| 202 |
case 43: result = func_name(__VA_ARGS__, 43); break; \ |
| 203 |
case 44: result = func_name(__VA_ARGS__, 44); break; \ |
| 204 |
case 45: result = func_name(__VA_ARGS__, 45); break; \ |
| 205 |
case 46: result = func_name(__VA_ARGS__, 46); break; \ |
| 206 |
case 47: result = func_name(__VA_ARGS__, 47); break; \ |
| 207 |
case 48: result = func_name(__VA_ARGS__, 48); break; \ |
| 208 |
case 49: result = func_name(__VA_ARGS__, 49); break; \ |
| 209 |
case 50: result = func_name(__VA_ARGS__, 50); break; \ |
| 210 |
case 51: result = func_name(__VA_ARGS__, 51); break; \ |
| 211 |
case 52: result = func_name(__VA_ARGS__, 52); break; \ |
| 212 |
case 53: result = func_name(__VA_ARGS__, 53); break; \ |
| 213 |
case 54: result = func_name(__VA_ARGS__, 54); break; \ |
| 214 |
case 55: result = func_name(__VA_ARGS__, 55); break; \ |
| 215 |
case 56: result = func_name(__VA_ARGS__, 56); break; \ |
| 216 |
case 57: result = func_name(__VA_ARGS__, 57); break; \ |
| 217 |
case 58: result = func_name(__VA_ARGS__, 58); break; \ |
| 218 |
case 59: result = func_name(__VA_ARGS__, 59); break; \ |
| 219 |
case 60: result = func_name(__VA_ARGS__, 60); break; \ |
| 220 |
case 61: result = func_name(__VA_ARGS__, 61); break; \ |
| 221 |
case 62: result = func_name(__VA_ARGS__, 62); break; \ |
| 222 |
case 63: result = func_name(__VA_ARGS__, 63); break; \ |
| 223 |
default: result = default_case; break; \ |
| 224 |
} \ |
| 225 |
} while (0) |
| 226 |
|
| 227 |
#define SIMDE_CONSTIFY_2_NO_RESULT_(func_name, default_case, imm, ...) \ |
| 228 |
do { \ |
| 229 |
switch(imm) { \ |
| 230 |
case 0: func_name(__VA_ARGS__, 0); break; \ |
| 231 |
case 1: func_name(__VA_ARGS__, 1); break; \ |
| 232 |
default: default_case; break; \ |
| 233 |
} \ |
| 234 |
} while (0) |
| 235 |
|
| 236 |
#define SIMDE_CONSTIFY_4_NO_RESULT_(func_name, default_case, imm, ...) \ |
| 237 |
do { \ |
| 238 |
switch(imm) { \ |
| 239 |
case 0: func_name(__VA_ARGS__, 0); break; \ |
| 240 |
case 1: func_name(__VA_ARGS__, 1); break; \ |
| 241 |
case 2: func_name(__VA_ARGS__, 2); break; \ |
| 242 |
case 3: func_name(__VA_ARGS__, 3); break; \ |
| 243 |
default: default_case; break; \ |
| 244 |
} \ |
| 245 |
} while (0) |
| 246 |
|
| 247 |
#define SIMDE_CONSTIFY_8_NO_RESULT_(func_name, default_case, imm, ...) \ |
| 248 |
do { \ |
| 249 |
switch(imm) { \ |
| 250 |
case 0: func_name(__VA_ARGS__, 0); break; \ |
| 251 |
case 1: func_name(__VA_ARGS__, 1); break; \ |
| 252 |
case 2: func_name(__VA_ARGS__, 2); break; \ |
| 253 |
case 3: func_name(__VA_ARGS__, 3); break; \ |
| 254 |
case 4: func_name(__VA_ARGS__, 4); break; \ |
| 255 |
case 5: func_name(__VA_ARGS__, 5); break; \ |
| 256 |
case 6: func_name(__VA_ARGS__, 6); break; \ |
| 257 |
case 7: func_name(__VA_ARGS__, 7); break; \ |
| 258 |
default: default_case; break; \ |
| 259 |
} \ |
| 260 |
} while (0) |
| 261 |
|
| 262 |
#define SIMDE_CONSTIFY_16_NO_RESULT_(func_name, default_case, imm, ...) \ |
| 263 |
do { \ |
| 264 |
switch(imm) { \ |
| 265 |
case 0: func_name(__VA_ARGS__, 0); break; \ |
| 266 |
case 1: func_name(__VA_ARGS__, 1); break; \ |
| 267 |
case 2: func_name(__VA_ARGS__, 2); break; \ |
| 268 |
case 3: func_name(__VA_ARGS__, 3); break; \ |
| 269 |
case 4: func_name(__VA_ARGS__, 4); break; \ |
| 270 |
case 5: func_name(__VA_ARGS__, 5); break; \ |
| 271 |
case 6: func_name(__VA_ARGS__, 6); break; \ |
| 272 |
case 7: func_name(__VA_ARGS__, 7); break; \ |
| 273 |
case 8: func_name(__VA_ARGS__, 8); break; \ |
| 274 |
case 9: func_name(__VA_ARGS__, 9); break; \ |
| 275 |
case 10: func_name(__VA_ARGS__, 10); break; \ |
| 276 |
case 11: func_name(__VA_ARGS__, 11); break; \ |
| 277 |
case 12: func_name(__VA_ARGS__, 12); break; \ |
| 278 |
case 13: func_name(__VA_ARGS__, 13); break; \ |
| 279 |
case 14: func_name(__VA_ARGS__, 14); break; \ |
| 280 |
case 15: func_name(__VA_ARGS__, 15); break; \ |
| 281 |
default: default_case; break; \ |
| 282 |
} \ |
| 283 |
} while (0) |
| 284 |
|
| 285 |
#define SIMDE_CONSTIFY_32_NO_RESULT_(func_name, default_case, imm, ...) \ |
| 286 |
do { \ |
| 287 |
switch(imm) { \ |
| 288 |
case 0: func_name(__VA_ARGS__, 0); break; \ |
| 289 |
case 1: func_name(__VA_ARGS__, 1); break; \ |
| 290 |
case 2: func_name(__VA_ARGS__, 2); break; \ |
| 291 |
case 3: func_name(__VA_ARGS__, 3); break; \ |
| 292 |
case 4: func_name(__VA_ARGS__, 4); break; \ |
| 293 |
case 5: func_name(__VA_ARGS__, 5); break; \ |
| 294 |
case 6: func_name(__VA_ARGS__, 6); break; \ |
| 295 |
case 7: func_name(__VA_ARGS__, 7); break; \ |
| 296 |
case 8: func_name(__VA_ARGS__, 8); break; \ |
| 297 |
case 9: func_name(__VA_ARGS__, 9); break; \ |
| 298 |
case 10: func_name(__VA_ARGS__, 10); break; \ |
| 299 |
case 11: func_name(__VA_ARGS__, 11); break; \ |
| 300 |
case 12: func_name(__VA_ARGS__, 12); break; \ |
| 301 |
case 13: func_name(__VA_ARGS__, 13); break; \ |
| 302 |
case 14: func_name(__VA_ARGS__, 14); break; \ |
| 303 |
case 15: func_name(__VA_ARGS__, 15); break; \ |
| 304 |
case 16: func_name(__VA_ARGS__, 16); break; \ |
| 305 |
case 17: func_name(__VA_ARGS__, 17); break; \ |
| 306 |
case 18: func_name(__VA_ARGS__, 18); break; \ |
| 307 |
case 19: func_name(__VA_ARGS__, 19); break; \ |
| 308 |
case 20: func_name(__VA_ARGS__, 20); break; \ |
| 309 |
case 21: func_name(__VA_ARGS__, 21); break; \ |
| 310 |
case 22: func_name(__VA_ARGS__, 22); break; \ |
| 311 |
case 23: func_name(__VA_ARGS__, 23); break; \ |
| 312 |
case 24: func_name(__VA_ARGS__, 24); break; \ |
| 313 |
case 25: func_name(__VA_ARGS__, 25); break; \ |
| 314 |
case 26: func_name(__VA_ARGS__, 26); break; \ |
| 315 |
case 27: func_name(__VA_ARGS__, 27); break; \ |
| 316 |
case 28: func_name(__VA_ARGS__, 28); break; \ |
| 317 |
case 29: func_name(__VA_ARGS__, 29); break; \ |
| 318 |
case 30: func_name(__VA_ARGS__, 30); break; \ |
| 319 |
case 31: func_name(__VA_ARGS__, 31); break; \ |
| 320 |
default: default_case; break; \ |
| 321 |
} \ |
| 322 |
} while (0) |
| 323 |
|
| 324 |
#define SIMDE_CONSTIFY_64_NO_RESULT_(func_name, default_case, imm, ...) \ |
| 325 |
do { \ |
| 326 |
switch(imm) { \ |
| 327 |
case 0: func_name(__VA_ARGS__, 0); break; \ |
| 328 |
case 1: func_name(__VA_ARGS__, 1); break; \ |
| 329 |
case 2: func_name(__VA_ARGS__, 2); break; \ |
| 330 |
case 3: func_name(__VA_ARGS__, 3); break; \ |
| 331 |
case 4: func_name(__VA_ARGS__, 4); break; \ |
| 332 |
case 5: func_name(__VA_ARGS__, 5); break; \ |
| 333 |
case 6: func_name(__VA_ARGS__, 6); break; \ |
| 334 |
case 7: func_name(__VA_ARGS__, 7); break; \ |
| 335 |
case 8: func_name(__VA_ARGS__, 8); break; \ |
| 336 |
case 9: func_name(__VA_ARGS__, 9); break; \ |
| 337 |
case 10: func_name(__VA_ARGS__, 10); break; \ |
| 338 |
case 11: func_name(__VA_ARGS__, 11); break; \ |
| 339 |
case 12: func_name(__VA_ARGS__, 12); break; \ |
| 340 |
case 13: func_name(__VA_ARGS__, 13); break; \ |
| 341 |
case 14: func_name(__VA_ARGS__, 14); break; \ |
| 342 |
case 15: func_name(__VA_ARGS__, 15); break; \ |
| 343 |
case 16: func_name(__VA_ARGS__, 16); break; \ |
| 344 |
case 17: func_name(__VA_ARGS__, 17); break; \ |
| 345 |
case 18: func_name(__VA_ARGS__, 18); break; \ |
| 346 |
case 19: func_name(__VA_ARGS__, 19); break; \ |
| 347 |
case 20: func_name(__VA_ARGS__, 20); break; \ |
| 348 |
case 21: func_name(__VA_ARGS__, 21); break; \ |
| 349 |
case 22: func_name(__VA_ARGS__, 22); break; \ |
| 350 |
case 23: func_name(__VA_ARGS__, 23); break; \ |
| 351 |
case 24: func_name(__VA_ARGS__, 24); break; \ |
| 352 |
case 25: func_name(__VA_ARGS__, 25); break; \ |
| 353 |
case 26: func_name(__VA_ARGS__, 26); break; \ |
| 354 |
case 27: func_name(__VA_ARGS__, 27); break; \ |
| 355 |
case 28: func_name(__VA_ARGS__, 28); break; \ |
| 356 |
case 29: func_name(__VA_ARGS__, 29); break; \ |
| 357 |
case 30: func_name(__VA_ARGS__, 30); break; \ |
| 358 |
case 31: func_name(__VA_ARGS__, 31); break; \ |
| 359 |
case 32: func_name(__VA_ARGS__, 32); break; \ |
| 360 |
case 33: func_name(__VA_ARGS__, 33); break; \ |
| 361 |
case 34: func_name(__VA_ARGS__, 34); break; \ |
| 362 |
case 35: func_name(__VA_ARGS__, 35); break; \ |
| 363 |
case 36: func_name(__VA_ARGS__, 36); break; \ |
| 364 |
case 37: func_name(__VA_ARGS__, 37); break; \ |
| 365 |
case 38: func_name(__VA_ARGS__, 38); break; \ |
| 366 |
case 39: func_name(__VA_ARGS__, 39); break; \ |
| 367 |
case 40: func_name(__VA_ARGS__, 40); break; \ |
| 368 |
case 41: func_name(__VA_ARGS__, 41); break; \ |
| 369 |
case 42: func_name(__VA_ARGS__, 42); break; \ |
| 370 |
case 43: func_name(__VA_ARGS__, 43); break; \ |
| 371 |
case 44: func_name(__VA_ARGS__, 44); break; \ |
| 372 |
case 45: func_name(__VA_ARGS__, 45); break; \ |
| 373 |
case 46: func_name(__VA_ARGS__, 46); break; \ |
| 374 |
case 47: func_name(__VA_ARGS__, 47); break; \ |
| 375 |
case 48: func_name(__VA_ARGS__, 48); break; \ |
| 376 |
case 49: func_name(__VA_ARGS__, 49); break; \ |
| 377 |
case 50: func_name(__VA_ARGS__, 50); break; \ |
| 378 |
case 51: func_name(__VA_ARGS__, 51); break; \ |
| 379 |
case 52: func_name(__VA_ARGS__, 52); break; \ |
| 380 |
case 53: func_name(__VA_ARGS__, 53); break; \ |
| 381 |
case 54: func_name(__VA_ARGS__, 54); break; \ |
| 382 |
case 55: func_name(__VA_ARGS__, 55); break; \ |
| 383 |
case 56: func_name(__VA_ARGS__, 56); break; \ |
| 384 |
case 57: func_name(__VA_ARGS__, 57); break; \ |
| 385 |
case 58: func_name(__VA_ARGS__, 58); break; \ |
| 386 |
case 59: func_name(__VA_ARGS__, 59); break; \ |
| 387 |
case 60: func_name(__VA_ARGS__, 60); break; \ |
| 388 |
case 61: func_name(__VA_ARGS__, 61); break; \ |
| 389 |
case 62: func_name(__VA_ARGS__, 62); break; \ |
| 390 |
case 63: func_name(__VA_ARGS__, 63); break; \ |
| 391 |
default: default_case; break; \ |
| 392 |
} \ |
| 393 |
} while (0) |
| 394 |
|
| 395 |
HEDLEY_DIAGNOSTIC_POP |
| 396 |
|
| 397 |
#endif |