diff options
| -rw-r--r-- | llimits.h | 4 | ||||
| -rw-r--r-- | luaconf.h | 9 |
2 files changed, 6 insertions, 7 deletions
| @@ -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} |
| @@ -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 | ||
