lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greg Falcon wrote:
[...]
>    Otherwise, you can change the definition of lua_number2int in
> luaconf.h to this one:
> 
>    #define lua_number2int(i,d)   __asm fld d   __asm fistp i

Not if you're using gcc, you can't... beware inline assembly! It's horribly
non-portable!

Does the naive approach (simply defining the macro to 'i=(int)d') work
effectively?

- --
+- David Given --McQ-+ "If you're up against someone more intelligent
|  dg@cowlark.com    | than you are, do something insane and let him think
| (dg@tao-group.com) | himself to death." --- Pyanfar Chanur
+- www.cowlark.com --+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFERAqKf9E0noFvlzgRAmaGAKCG+lzf1SjhggvX7ClRbWK7/C4w/ACfZNXr
si5RkQJXLnGr7XKi9XXLjFE=
=IJF3
-----END PGP SIGNATURE-----