<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lua/lmathlib.c, branch v5.5.1</title>
<subtitle>A mirror of https://github.com/lua/lua
</subtitle>
<id>https://git.lua4.win/lua/atom?h=v5.5.1</id>
<link rel='self' href='https://git.lua4.win/lua/atom?h=v5.5.1'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/'/>
<updated>2025-09-05T18:36:47+00:00</updated>
<entry>
<title>Details</title>
<updated>2025-09-05T18:36:47+00:00</updated>
<author>
<name>Roberto I</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-09-05T18:36:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=9ea06e61f20ae34974226074fc6123dbb54a07c2'/>
<id>urn:sha1:9ea06e61f20ae34974226074fc6123dbb54a07c2</id>
<content type='text'>
- LUAMOD_API defined as 'extern "C"' in C++.
- "ANSI C" is in fact "ISO C" (comments)
- Removed option -std from makefile in testes/libs. (Easier to change
  to C++ for tests).
</content>
</entry>
<entry>
<title>Small cleaning services</title>
<updated>2025-08-20T16:59:08+00:00</updated>
<author>
<name>Roberto I</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-08-20T16:59:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=dd095677e38a104d0fd073f31530e08c9f5286fc'/>
<id>urn:sha1:dd095677e38a104d0fd073f31530e08c9f5286fc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Functions 'frexp'-'ldexp' back to the math library</title>
<updated>2025-08-09T18:15:20+00:00</updated>
<author>
<name>Roberto I</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-08-09T18:15:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=53dc5a3bbadac166a8b40904790f91b351e55dd9'/>
<id>urn:sha1:53dc5a3bbadac166a8b40904790f91b351e55dd9</id>
<content type='text'>
They are basic for anything that handles the representation of
floating numbers.
</content>
</entry>
<entry>
<title>Small optimization in 'project' from math.random</title>
<updated>2025-03-27T18:22:40+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-03-27T18:22:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=37a1b72706b6e55e60b8d73bcbe269921976825e'/>
<id>urn:sha1:37a1b72706b6e55e60b8d73bcbe269921976825e</id>
<content type='text'>
When computing the Mersenne number, instead of spreading 1's a fixed
number of times (with shifts of 1, 2, 4, 8, 16, and 32), spread only
until the number becomes a Mersenne number.
</content>
</entry>
<entry>
<title>Addition in math.random can overflow</title>
<updated>2025-03-25T14:43:03+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-03-25T14:43:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=b0f3df16a495745cf16657a48dde6845ec85c732'/>
<id>urn:sha1:b0f3df16a495745cf16657a48dde6845ec85c732</id>
<content type='text'>
To avoid complains from some tools, the addition when computing
math.random(n,m), which is computed as n + random(0, m - n), should
use unsigned integers.
</content>
</entry>
<entry>
<title>Details</title>
<updated>2025-01-16T14:51:16+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2025-01-16T14:51:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=2d8d5c74b5ef3d333314feede0165df7c3d13811'/>
<id>urn:sha1:2d8d5c74b5ef3d333314feede0165df7c3d13811</id>
<content type='text'>
New year (2024-&gt;2025), typos in comments
</content>
</entry>
<entry>
<title>Added gcc option '-Wconversion'</title>
<updated>2024-07-27T16:32:59+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-07-27T16:32:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b'/>
<id>urn:sha1:0acd55898d0aaae8dbc14c8a1bc1e3bdffc8701b</id>
<content type='text'>
No warnings for standard numerical types. Still pending alternative
numerical types.
</content>
</entry>
<entry>
<title>llimits.h being used by all Lua code</title>
<updated>2024-06-20T17:46:06+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-06-20T17:46:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=a08d82eb132bfd9db5b91e0d5ebcb81d7b26dcd0'/>
<id>urn:sha1:a08d82eb132bfd9db5b91e0d5ebcb81d7b26dcd0</id>
<content type='text'>
The definitions in llimits.h are useful not only for the core. That
header only defines types and '#define's, so libs and core still do
not share any real code/data.
</content>
</entry>
<entry>
<title>Fixed warnings from different compilers</title>
<updated>2024-02-15T14:18:34+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2024-02-15T14:18:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=7237eb3f1c480d6bc7fe2832ddd36f2137fb69d9'/>
<id>urn:sha1:7237eb3f1c480d6bc7fe2832ddd36f2137fb69d9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'master' into nextversion</title>
<updated>2023-11-07T20:25:46+00:00</updated>
<author>
<name>Roberto Ierusalimschy</name>
<email>roberto@inf.puc-rio.br</email>
</author>
<published>2023-11-07T20:25:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/lua/commit/?id=9e99f3071d07767f9e882c4abf3537f75ce2d161'/>
<id>urn:sha1:9e99f3071d07767f9e882c4abf3537f75ce2d161</id>
<content type='text'>
</content>
</entry>
</feed>
