Backed out changeset 61b9209c186f

This commit is contained in:
Andreas Gal
2008-09-15 19:59:06 -07:00
parent 62bd202b55
commit a69aadfc0c
3 changed files with 19 additions and 0 deletions

View File

@@ -86,6 +86,17 @@ js_dmod(jsdouble a, jsdouble b)
return r;
}
/*
* Note: Caller is responsible for ensuring that b is not 0, or really bad things are going to
* happen.
*/
jsint FASTCALL
js_imod(jsint a, jsint b)
{
return a % b;
}
/* The following boxing/unboxing primitives we can't emit inline because
they either interact with the GC and depend on Spidermonkey's 32-bit
integer representation. */