a^b calls `pow´ (from math.h) directly

This commit is contained in:
Roberto Ierusalimschy
2005-01-07 18:00:33 -02:00
parent 071b2ae0e1
commit f61d435a7d
3 changed files with 16 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: luaconf.h,v 1.22 2004/12/27 15:58:15 roberto Exp roberto $
** $Id: luaconf.h,v 1.23 2005/01/04 12:46:04 roberto Exp roberto $
** Configuration file for Lua
** See Copyright Notice in lua.h
*/
@@ -257,6 +257,11 @@ __inline int l_lrint (double flt)
#define LUA_UACNUMBER double
/* primitive `^' operator for numbers */
#include <math.h>
#define lua_pow(a,b) pow(a,b)
/* type to ensure maximum alignment */
#define LUSER_ALIGNMENT_T union { double u; void *s; long l; }