aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-20 12:53:42 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-05-20 12:53:42 -0300
commitf21e9c172f9f15d8d7501e35635e78dc11f5ff58 (patch)
treecb50795d8bceff944dd8f7d75626069491d5e8d0 /luaconf.h
parent67578ec51f1a3ec2c967f15d370067caf9e0b87b (diff)
downloadlua-f21e9c172f9f15d8d7501e35635e78dc11f5ff58.tar.gz
lua-f21e9c172f9f15d8d7501e35635e78dc11f5ff58.tar.bz2
lua-f21e9c172f9f15d8d7501e35635e78dc11f5ff58.zip
details
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/luaconf.h b/luaconf.h
index f7bcbf92..eec37606 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.48 2005/05/16 21:19:00 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.49 2005/05/17 19:49:15 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -437,8 +437,8 @@
437/* On Windows/Pentium, resort to assembler */ 437/* On Windows/Pentium, resort to assembler */
438#elif !defined(__STRICT_ANSI__) && defined(_MSC_VER) && defined(_M_IX86) 438#elif !defined(__STRICT_ANSI__) && defined(_MSC_VER) && defined(_M_IX86)
439#define lua_number2int(i,d) \ 439#define lua_number2int(i,d) \
440 __asm fld d; \ 440 __asm fld d \
441 __asm fistp i; 441 __asm fistp i
442 442
443 443
444/* on Pentium machines compliant with C99, you can try lrint */ 444/* on Pentium machines compliant with C99, you can try lrint */
@@ -505,16 +505,16 @@
505/* 505/*
506@@ The luai_num* macros define the primitive operations over numbers. 506@@ The luai_num* macros define the primitive operations over numbers.
507*/ 507*/
508#define luai_numadd(a,b) ((a)+(b)) 508#define luai_numadd(L,a,b) ((a)+(b))
509#define luai_numsub(a,b) ((a)-(b)) 509#define luai_numsub(L,a,b) ((a)-(b))
510#define luai_nummul(a,b) ((a)*(b)) 510#define luai_nummul(L,a,b) ((a)*(b))
511#define luai_numdiv(a,b) ((a)/(b)) 511#define luai_numdiv(L,a,b) ((a)/(b))
512#define luai_nummod(a,b) ((a) - floor((a)/(b))*(b)) 512#define luai_nummod(L,a,b) ((a) - floor((a)/(b))*(b))
513#define luai_numpow(a,b) pow(a,b) 513#define luai_numpow(L,a,b) pow(a,b)
514#define luai_numunm(a) (-(a)) 514#define luai_numunm(L,a) (-(a))
515#define luai_numeq(a,b) ((a)==(b)) 515#define luai_numeq(L,a,b) ((a)==(b))
516#define luai_numlt(a,b) ((a)<(b)) 516#define luai_numlt(L,a,b) ((a)<(b))
517#define luai_numle(a,b) ((a)<=(b)) 517#define luai_numle(L,a,b) ((a)<=(b))
518 518
519/* }================================================================== */ 519/* }================================================================== */
520 520