_(dmul4, NIL, CARRY, P128, P128, P128, P128, P128, NIL, CARRY) \
_(dmla4, P128, CARRY, P128, P128, P128, P128, P128, NIL, CARRY) \
_(mul4, NIL, CARRY, NIL, P128, NIL, P128, P128, NIL, CARRY) \
+ _(mul4zc,NIL, NIL, NIL, P128, NIL, P128, P128, NIL, CARRY) \
_(mla4, P128, CARRY, NIL, P128, NIL, P128, P128, NIL, CARRY) \
+ _(mla4zc,P128, NIL, NIL, P128, NIL, P128, P128, NIL, CARRY) \
_(mmul4, NIL, NIL, P128, P128, P128, P128, P128, X128, CARRY) \
_(mmla4, P128, NIL, P128, P128, P128, P128, P128, X128, CARRY) \
_(mont4, P128, NIL, NIL, P128, NIL, P128, P128, X128, CARRY)
\
type_hex.cvt(buf, &dd); \
if (dd.len != N(x->w)*nby) die(1, "invalid length for " #ty); \
- dstr_ensure(d, sizeof(*x)); \
+ dstr_ensure(d, sizeof(*x)); d->len = sizeof(*x); \
x = (ty *)d->buf; p = (const octet *)dd.buf; \
for (i = 0; i < N(x->w); i++) { x->w[i] = ld(p); p += nby; } \
dstr_destroy(&dd); \
sub_init();
if (!cpu_features_p())
{ fprintf(stderr, "required cpu feature not available\n"); exit(77); }
- test_run(argc, argv, tests, SRCDIR "/t/mul4");
+ test_run(argc, argv, tests, SRCDIR "/t/mpx-mul4");
return (0);
}