Skip to content

Commit 9113f0f

Browse files
committed
Release v0.4.0
1 parent 2fcd2c3 commit 9113f0f

File tree

3 files changed

+18
-32
lines changed

3 files changed

+18
-32
lines changed

bint.lua

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,8 @@
1-
--[[
2-
The MIT License (MIT)
3-
4-
Copyright (c) 2020 Eduardo Bart (https://github.com/edubart)
5-
6-
Permission is hereby granted, free of charge, to any person obtaining a copy
7-
of this software and associated documentation files (the "Software"), to deal
8-
in the Software without restriction, including without limitation the rights
9-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
copies of the Software, and to permit persons to whom the Software is
11-
furnished to do so, subject to the following conditions:
12-
13-
The above copyright notice and this permission notice shall be included in all
14-
copies or substantial portions of the Software.
15-
16-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22-
SOFTWARE.
23-
]]
24-
251
--[[--
2+
lua-bint - v0.4.0 - 20/Jan/2022
3+
Eduardo Bart - edub4rt@gmail.com
4+
https://github.com/edubart/lua-bint
5+
266
Small portable arbitrary-precision integer arithmetic library in pure Lua for
277
computing with large integers.
288
@@ -149,7 +129,7 @@ assert(bits % wordbits == 0, 'bitsize is not multiple of word bitsize')
149129
assert(2*wordbits <= intbits, 'word bitsize must be half of the lua integer bitsize')
150130
assert(bits >= 64, 'bitsize must be >= 64')
151131

152-
-- Create bint class
132+
-- Create bint module
153133
local bint = {}
154134
bint.__index = bint
155135

@@ -1193,13 +1173,13 @@ function bint.umod(x, y)
11931173
end
11941174

11951175
--- Perform integer truncate division and modulo operation between two numbers considering bints.
1196-
-- This is effectively the same of @{bint.__tdiv} and @{bint.__tmod}.
1176+
-- This is effectively the same of @{bint.tdiv} and @{bint.tmod}.
11971177
-- @param x The numerator, a bint or lua number.
11981178
-- @param y The denominator, a bint or lua number.
11991179
-- @return The quotient following the remainder, both bint or lua number.
12001180
-- @raise Asserts on attempt to divide by zero or on division overflow.
1201-
-- @see bint.__tdiv
1202-
-- @see bint.__tmod
1181+
-- @see bint.tdiv
1182+
-- @see bint.tmod
12031183
function bint.tdivmod(x, y)
12041184
local ax, ay = bint.abs(x), bint.abs(y)
12051185
local ix, iy = bint.tobint(ax), bint.tobint(ay)

docs/index.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ <h2>Modules</h2>
4444
<div id="content">
4545

4646
<h1>Module <code>bint</code></h1>
47+
<p>lua-bint - v0.4.0 - 20/Jan/2022
48+
Eduardo Bart - edub4rt@gmail.com
49+
https://github.com/edubart/lua-bint</p>
50+
4751
<p>Small portable arbitrary-precision integer arithmetic library in pure Lua for
4852
computing with large integers.</p>
4953
<p>
@@ -1680,7 +1684,7 @@ <h3>Raises:</h3>
16801684
</dt>
16811685
<dd>
16821686
Perform integer truncate division and modulo operation between two numbers considering bints.
1683-
This is effectively the same of ??? and ???.
1687+
This is effectively the same of <a href="index.html#tdiv">bint.tdiv</a> and <a href="index.html#tmod">bint.tmod</a>.
16841688

16851689

16861690
<h3>Parameters:</h3>
@@ -1704,6 +1708,8 @@ <h3>Raises:</h3>
17041708

17051709
<h3>See also:</h3>
17061710
<ul>
1711+
<li><a href="index.html#tdiv">bint.tdiv</a></li>
1712+
<li><a href="index.html#tmod">bint.tmod</a></li>
17071713
</ul>
17081714

17091715

@@ -2479,7 +2485,7 @@ <h2 class="section-header "><a name="Fields"></a>Fields</h2>
24792485
</div> <!-- id="main" -->
24802486
<div id="about">
24812487
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
2482-
<i style="float:right;">Last updated 2020-09-24 08:14:54 </i>
2488+
<i style="float:right;">Last updated 2021-01-20 07:05:31 </i>
24832489
</div> <!-- id="about" -->
24842490
</div> <!-- id="container" -->
24852491
</body>

rockspecs/bint-0.3.1-1.rockspec renamed to rockspecs/bint-0.4.0-1.rockspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package = "bint"
2-
version = "0.3.1-1"
2+
version = "0.4.0-1"
33
source = {
44
url = "git://github.com/edubart/lua-bint.git",
5-
tag = "v0.3.1"
5+
tag = "v0.4.0"
66
}
77
description = {
88
summary = "Arbitrary precision integer arithmetic library in pure Lua",

0 commit comments

Comments
 (0)