https://github.com/saurvs/lualbc-kern
(WIP) A port of Lua lbc to the NetBSD kernel
https://github.com/saurvs/lualbc-kern
Last synced: about 1 month ago
JSON representation
(WIP) A port of Lua lbc to the NetBSD kernel
- Host: GitHub
- URL: https://github.com/saurvs/lualbc-kern
- Owner: saurvs
- Created: 2017-01-08T18:15:16.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-08T18:33:54.000Z (over 9 years ago)
- Last Synced: 2025-12-27T21:09:37.841Z (6 months ago)
- Language: C
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Note: this is a port in progress. For example, __div, __pow, __tostring, and maybe other
metamethods don't yet work.
-------------------------------------------------------------------------------
bc library:
__add(x,y) __pow(x,y) digits([n]) mul(x,y) sub(x,y)
__div(x,y) __sub(x,y) div(x,y) neg(x) tonumber(x)
__eq(x,y) __tostring(x) divmod(x,y) number(x) tostring(x)
__lt(x,y) __unm(x) isneg(x) pow(x,y) trunc(x,[n])
__mod(x,y) add(x,y) iszero(x) powmod(x,y,m) version
__mul(x,y) compare(x,y) mod(x,y) sqrt(x)
-------------------------------------------------------------------------------