diff options
Diffstat (limited to 'examples/matrix_mult.c')
-rw-r--r-- | examples/matrix_mult.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/matrix_mult.c b/examples/matrix_mult.c index 04ebb9d..fab2319 100644 --- a/examples/matrix_mult.c +++ b/examples/matrix_mult.c @@ -63,7 +63,7 @@ static struct ejit_func *compile() struct ejit_reloc inner = ejit_bgei(f, KR, X); /* A[i][k] at addr 4 * (i * 400 + k) */ - ejit_movi(f, TMP, 400); + ejit_movi(f, TMP, X); ejit_mulr(f, AX, IR, TMP); ejit_addr(f, AX, AX, KR); ejit_movi(f, TMP, 4); @@ -71,7 +71,7 @@ static struct ejit_func *compile() EJIT_LDXR(f, int, AX, AR, AX); /* B[k][j] at addr 4 * (k * 400 + j) */ - ejit_movi(f, TMP, 400); + ejit_movi(f, TMP, X); ejit_mulr(f, BX, KR, TMP); ejit_addr(f, BX, BX, JR); ejit_movi(f, TMP, 4); @@ -79,7 +79,7 @@ static struct ejit_func *compile() EJIT_LDXR(f, int, BX, BR, BX); /* C[i][j] at addr 4 * (i * 400 + j) */ - ejit_movi(f, TMP, 400); + ejit_movi(f, TMP, X); ejit_mulr(f, CX, IR, TMP); ejit_addr(f, CX, CX, JR); ejit_movi(f, TMP, 4); |