| 362 | } |
| 363 | |
| 364 | void assert_numTargsMatchesTemplateParam(int numTargs, int templateParam) { |
| 365 | |
| 366 | // template parameter of -1 is always valid (it indicates the routine has not been compile-time optimised) |
| 367 | if (templateParam == -1) |
| 368 | return; |
| 369 | |
| 370 | if (templateParam != numTargs) |
| 371 | raiseInternalError("A CPU or GPU subroutine received a number of targets inconsistent with its compile-time template parameter, as dispatched by accelerator.cpp."); |
| 372 | } |
| 373 | |
| 374 | void assert_exponentMatchesTemplateParam(qcomp exponent, bool hasPower) { |
| 375 |
no test coverage detected