aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2012-10-01 11:14:45 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2012-10-01 11:14:45 -0300
commit31f7d553e413385143edc8f253a5db5fb5462e07 (patch)
tree4d63d4446756d0937a42845441c125112a6ce12b
parentadaba04059ddec1c7c55dab16981f3ae2f0c3279 (diff)
downloadlua-31f7d553e413385143edc8f253a5db5fb5462e07.tar.gz
lua-31f7d553e413385143edc8f253a5db5fb5462e07.tar.bz2
lua-31f7d553e413385143edc8f253a5db5fb5462e07.zip
LUA_CORE condition removed from definition of some 'tricks' (as it
controlled only a few other defines) + MS_ASMTRICK renamed to LUA_MSASMTRICK
-rw-r--r--llimits.h4
-rw-r--r--luaconf.h9
2 files changed, 6 insertions, 7 deletions
diff --git a/llimits.h b/llimits.h
index b5a70487..665eb951 100644
--- a/llimits.h
+++ b/llimits.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llimits.h,v 1.98 2012/05/11 14:10:50 roberto Exp roberto $ 2** $Id: llimits.h,v 1.99 2012/05/28 20:32:28 roberto Exp roberto $
3** Limits, basic types, and some other `installation-dependent' definitions 3** Limits, basic types, and some other `installation-dependent' definitions
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -200,7 +200,7 @@ typedef lu_int32 Instruction;
200** both small and large values (outside the range of integers). 200** both small and large values (outside the range of integers).
201*/ 201*/
202 202
203#if defined(MS_ASMTRICK) /* { */ 203#if defined(MS_ASMTRICK) || defined(LUA_MSASMTRICK) /* { */
204/* trick with Microsoft assembler for X86 */ 204/* trick with Microsoft assembler for X86 */
205 205
206#define lua_number2int(i,n) __asm {__asm fld n __asm fistp i} 206#define lua_number2int(i,n) __asm {__asm fld n __asm fistp i}
diff --git a/luaconf.h b/luaconf.h
index f004c985..d6f58ab2 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.172 2012/05/11 14:14:42 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.173 2012/07/13 14:54:14 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*/
@@ -465,13 +465,12 @@
465** Some tricks with doubles 465** Some tricks with doubles
466*/ 466*/
467 467
468#if defined(LUA_CORE) && \ 468#if defined(LUA_NUMBER_DOUBLE) && !defined(LUA_ANSI) /* { */
469 defined(LUA_NUMBER_DOUBLE) && !defined(LUA_ANSI) /* { */
470/* 469/*
471** The next definitions activate some tricks to speed up the 470** The next definitions activate some tricks to speed up the
472** conversion from doubles to integer types, mainly to LUA_UNSIGNED. 471** conversion from doubles to integer types, mainly to LUA_UNSIGNED.
473** 472**
474@@ MS_ASMTRICK uses Microsoft assembler to avoid clashes with a 473@@ LUA_MSASMTRICK uses Microsoft assembler to avoid clashes with a
475** DirectX idiosyncrasy. 474** DirectX idiosyncrasy.
476** 475**
477@@ LUA_IEEE754TRICK uses a trick that should work on any machine 476@@ LUA_IEEE754TRICK uses a trick that should work on any machine
@@ -495,7 +494,7 @@
495/* Microsoft compiler on a Pentium (32 bit) ? */ 494/* Microsoft compiler on a Pentium (32 bit) ? */
496#if defined(LUA_WIN) && defined(_MSC_VER) && defined(_M_IX86) /* { */ 495#if defined(LUA_WIN) && defined(_MSC_VER) && defined(_M_IX86) /* { */
497 496
498#define MS_ASMTRICK 497#define LUA_MSASMTRICK
499#define LUA_IEEEENDIAN 0 498#define LUA_IEEEENDIAN 0
500#define LUA_NANTRICK 499#define LUA_NANTRICK
501 500