aboutsummaryrefslogtreecommitdiff
path: root/lcorolib.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-07-10In tests of opcodes, avoid coercion in bitwise operationRoberto Ierusalimschy1-1/+1
2018-07-10Improvements in the manualRoberto Ierusalimschy1-14/+17
- More precise use of 'argument' x 'parameter'. - Clarification about what the lexer considers 'letter', 'space', and 'digit'.
2018-07-10Added missing $Id$ to file 'ljumptab.h'Roberto Ierusalimschy1-0/+7
2018-07-09Generational mode may wait longer after a major collectionRoberto Ierusalimschy1-8/+25
When Lua is building large long-duration structures, frequent small minor collections just waste time. Trying to avoid this, the collector will do a larger pause after a major collection when it does not collect enough garbage (which is a hint that memory is being used for long-lasting objects).
2018-07-09'searchpath' creates less temporary stringsRoberto Ierusalimschy1-18/+34
When creating error messages, package loaders may create dozens of temporary strings (one or more for each tried template). This change reduces the number of these strings, and avoid creating some of them if the search is successful.
2018-07-09Bit-library file removed from the project (as it was deprecated)Roberto Ierusalimschy1-7/+0
This commit only removed the file 'lbitlib.c' from the project; the makefile already was not using it.
2018-07-09Opcode names moved to a new header fileRoberto Ierusalimschy4-94/+100
The array with the names of the opcodes was moved to a header file ('lopnames.h'), as it is not used by the Lua kernel. Files that need that array ('luac.c' and 'ltests.c') include the header file to get a private (static) copy.
2018-07-09Fixed bug in OP_IDIVIRoberto Ierusalimschy2-3/+14
Opocode was using 'luai_numdiv' (float division) instead of 'luai_numidiv' (integer division).
2018-07-09Added manual and tests for version 5.4-w2Roberto Ierusalimschy37-0/+22260
2018-06-19opening functions must be exported!v5.4-w2Roberto Ierusalimschy1-5/+3
2018-06-18several detailsRoberto Ierusalimschy1-11/+10
2018-06-18in generational mode, an emergency collection can turn any object blackRoberto Ierusalimschy1-3/+3
during any memory allocation + 'luaT_getvarargs' may reallocate the stack, and therefore the top must be correct.
2018-06-18in generational mode, an emergency collection can turn any object blackRoberto Ierusalimschy1-2/+2
during any memory allocation.
2018-06-18change in 'LUAI_DDEC' to allow variables to be static in 'onelua'Roberto Ierusalimschy4-13/+17
+ change in 'LUAMOD_API' as opening functions do not need to be global
2018-06-18no need to check whether libraries and host use the same kernel;Roberto Ierusalimschy6-23/+18
Lua should work correctly with several copies of the kernel
2018-06-15new field 'nilvalue' in struct 'global_State' to avoid the use ofRoberto Ierusalimschy5-22/+17
addresses of static variables
2018-06-15removed unused macros 'isstackindex'/'api_checkstackindex' +Roberto Ierusalimschy1-10/+2
macro 'api_checkvalidindex' (used only once) expanded and removed
2018-06-15detail (removed unused definition for 'LUA_QS')Roberto Ierusalimschy1-10/+2
2018-06-15warning (comparison between signed and unsigned integers)Roberto Ierusalimschy1-2/+3
2018-06-15field 'sizearray' in struct 'Table' changed to 'alimit', which canRoberto Ierusalimschy7-54/+201
be used as a hint for '#t'
2018-06-15new macro 'ispow2'Roberto Ierusalimschy1-1/+7
2018-06-14type 'Rand64' may not be long long, so it should not use 'LL' in itsRoberto Ierusalimschy1-4/+5
constants
2018-06-11no more 'TESTGRAYBIT' (to free this bit for real uses)Roberto Ierusalimschy2-24/+8
2018-06-08detail in commentRoberto Ierusalimschy1-2/+2
2018-06-08added 'const' to 'Proto*' when possibleRoberto Ierusalimschy4-23/+24
2018-06-08added patch for bug 5.3.4-7Roberto Ierusalimschy1-2/+40
2018-06-01no more 'luaO_nilobject' to avoid comparison of global variable addressesRoberto Ierusalimschy5-20/+12
(now uses static variables)
2018-06-01no more 'luaH_emptyobject' and comparisons of addresses of global variablesRoberto Ierusalimschy5-30/+46
(instead, use a different kind of nil to signal the fake entry returned when a key is not found in a table)
2018-06-01avoid craches when loading tampered code with NULL as a string constantRoberto Ierusalimschy1-6/+20
2018-05-30new macros 'likely'/'unlikely' with hints for jump predictionsRoberto Ierusalimschy6-48/+78
(used only in errors for now)
2018-05-29macro 'luai_makeseed' now controls the whole process of making the seedRoberto Ierusalimschy1-17/+17
2018-05-29detail ('l_castU2S' should only be used over lua_Unsigned values)Roberto Ierusalimschy1-2/+2
2018-05-25avoid possible overflows when checking sizes in 'string.unpack'Roberto Ierusalimschy1-11/+8
2018-05-24added patches for two bugs (5.3.4-2 and 5.3.4-3)Roberto Ierusalimschy1-2/+51
2018-05-23avoid circular inclusion between ltm.h <-> lstate.hRoberto Ierusalimschy1-2/+1
2018-05-22in 'luaD_poscall', there is no need to compute 'firstResult' when 'nres==0'Roberto Ierusalimschy3-51/+48
2018-05-16using some weak "randomness" (time and memory address) to initializeRoberto Ierusalimschy1-10/+21
seeds for the PRNG
2018-05-09correction on xoshiro256** algorithmRoberto Ierusalimschy1-3/+3
(should use state[1] instead of state[0] for output)
2018-05-04reorganization of '#if's for sellecting a type for 'Rand64' +Roberto Ierusalimschy2-32/+61
comments
2018-05-02minimizing the code ran by 'vmfetch' + no more 'vra'Roberto Ierusalimschy3-125/+128
(the code is simpler without 'vra' and conversion is a no-op)
2018-04-25'luaO_pushvfstring' does not need to reallocate stackRoberto Ierusalimschy1-10/+12
(less error cases in the API)
2018-04-19no need to define 'luaP_opnames' in regular buildsRoberto Ierusalimschy2-2/+10
2018-04-11use test mode to test the interpreter without jump tablesRoberto Ierusalimschy1-1/+5
2018-04-06detail (trim constants are unsigned)Roberto Ierusalimschy1-3/+3
2018-04-06PRNG changed from 'xoroshiro128+' to 'xoshiro256**' + "I' renamed 'Rand64'Roberto Ierusalimschy1-73/+109
+ implementation can use integer types larger than 64 (or 32) bits
2018-04-04using 'xoroshiro128+' for PRNGRoberto Ierusalimschy1-87/+88
(plus a rotate at the final result to have better lower bits)
2018-04-04no more nil-in-tableRoberto Ierusalimschy16-172/+23
2018-04-02using unsigned comparison in 'l_intfitsf' (avoids one comparison)Roberto Ierusalimschy1-9/+13
2018-04-02definition for LUA_UNSIGNEDBITS (number of bits in a LUA_UNSIGNED)Roberto Ierusalimschy1-1/+4
2018-03-26in 'random', uses high-order bits instead of low-orderRoberto Ierusalimschy1-49/+68
(better statistical properties)