Debian Codegraph @

opcodes/opbitor.xml

raw symbols SCIP
1
2 <refentry id="opbitor">
3 <indexterm id="IndexVerbar"><primary>&verbar;</primary></indexterm>
4 <refentryinfo><title>Mathematical Operations:Arithmetic and Logic Operations</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>&verbar;</refentrytitle>
7 </refmeta>
8 <refnamediv>
9 <refname>&verbar;</refname>
10 <refpurpose>
11 Bitwise OR 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>&verbar;</command> b (bitwise OR)</synopsis>
26
27 <para>
28 where the arguments <emphasis>a</emphasis> and
29 <emphasis>b</emphasis> may be further expressions. They are
30 converted to the nearest integer to machine precision and then the
31 operation is performed.
32 </para>
33 </refsect1>
34
35 <refsect1>
36 <title>Performance</title>
37 <para>
38 The priority of these operators is less binding that the
39 arithmetic ones, but more binding that the comparisons.
40 </para>
41
42 <para>
43 Parentheses may be used as above to force particular groupings.
44 </para>
45 </refsect1>
46
47 <refsect1>
48 <title>Examples</title>
49 <para>
50 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>.
51 <example>
52 <title>Example of the bitwise operators.</title>
53 <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>
54 <xi:include href="examples-xml/bitwise.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
55 </example>
56 </para>
57 <para>
58 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>.
59 <example>
60 <title>Example of the bitwise group.</title>
61 <xi:include href="examples-xml/bitwise-group.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
62 </example>
63 </para>
64 </refsect1>
65
66 <refsect1>
67 <title>See also</title>
68 <para><link linkend="MathArtLogic"><citetitle>Arithmetic and Logic Operations</citetitle></link></para>
69 </refsect1>
70
71 </refentry>