summaryrefslogtreecommitdiff
path: root/lmathlib.c
Commit message (Expand)AuthorAgeFilesLines
* Removed extra information from RCS keyword stringsRoberto Ierusalimschy2018-08-231-1/+1
* type 'Rand64' may not be long long, so it should not use 'LL' in itsRoberto Ierusalimschy2018-06-141-4/+5
* using some weak "randomness" (time and memory address) to initializeRoberto Ierusalimschy2018-05-161-10/+21
* correction on xoshiro256** algorithmRoberto Ierusalimschy2018-05-091-3/+3
* reorganization of '#if's for sellecting a type for 'Rand64' +Roberto Ierusalimschy2018-05-041-31/+56
* detail (trim constants are unsigned)Roberto Ierusalimschy2018-04-061-3/+3
* PRNG changed from 'xoroshiro128+' to 'xoshiro256**' + "I' renamed 'Rand64'Roberto Ierusalimschy2018-04-061-73/+109
* using 'xoroshiro128+' for PRNGRoberto Ierusalimschy2018-04-041-87/+88
* in 'random', uses high-order bits instead of low-orderRoberto Ierusalimschy2018-03-261-49/+68
* in random/'project', remove the special case for "small" intervals;Roberto Ierusalimschy2018-03-221-24/+15
* avoid functions named 'pack'Roberto Ierusalimschy2018-03-161-7/+7
* 'lu_int32' may not be 'int'Roberto Ierusalimschy2018-03-121-10/+13
* more explicit casts when converting an integer to a random floatRoberto Ierusalimschy2018-03-111-3/+5
* random floats of different sizes get exactly needed number of random bitsRoberto Ierusalimschy2018-03-091-30/+58
* slight simplification in 'xorshift128plus'Roberto Ierusalimschy2018-03-091-9/+11
* fairer projection of random integers into an integer intervalRoberto Ierusalimschy2018-03-091-15/+54
* 'math.random' using the xorshift128+ algorithmRoberto Ierusalimschy2018-03-051-36/+195
* detail (removing spaces at end of lines)Roberto Ierusalimschy2016-12-221-4/+4
* Using LUAI_UAC* types more consistently on vararg callsRoberto Ierusalimschy2016-12-201-4/+7
* detail (ensure subtraction is done unsigned)Roberto Ierusalimschy2015-10-021-2/+2
* tiny bug: 'randomseed' was calling 'rand' (instead of 'l_rand')Roberto Ierusalimschy2015-06-261-2/+2
* use 'log2' when availableRoberto Ierusalimschy2015-03-121-1/+4
* bug: 'random' limit is 2^31-1, not RAND_MAXRoberto Ierusalimschy2014-12-271-3/+5
* cleaner test for overflow for range of 'math.random'Roberto Ierusalimschy2014-11-071-3/+3
* added include for 'lprefix.h', for stuff that must be added beforeRoberto Ierusalimschy2014-11-021-4/+6
* 'lua_numtointeger' -> 'lua_numbertointeger'Roberto Ierusalimschy2014-10-241-2/+2
* added some casts for the cases when lua_Number != doubleRoberto Ierusalimschy2014-10-081-6/+6
* deprecated "cast macros" ('luaL_checkint', 'luaL_optint', etc.)Roberto Ierusalimschy2014-10-011-2/+2
* new function 'math.ult' (unsigned less than)Roberto Ierusalimschy2014-07-281-1/+10
* new conversion float->integer: conversion is valid only whenRoberto Ierusalimschy2014-07-171-20/+21
* detail (added placeholders for non-function fields to preallocateRoberto Ierusalimschy2014-07-161-1/+6
* detail (typos in comments)Roberto Ierusalimschy2014-06-301-3/+3
* unsigned-manipulation functions (lua_puhsunsigned, lua_tounsigned, etc.)Roberto Ierusalimschy2014-06-261-2/+2
* 'math.ifloor' is backRoberto Ierusalimschy2014-06-181-1/+15
* 'math.mof' works with integers, tooRoberto Ierusalimschy2014-06-021-12/+24
* no more 'math.ifloor' + new semantics for 'math.floor'/'math.ceil'Roberto Ierusalimschy2014-05-261-14/+18
* several functions deprecated (cosh, sinh, atanh, pow, frexp, ldexp)Roberto Ierusalimschy2014-05-141-66/+72
* 'math.fmod' handles integers as integersRoberto Ierusalimschy2014-05-021-4/+14
* 'math.random(n,m)' interval restricted in size, to avoid using conversionRoberto Ierusalimschy2014-04-171-8/+12
* math.random: use 'random' when available + changes to work correctlyRoberto Ierusalimschy2014-04-101-8/+19
* more precision for PI + no more RADIANS_PER_DEGREE +Roberto Ierusalimschy2014-04-091-7/+6
* new constants 'math.maxint'/'math.minint'Roberto Ierusalimschy2014-04-031-1/+5
* some details to avoid warningsRoberto Ierusalimschy2014-04-011-2/+2
* math.abs, math.max, and math.min work for integers, too.Roberto Ierusalimschy2014-03-311-15/+20
* 'debug.subtype' -> 'math.type' (to distinguish integers and floats)Roberto Ierusalimschy2013-07-221-1/+16
* 'math.isfloat' replaced by 'debug.subtype'Roberto Ierusalimschy2013-07-101-9/+1
* new function 'ifloor'Roberto Ierusalimschy2013-07-031-1/+14
* 'numbits' moved from 'math' to 'debug' libraryRoberto Ierusalimschy2013-06-251-14/+1
* avoid using 'modf' in the implementation of 'math.modf', to avoidRoberto Ierusalimschy2013-06-251-10/+12
* 'math.random' operates with integers when used for integer resultsRoberto Ierusalimschy2013-06-131-9/+11