|
@@ -406,7 +406,7 @@ static int l_strcmp (const TString *ls, const TString *rs) {
|
|
|
** from float to int.)
|
|
|
** When 'f' is NaN, comparisons must result in false.
|
|
|
*/
|
|
|
-static int LTintfloat (lua_Integer i, lua_Number f) {
|
|
|
+l_sinline int LTintfloat (lua_Integer i, lua_Number f) {
|
|
|
if (l_intfitsf(i))
|
|
|
return luai_numlt(cast_num(i), f); /* compare them as floats */
|
|
|
else { /* i < f <=> i < ceil(f) */
|
|
@@ -423,7 +423,7 @@ static int LTintfloat (lua_Integer i, lua_Number f) {
|
|
|
** Check whether integer 'i' is less than or equal to float 'f'.
|
|
|
** See comments on previous function.
|
|
|
*/
|
|
|
-static int LEintfloat (lua_Integer i, lua_Number f) {
|
|
|
+l_sinline int LEintfloat (lua_Integer i, lua_Number f) {
|
|
|
if (l_intfitsf(i))
|
|
|
return luai_numle(cast_num(i), f); /* compare them as floats */
|
|
|
else { /* i <= f <=> i <= floor(f) */
|
|
@@ -440,7 +440,7 @@ static int LEintfloat (lua_Integer i, lua_Number f) {
|
|
|
** Check whether float 'f' is less than integer 'i'.
|
|
|
** See comments on previous function.
|
|
|
*/
|
|
|
-static int LTfloatint (lua_Number f, lua_Integer i) {
|
|
|
+l_sinline int LTfloatint (lua_Number f, lua_Integer i) {
|
|
|
if (l_intfitsf(i))
|
|
|
return luai_numlt(f, cast_num(i)); /* compare them as floats */
|
|
|
else { /* f < i <=> floor(f) < i */
|
|
@@ -457,7 +457,7 @@ static int LTfloatint (lua_Number f, lua_Integer i) {
|
|
|
** Check whether float 'f' is less than or equal to integer 'i'.
|
|
|
** See comments on previous function.
|
|
|
*/
|
|
|
-static int LEfloatint (lua_Number f, lua_Integer i) {
|
|
|
+l_sinline int LEfloatint (lua_Number f, lua_Integer i) {
|
|
|
if (l_intfitsf(i))
|
|
|
return luai_numle(f, cast_num(i)); /* compare them as floats */
|
|
|
else { /* f <= i <=> ceil(f) <= i */
|
|
@@ -473,7 +473,7 @@ static int LEfloatint (lua_Number f, lua_Integer i) {
|
|
|
/*
|
|
|
** Return 'l < r', for numbers.
|
|
|
*/
|
|
|
-static int LTnum (const TValue *l, const TValue *r) {
|
|
|
+l_sinline int LTnum (const TValue *l, const TValue *r) {
|
|
|
lua_assert(ttisnumber(l) && ttisnumber(r));
|
|
|
if (ttisinteger(l)) {
|
|
|
lua_Integer li = ivalue(l);
|
|
@@ -495,7 +495,7 @@ static int LTnum (const TValue *l, const TValue *r) {
|
|
|
/*
|
|
|
** Return 'l <= r', for numbers.
|
|
|
*/
|
|
|
-static int LEnum (const TValue *l, const TValue *r) {
|
|
|
+l_sinline int LEnum (const TValue *l, const TValue *r) {
|
|
|
lua_assert(ttisnumber(l) && ttisnumber(r));
|
|
|
if (ttisinteger(l)) {
|
|
|
lua_Integer li = ivalue(l);
|