Debian Codegraph @

opcodes/opbitand.xml

raw symbols SCIP
1
2 <refentry id="opbitand">
3 <indexterm id="IndexAmp"><primary>&amp;</primary></indexterm>
4 <refentryinfo><title>Mathematical Operations:Arithmetic and Logic Operations</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>&amp;</refentrytitle>
7 </refmeta>
8 <refnamediv>
9 <refname>&amp;</refname>
10 <refpurpose>
11 Bitwise AND operator.
12 </refpurpose>
13 </refnamediv>
14
15 <refsect1>
16 <title>Description</title>
17 <para>
18 The bitwise operators perform operations of bitwise AND, bitwise
19 OR, bitwise NOT and bitwise non-equivalence.
20 </para>
21 </refsect1>
22
23 <refsect1>
24 <title>Syntax</title>
25 <synopsis>a <command>&amp;</command> b (bitwise AND)</synopsis>
26
27 <para>
28 where the arguments <emphasis>a</emphasis> and <emphasis>b</emphasis> may be further expressions. They are
29 converted to the nearest integer to machine precision and then the
30 operation is performed.
31 </para>
32 </refsect1>
33 <refsect1>
34 <title>Performance</title>
35
36 <para>
37 The priority of these operators is less binding that the
38 arithmetic ones, but more binding that the comparisons.
39 </para>
40
41 <para>
42 Parentheses may be used as above to force particular groupings.
43 </para>
44 </refsect1>
45
46 <refsect1>
47 <title>Examples</title>
48 <para>
49 Here is an example of the bitwise AND and OR operators. It uses the file <ulink url="examples/bitwise.csd"><citetitle>bitwise.csd</citetitle></ulink>.
50 <example>
51 <title>Example of the bitwise operators.</title>
52 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
53 <xi:include href="examples-xml/bitwise.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
54 </example>
55 </para>
56 <para>
57 Here is an example for the bitwise-group, comparing the different bitwise opcodes. It uses the file <ulink url="examples/bitwise-group.csd"><citetitle>bitwise-group.csd</citetitle></ulink>.
58 <example>
59 <title>Example of the bitwise group.</title>
60 <xi:include href="examples-xml/bitwise-group.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
61 </example>
62 </para>
63 </refsect1>
64
65 <refsect1>
66 <title>See also</title>
67 <para><link linkend="MathArtLogic"><citetitle>Arithmetic and Logic Operations</citetitle></link></para>
68 </refsect1>
69
70 </refentry>