mirror of
https://github.com/lua/lua
synced 2025-02-17 05:34:02 +03:00
detail (macro 'luai_numidiv' uses 'luai_numdiv' to compute the division)
This commit is contained in:
parent
1a7868c1d5
commit
a1c37f834a
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: luaconf.h,v 1.236 2014/12/19 13:31:12 roberto Exp roberto $
|
||||
** $Id: luaconf.h,v 1.237 2014/12/26 14:44:44 roberto Exp roberto $
|
||||
** Configuration file for Lua
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@ -476,7 +476,7 @@
|
||||
#include <math.h>
|
||||
|
||||
/* floor division (defined as 'floor(a/b)') */
|
||||
#define luai_numidiv(L,a,b) ((void)L, l_mathop(floor)((a)/(b)))
|
||||
#define luai_numidiv(L,a,b) ((void)L, l_mathop(floor)(luai_numdiv(L,a,b)))
|
||||
|
||||
/*
|
||||
** module: defined as 'a - floor(a/b)*b'; the previous definition gives
|
||||
|
Loading…
x
Reference in New Issue
Block a user