(expr: str)
| 198 | |
| 199 | |
| 200 | def VEC_ARG0(expr: str) -> str: |
| 201 | return ''' |
| 202 | { |
| 203 | NE_REGISTER store_in = params->program[pc].ret; |
| 204 | BOUNDS_CHECK(store_in); |
| 205 | |
| 206 | $DTYPE0 *dest = ($DTYPE0 *)params->registers[store_in].mem; |
| 207 | |
| 208 | VEC_LOOP(expr); |
| 209 | return 0; |
| 210 | } |
| 211 | '''.replace('VEC_LOOP(expr);', VEC_LOOP(expr)) |
| 212 | |
| 213 | # We could write a more general function suitable for any number of arguments, |
| 214 | # but that would make the generator code more opaque |
nothing calls this directly
no test coverage detected
searching dependent graphs…