(it uses *.ini config file from the same folder where is the executable file) changed: Makefile added: Makefileportable, Makefile.dep Makefileportable uses TTCALC_PORTABLE macro to indicate that we're compiling the portable version of the TTCalc in portable mode we're compiling with -Os changed: small changes in almost all files for using with TTCALC_PORTABLE macro in the portable version we have only one parser (as the parsers are leant on templates that the program will be smaller now) changed: in the portable version the bitmap on the about dialog has gone away (it was 142kb) added: the portable version *.exe is packed by the UPX packer (http://upx.sourceforge.net/) added: help/bitwise_functions.html (I forgot to add it to the repository) git-svn-id: svn://ttmath.org/publicrep/ttcalc/trunk@43 e52654a7-88a9-db11-a3e9-0013d4bc506e
50 lines
1.5 KiB
HTML
50 lines
1.5 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<title>TTCalc - bitwise functions</title>
|
|
<link rel="stylesheet" href="styles.css" type="text/css">
|
|
<object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
|
|
<param name="Keyword" value="bitand">
|
|
<param name="Keyword" value="bitor">
|
|
<param name="Keyword" value="bitxor">
|
|
<param name="Keyword" value="band">
|
|
<param name="Keyword" value="bor">
|
|
<param name="Keyword" value="bxor">
|
|
<param name="Keyword" value="bitwise functions">
|
|
</object>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Bitwise functions</h1>
|
|
|
|
<p>
|
|
There are bitwise functions in the program but they can operate only on non-negative values.
|
|
We don't define the BitNot() function too.
|
|
</p>
|
|
|
|
|
|
<dl>
|
|
|
|
<dt>BitAnd(x ; y) or band(x ; y)</dt>
|
|
<dd>Bitwise AND. For example:<br>
|
|
bitand(6; 2) = bitand(&110 ; &10) = &10 = 2<br>
|
|
bitand(6.5; 2.5) = bitand(&110.1 ; &10.1) = &10.1 = 2.5</dd>
|
|
|
|
<dt>BitOr(x ; y) or bor(x ; y)</dt>
|
|
<dd>Bitwise OR. For example:<br>
|
|
bitor(6; 1) = bitor(&110 ; &1) = &111 = 7<br>
|
|
bitor(6.5; 1.5) = bitor(&110.1 ; &1.1) = &111.1 = 7.5</dd>
|
|
|
|
<dt>BitXor(x ; y) or bxor(x ; y)</dt>
|
|
<dd>Bitwise XOR. For example:<br>
|
|
bitxor(6; 3) = bitxor(&110 ; &11) = &101 = 5<br>
|
|
bitxor(6.5; 3.5) = bitxor(&110.1 ; &11.1) = &101.0 = 5</dd>
|
|
|
|
</dl>
|
|
|
|
</body>
|
|
</html>
|