From 14cd10e32270ac04f53bcb26b11f4645f18519c3 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Tue, 5 Oct 2010 01:47:39 +0200 Subject: PPC: Add table.getn() fast function. --- src/buildvm_ppc.dasc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/buildvm_ppc.dasc b/src/buildvm_ppc.dasc index f96a5601..5bbded29 100644 --- a/src/buildvm_ppc.dasc +++ b/src/buildvm_ppc.dasc @@ -1322,7 +1322,12 @@ static void build_subroutines(BuildCtx *ctx) |//-- Table library ------------------------------------------------------ | |.ffunc_1 table_getn - | NYI + | checktab CARG1 + | checkfail ->fff_fallback + | bl extern lj_tab_len // (GCtab *t) + | // Returns uint32_t (but less than 2^31). + | efdcfsi CRET1, CRET1 + | b ->fff_restv | |//-- Bit library -------------------------------------------------------- | -- cgit v1.2.3-55-g6feb