113 Commits (049cf14cf9f82a07387df4d0c9bdba5ba2fef22f)

Author SHA1 Message Date
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
Roberto Ierusalimschy 8b45d9806a new constants 'math.maxint'/'math.minint' 11 years ago
Roberto Ierusalimschy 607be77ec8 some details to avoid warnings 11 years ago
Roberto Ierusalimschy 66b7b9b582 math.abs, math.max, and math.min work for integers, too. 11 years ago
Roberto Ierusalimschy 4244da96bf 'debug.subtype' -> 'math.type' (to distinguish integers and floats) 11 years ago
Roberto Ierusalimschy fcf99bf788 'math.isfloat' replaced by 'debug.subtype' 11 years ago
Roberto Ierusalimschy cbe164191c new function 'ifloor' 12 years ago
Roberto Ierusalimschy 15fdbd26fe 'numbits' moved from 'math' to 'debug' library 12 years ago
Roberto Ierusalimschy 80cdf39d0e avoid using 'modf' in the implementation of 'math.modf', to avoid 12 years ago
Roberto Ierusalimschy 788b251157 'math.random' operates with integers when used for integer results 12 years ago
Roberto Ierusalimschy 1414b7123c support for the case when 'l_mathop' does not conform to lua_Number 12 years ago
Roberto Ierusalimschy 0233ce0815 new function 'math.numbits' (not a final decision) 12 years ago
Roberto Ierusalimschy 29fe3abda2 new function 'math.isfloat' 12 years ago
Roberto Ierusalimschy 8830901a9c second parameter to 'ldexp' is an integer 12 years ago
Roberto Ierusalimschy 181a837cac small improvement in the support of 'float' as lua_Number 12 years ago
Roberto Ierusalimschy 3ac595da8a allow "long double" precision for PI constant if needed 13 years ago
Roberto Ierusalimschy 79cbc3468c removed and deprecated functions really removed from the code base 14 years ago
Roberto Ierusalimschy bcce769d29 avoid "unreacheable code" warnings 14 years ago
Roberto Ierusalimschy a1952d9c41 'l_tvar' renamed to 'l_tg' 14 years ago
Roberto Ierusalimschy 1a46a713d2 new macro 'l_tvar' to easy the use of mathlib with other floating 14 years ago
Roberto Ierusalimschy c6b64ffe65 new type lua_Unsigned and corresponding projection/injection functions 14 years ago
Roberto Ierusalimschy 7192afafee new module policy: C modules do not create globals and do not register 15 years ago
Roberto Ierusalimschy a6f465f558 new mark LUAMOD_API for all luaopen_* functions 15 years ago
Roberto Ierusalimschy 3ca739b418 'math.random' uses lua_Number to manage its arguments (there is no 16 years ago
Roberto Ierusalimschy a1d0e1a11a 'log10' is deprecated now 16 years ago
Roberto Ierusalimschy 8975739839 better precision for log(x, 10) 16 years ago
Roberto Ierusalimschy 8d3dd04137 clearing some old compatibility code 18 years ago
Roberto Ierusalimschy 8e36e1fe49 details (randomseed calls rand once to dischard first value) 18 years ago
Roberto Ierusalimschy 5019b2dd20 math.log now accepts an optional base 19 years ago
Roberto Ierusalimschy 3390f9a35a detail 19 years ago
Roberto Ierusalimschy 5e8a9e324c luaL_openlib -> luaL_register, luaL_putchar -> luaL_addchar 20 years ago
Roberto Ierusalimschy 289b5dc67a details (function list in alphabetical order) 20 years ago
Roberto Ierusalimschy 1f9f97e3cf 'math.mod' -> 'math.fmod' 20 years ago