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

Function VEC_ARG2_ALIGNED

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

Source from the content-addressed store, hash-verified

393'''.replace('EXPR', expr)
394
395def VEC_ARG2_ALIGNED(expr: str) -> str:
396 return '''
397{
398 NE_REGISTER store_in = params->program[pc].ret;
399 NE_REGISTER arg1 = params->program[pc].arg1;
400 NE_REGISTER arg2 = params->program[pc].arg2;
401
402 BOUNDS_CHECK(store_in);
403 BOUNDS_CHECK(arg1);
404 BOUNDS_CHECK(arg2);
405 char *dest = params->registers[store_in].mem;
406 char *x1 = params->registers[arg1].mem;
407 char *x2 = params->registers[arg2].mem;
408 EXPR;
409 return 0;
410}
411'''.replace('EXPR', expr)
412
413def VEC_ARG3_ALIGNED(expr: str) -> str:
414 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…