liba 0.1.15

An algorithm library based on C/C++
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env lua

package.path = arg[0]:sub(0, -arg[0]:match("([^/\\]*)$"):len() - 1) .. "?.lua;" .. package.path
local test = require("test")
local a = require("liba")
for i, v in pairs(arg) do
    if i == 1 then
        io.output(v)
        break
    end
end
test.dir(a)
test.log(a.isqrt(1, 2, 4))
test.log(a.rsqrt(1, 2, 4))
test.log(a.hash_bkdr(arg[0]))
test.log(a.hash_sdbm(arg[0]))