145 Commits (7ccc6d8290143009d2bab8f4330bbf443fc25846)

Author SHA1 Message Date
Roberto Ierusalimschy 6eb53b7526 Details 5 years ago
Roberto Ierusalimschy 2d92102dee 'l_mathlim' renamed to 'l_floatatt' 5 years ago
Roberto Ierusalimschy b96b0b5abb Added macro 'luaL_pushfail' 5 years ago
Roberto Ierusalimschy 2f22c6bb79 'math.randomseed' always returns the two seed components 5 years ago
Roberto Ierusalimschy 4eefef07ab 'math.randomseed()' returns the seeds it used 5 years ago
Roberto Ierusalimschy 347d6961ac Define LUA_MAXUNSIGNED as a preprocessor constant 6 years ago
Roberto Ierusalimschy 279c3a6961 A few changes in tests about number of bits in integers 6 years ago
Roberto Ierusalimschy 9eca305e75 'math.randomseed()' sets a somewhat random seed 6 years ago
Roberto Ierusalimschy 51316f9df7 'math.rand()' uses higher bits to produce float value 6 years ago
Roberto Ierusalimschy f99509581e Removed extra information from RCS keyword strings 6 years ago
Roberto Ierusalimschy aedcfb9414 type 'Rand64' may not be long long, so it should not use 'LL' in its 6 years ago
Roberto Ierusalimschy de53c2ec7e using some weak "randomness" (time and memory address) to initialize 7 years ago
Roberto Ierusalimschy 80bd4a8940 correction on xoshiro256** algorithm 7 years ago
Roberto Ierusalimschy 3e7415e846 reorganization of '#if's for sellecting a type for 'Rand64' + 7 years ago
Roberto Ierusalimschy 762baf0548 detail (trim constants are unsigned) 7 years ago
Roberto Ierusalimschy b8a04658b2 PRNG changed from 'xoroshiro128+' to 'xoshiro256**' + "I' renamed 'Rand64' 7 years ago
Roberto Ierusalimschy b44787652b using 'xoroshiro128+' for PRNG 7 years ago
Roberto Ierusalimschy bdd10a08b1 in 'random', uses high-order bits instead of low-order 7 years ago
Roberto Ierusalimschy c5e3b2f814 in random/'project', remove the special case for "small" intervals; 7 years ago
Roberto Ierusalimschy 89da4168df avoid functions named 'pack' 7 years ago
Roberto Ierusalimschy 6b01b6cf6a 'lu_int32' may not be 'int' 7 years ago
Roberto Ierusalimschy e3388ebfad more explicit casts when converting an integer to a random float 7 years ago
Roberto Ierusalimschy dbec41f34c random floats of different sizes get exactly needed number of random bits 7 years ago
Roberto Ierusalimschy 0b3db69e41 slight simplification in 'xorshift128plus' 7 years ago
Roberto Ierusalimschy 80ae1c1c16 fairer projection of random integers into an integer interval 7 years ago
Roberto Ierusalimschy 66b7b075a6 'math.random' using the xorshift128+ algorithm 7 years ago
Roberto Ierusalimschy 2a235312f0 detail (removing spaces at end of lines) 8 years ago
Roberto Ierusalimschy 9903dd52a3 Using LUAI_UAC* types more consistently on vararg calls 8 years ago
Roberto Ierusalimschy dc4232379d detail (ensure subtraction is done unsigned) 9 years ago
Roberto Ierusalimschy be63d995c1 tiny bug: 'randomseed' was calling 'rand' (instead of 'l_rand') 10 years ago
Roberto Ierusalimschy 7d930ec694 use 'log2' when available 10 years ago
Roberto Ierusalimschy 1a7868c1d5 bug: 'random' limit is 2^31-1, not RAND_MAX 10 years ago
Roberto Ierusalimschy 17ca3b1763 cleaner test for overflow for range of 'math.random' 10 years ago
Roberto Ierusalimschy 28fdbcf393 added include for 'lprefix.h', for stuff that must be added before 10 years ago
Roberto Ierusalimschy 463edee2fd 'lua_numtointeger' -> 'lua_numbertointeger' 10 years ago
Roberto Ierusalimschy 65ec3379b1 added some casts for the cases when lua_Number != double 10 years ago
Roberto Ierusalimschy 798660c9cd deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.) 10 years ago
Roberto Ierusalimschy 925d1b59f9 new function 'math.ult' (unsigned less than) 10 years ago
Roberto Ierusalimschy 8bb272a3e3 new conversion float->integer: conversion is valid only when 10 years ago
Roberto Ierusalimschy f14662fca6 detail (added placeholders for non-function fields to preallocate 10 years ago
Roberto Ierusalimschy b9dcf9974d detail (typos in comments) 11 years ago
Roberto Ierusalimschy a77d263e86 unsigned-manipulation functions (lua_puhsunsigned, lua_tounsigned, etc.) 11 years ago
Roberto Ierusalimschy e3871abe95 'math.ifloor' is back 11 years ago
Roberto Ierusalimschy 355037528c 'math.mof' works with integers, too 11 years ago
Roberto Ierusalimschy 456806f25c no more 'math.ifloor' + new semantics for 'math.floor'/'math.ceil' 11 years ago
Roberto Ierusalimschy 8b66040e34 several functions deprecated (cosh, sinh, atanh, pow, frexp, ldexp) 11 years ago
Roberto Ierusalimschy 6d5324f92f 'math.fmod' handles integers as integers 11 years ago
Roberto Ierusalimschy cbe4998bc2 'math.random(n,m)' interval restricted in size, to avoid using conversion 11 years ago
Roberto Ierusalimschy 5336cc9d6a math.random: use 'random' when available + changes to work correctly 11 years ago
Roberto Ierusalimschy fdd137276b more precision for PI + no more RADIANS_PER_DEGREE + 11 years ago