1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Lua Bit Operations Module</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Mike Pall">
<meta name="Copyright" content="Copyright (C) 2005-2009, Mike Pall">
<meta name="Language" content="en">
<link rel="stylesheet" type="text/css" href="bluequad.css" media="screen">
<link rel="stylesheet" type="text/css" href="bluequad-print.css" media="print">
</head>
<body>
<div id="site">
<a href="http://bitop.luajit.org"><span>Bit<span id="logo">Op</span></span></a>
</div>
<div id="head">
<h1>Lua Bit Operations Module</h1>
</div>
<div id="nav">
<ul><li>
<a class="current" href="index.html">Lua BitOp</a>
</li><li>
<a href="install.html">Installation</a>
</li><li>
<a href="api.html">API Functions</a>
</li><li>
<a href="semantics.html">Semantics</a>
</li><li>
<a href="changes.html">Changes</a>
</li><li>
<a href="http://bitop.luajit.org/download.html">Download <span class="ext">»</span></a>
</li></ul>
</div>
<div id="main">
<p>
Lua BitOp is a C extension module for Lua 5.1
which adds <b>bitwise operations</b> on numbers.
</p>
<p>
Lua BitOp is Copyright © 2008-2009 Mike Pall.
Lua BitOp is free software, released under the
<a href="http://www.opensource.org/licenses/mit-license.php"><span class="ext">»</span> MIT/X license</a>
(same license as the Lua core).
</p>
<h2>Features</h2>
<ul>
<li>Supported <a href="api.html">functions</a>:
<tt>bit.tobit, bit.tohex, bit.bnot, bit.band, bit.bor, bit.bxor,
bit.lshift, bit.rshift, bit.arshift, bit.rol, bit.ror, bit.bswap</tt></li>
<li>Consistent <a href="semantics.html">semantics</a>
across 16, 32 and 64 bit platforms.</li>
<li>Supports different lua_Number types:
either IEEE 754 doubles, int32_t or int64_t.</li>
<li>Runs on Linux, *BSD, Mac OS X, Windows and probably anything else
you can find.</li>
<li>Simple <a href="install.html">installation</a> on all systems.
No bulky configure scripts. Embedded-systems-friendly.</li>
<li>Internal self-test on startup to detect miscompiles.
Includes a comprehensive test and benchmark suite.</li>
<li>Compatible with the bitwise operations in the upcoming LuaJIT 2.x.</li>
<li>It's as fast as you can get with the standard Lua/C API.</li>
</ul>
<h2>More ...</h2>
<p>
Please click on one of the links in the navigation bar to your left
to learn more.
</p>
<p>
Click on the Logo in the upper left corner to visit
the Lua BitOp project page on the web. All other links to online
resources are marked with a '<span class="ext">»</span>'.
</p>
<br class="flush">
</div>
<div id="foot">
<hr class="hide">
Copyright © 2009 Mike Pall
<span class="noprint">
·
<a href="contact.html">Contact</a>
</span>
</div>
</body>
</html>
|