MCPcopy Create free account
hub / github.com/pydata/numexpr / VEC_ARG1_STRIDED

Function VEC_ARG1_STRIDED

code_generators/interp_generator.py:452–467  ·  view source on GitHub ↗
(expr: str)

Source from the content-addressed store, hash-verified

450'''.replace('EXPR', expr)
451
452def VEC_ARG1_STRIDED(expr: str) -> str:
453 return '''
454{
455 NE_REGISTER store_in = params->program[pc].ret;
456 NE_REGISTER arg1 = params->program[pc].arg1;
457 BOUNDS_CHECK(store_in);
458 BOUNDS_CHECK(arg1);
459
460 char *dest = params->registers[store_in].mem;
461 char *x1 = params->registers[arg1].mem;
462 npy_intp sb1 = params->registers[arg1].stride;
463
464 EXPR;
465 return 0;
466}
467'''.replace('EXPR', expr)
468
469def VEC_ARG2_STRIDED(expr: str) -> str:
470 return '''

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…