Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "lprefix.h"
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
Go to the source code of this file.
Data Structures | |
struct | Rand64 |
struct | RanState |
Macros | |
#define | lmathlib_c |
#define | LUA_LIB |
#define | PI (l_mathop(3.141592653589793238462643383279502884)) |
#define | FIGS l_floatatt(MANT_DIG) |
#define | trim32(x) ((x) & 0xffffffffu) |
#define | UONE ((lu_int32)1) |
#define | scaleFIG (l_mathop(0.5) / (UONE << (FIGS - 1))) |
Typedefs | |
typedef unsigned long | lu_int32 |
typedef struct Rand64 | Rand64 |
Variables | |
static const luaL_Reg | randfuncs [] |
static const luaL_Reg | mathlib [] |
#define FIGS l_floatatt(MANT_DIG) |
Definition at line 253 of file lua-5.4.3/src/lmathlib.c.
Referenced by I2d().
#define lmathlib_c |
Definition at line 7 of file lua-5.4.3/src/lmathlib.c.
#define LUA_LIB |
Definition at line 8 of file lua-5.4.3/src/lmathlib.c.
#define PI (l_mathop(3.141592653589793238462643383279502884)) |
Definition at line 26 of file lua-5.4.3/src/lmathlib.c.
Referenced by luaopen_math(), math_deg(), and math_rad().
Definition at line 461 of file lua-5.4.3/src/lmathlib.c.
Referenced by I2d().
#define trim32 | ( | x | ) | ((x) & 0xffffffffu) |
#define UONE ((lu_int32)1) |
Definition at line 455 of file lua-5.4.3/src/lmathlib.c.
typedef unsigned long lu_int32 |
Definition at line 354 of file lua-5.4.3/src/lmathlib.c.
typedef struct Rand64 Rand64 |
|
static |
Definition at line 467 of file lua-5.4.3/src/lmathlib.c.
References FIGS, Rand64::h, scaleFIG, and trim32.
Referenced by math_random().
|
static |
Definition at line 502 of file lua-5.4.3/src/lmathlib.c.
References Rand64::h, Rand64::l, and trim32.
Referenced by math_random(), and project().
Definition at line 402 of file lua-5.4.3/src/lmathlib.c.
|
static |
Definition at line 507 of file lua-5.4.3/src/lmathlib.c.
References packI().
Referenced by setseed().
Definition at line 390 of file lua-5.4.3/src/lmathlib.c.
References Rand64::h, Rand64::l, lua_assert, packI(), and trim32.
Referenced by nextrand(), times5(), and times9().
Definition at line 396 of file lua-5.4.3/src/lmathlib.c.
References Rand64::h, and Rand64::l.
Referenced by nextrand().
LUAMOD_API int luaopen_math | ( | lua_State * | L | ) |
Definition at line 751 of file lua-5.4.3/src/lmathlib.c.
References lua_pushinteger(), lua_pushnumber(), lua_setfield(), luaL_newlib, mathlib, PI, and setrandfunc().
|
static |
Definition at line 29 of file lua-5.4.3/src/lmathlib.c.
References l_mathop, lua_isinteger(), lua_pushinteger(), lua_pushnumber(), lua_tointeger, and luaL_checknumber().
|
static |
Definition at line 60 of file lua-5.4.3/src/lmathlib.c.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
|
static |
Definition at line 55 of file lua-5.4.3/src/lmathlib.c.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
|
static |
Definition at line 65 of file lua-5.4.3/src/lmathlib.c.
References l_mathop, lua_pushnumber(), luaL_checknumber(), and luaL_optnumber().
|
static |
Definition at line 106 of file lua-5.4.3/src/lmathlib.c.
References l_mathop, lua_isinteger(), lua_settop(), luaL_checknumber(), and pushnumint().
|
static |
Definition at line 45 of file lua-5.4.3/src/lmathlib.c.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
|
static |
Definition at line 195 of file lua-5.4.3/src/lmathlib.c.
References l_mathop, lua_pushnumber(), luaL_checknumber(), and PI.
|
static |
Definition at line 190 of file lua-5.4.3/src/lmathlib.c.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
|
static |
Definition at line 95 of file lua-5.4.3/src/lmathlib.c.
References l_mathop, lua_isinteger(), lua_settop(), luaL_checknumber(), and pushnumint().
|
static |
Definition at line 117 of file lua-5.4.3/src/lmathlib.c.
References l_mathop, lua_isinteger(), lua_pushinteger(), lua_pushnumber(), lua_tointeger, luaL_argcheck, and luaL_checknumber().
|
static |
Definition at line 169 of file lua-5.4.3/src/lmathlib.c.
References l_mathop, lua_isnoneornil, lua_pushnumber(), and luaL_checknumber().
|
static |
Definition at line 220 of file lua-5.4.3/src/lmathlib.c.
References lua_compare(), lua_gettop(), LUA_OPLT, lua_pushvalue(), and luaL_argcheck.
|
static |
Definition at line 206 of file lua-5.4.3/src/lmathlib.c.
References lua_compare(), lua_gettop(), LUA_OPLT, lua_pushvalue(), and luaL_argcheck.
|
static |
Definition at line 139 of file lua-5.4.3/src/lmathlib.c.
References l_mathop, lua_isinteger(), lua_pushnumber(), lua_settop(), luaL_checknumber(), and pushnumint().
|
static |
Definition at line 200 of file lua-5.4.3/src/lmathlib.c.
References l_mathop, lua_pushnumber(), luaL_checknumber(), and PI.
|
static |
Definition at line 557 of file lua-5.4.3/src/lmathlib.c.
References I2d(), I2UInt(), lua_gettop(), lua_pushinteger(), lua_pushnumber(), lua_touserdata(), lua_upvalueindex, luaL_argcheck, luaL_checkinteger(), luaL_error(), nextrand(), project(), and RanState::s.
|
static |
Definition at line 618 of file lua-5.4.3/src/lmathlib.c.
References lua_isnone, lua_touserdata(), lua_upvalueindex, luaL_checkinteger(), luaL_optinteger(), randseed(), RanState::s, and setseed().
|
static |
Definition at line 40 of file lua-5.4.3/src/lmathlib.c.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
|
static |
Definition at line 156 of file lua-5.4.3/src/lmathlib.c.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
|
static |
Definition at line 50 of file lua-5.4.3/src/lmathlib.c.
References l_mathop, lua_pushnumber(), and luaL_checknumber().
|
static |
Definition at line 73 of file lua-5.4.3/src/lmathlib.c.
References lua_pushinteger(), lua_tointegerx(), luaL_checkany(), and luaL_pushfail.
|
static |
Definition at line 234 of file lua-5.4.3/src/lmathlib.c.
References lua_isinteger(), lua_pushstring(), LUA_TNUMBER, lua_type(), luaL_checkany(), and luaL_pushfail.
|
static |
Definition at line 162 of file lua-5.4.3/src/lmathlib.c.
References lua_pushboolean(), and luaL_checkinteger().
Definition at line 437 of file lua-5.4.3/src/lmathlib.c.
References Ishl(), Ixor(), rotl(), rotl1(), times5(), and times9().
Referenced by math_random(), project(), and setseed().
|
static |
Definition at line 532 of file lua-5.4.3/src/lmathlib.c.
References I2UInt(), lua_assert, nextrand(), and RanState::s.
Referenced by math_random().
|
static |
Definition at line 86 of file lua-5.4.3/src/lmathlib.c.
References lua_numbertointeger, lua_pushinteger(), and lua_pushnumber().
Referenced by math_ceil(), math_floor(), and math_modf().
Definition at line 611 of file lua-5.4.3/src/lmathlib.c.
References NULL, RanState::s, and setseed().
Referenced by math_randomseed(), and setrandfunc().
Definition at line 420 of file lua-5.4.3/src/lmathlib.c.
References Rand64::h, Rand64::l, lua_assert, packI(), and trim32.
Referenced by nextrand().
Definition at line 427 of file lua-5.4.3/src/lmathlib.c.
References Rand64::h, Rand64::l, lua_assert, packI(), and trim32.
Referenced by nextrand().
|
static |
Definition at line 642 of file lua-5.4.3/src/lmathlib.c.
References lua_newuserdatauv(), lua_pop, luaL_setfuncs(), randfuncs, and randseed().
Referenced by luaopen_math().
|
static |
Definition at line 592 of file lua-5.4.3/src/lmathlib.c.
References Int2I(), lua_pushinteger(), and nextrand().
Referenced by math_randomseed(), and randseed().
Definition at line 410 of file lua-5.4.3/src/lmathlib.c.
References Iadd(), and Ishl().
Referenced by nextrand().
Definition at line 415 of file lua-5.4.3/src/lmathlib.c.
References Iadd(), and Ishl().
Referenced by nextrand().
|
static |
Definition at line 705 of file lua-5.4.3/src/lmathlib.c.
Referenced by luaopen_math().
|
static |
Definition at line 632 of file lua-5.4.3/src/lmathlib.c.
Referenced by setrandfunc().