Jet mul:rd.

Running in test mode for now.
This commit is contained in:
Jared Hance 2014-06-02 11:03:48 -04:00
parent 3566984894
commit 9d837c55fb
3 changed files with 68 additions and 0 deletions

View File

@ -169,6 +169,7 @@ J164_5_OFILES=\
gen164/5/mink.o \
gen164/5/mule.o \
gen164/5/parse.o \
gen164/5/rd.o \
gen164/5/repg.o \
gen164/5/rexp.o \
gen164/5/rub.o \

65
gen164/5/rd.c Normal file
View File

@ -0,0 +1,65 @@
/* j/5/aes.c
**
** This file is in the public domain.
*/
#include "all.h"
#include "../pit.h"
union doub {
double d;
c3_d c;
};
/* declarations
*/
extern u2_ho_jet j2_mcj(Pt5, rd, mul)[];
/* functions
*/
u2_weak
j2_mcd(Pt5, rd, mul)(u2_wire wir_r,
u2_atom a,
u2_atom b)
{
union doub c, d, e;
c.c = u2_chub(0, a);
d.c = u2_chub(0, b);
e.d = c.d * d.d;
return u2_ci_chubs(1, &e.c);
}
u2_weak
j2_mc(Pt5, rd, mul)(u2_wire wir_r,
u2_noun cor)
{
u2_noun a, b;
if ( u2_no == u2_mean(cor, u2_cv_sam_2, &a, u2_cv_sam_3, &b, 0) ||
u2_no == u2_stud(a) ||
u2_no == u2_stud(b) )
{
return u2_bl_bail(wir_r, c3__exit);
}
else {
return j2_mcd(Pt5, rd, mul)(wir_r, a, b);
}
}
/* structures
*/
u2_ho_jet
j2_mcj(Pt5, rd, mul)[] = {
{ ".2", c3__lite, j2_mc(Pt5, rd, mul), Tier5_test, u2_none, u2_none },
{ }
};
u2_ho_driver
j2_mbd(Pt5, rd)[] = {
{ j2_sc(Pt5, rd, mul), j2_mcj(Pt5, rd, mul), 0, 0, u2_none },
{ }
};
u2_ho_driver
j2_db(Pt5, rd) =
{ j2_sb(Pt5, rd), 0, j2_mbd(Pt5, rd), 0, u2_none };

View File

@ -109,6 +109,7 @@
extern u2_ho_driver j2_mbd(Pt5, just)[];
extern u2_ho_driver j2_mbd(Pt5, mask)[];
extern u2_ho_driver j2_mbd(Pt5, og)[];
extern u2_ho_driver j2_mbd(Pt5, rd)[];
extern u2_ho_driver j2_mbd(Pt5, shim)[];
extern u2_ho_driver j2_mbd(Pt5, stag)[];
extern u2_ho_driver j2_mbd(Pt5, stew)[];
@ -239,6 +240,7 @@
{ j2_sb(Pt5, pfix), j2_mbj(Pt5, pfix), 0, 0, u2_none },
{ j2_sb(Pt5, plug), j2_mbj(Pt5, plug), 0, 0, u2_none },
{ j2_sb(Pt5, pose), j2_mbj(Pt5, pose), 0, 0, u2_none },
{ j2_sb(Pt5, rd), 0, j2_mbd(Pt5, rd), 0, u2_none },
{ j2_sb(Pt5, repg), j2_mbj(Pt5, repg), 0, 0, u2_none },
{ j2_sb(Pt5, rexp), j2_mbj(Pt5, rexp), 0, 0, u2_none },
{ j2_sb(Pt5, rub), j2_mbj(Pt5, rub), 0, 0, u2_none },