aboutsummaryrefslogtreecommitdiff
path: root/doc/manual
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2018-05-24 15:00:39 +0200
committerGitHub <noreply@github.com>2018-05-24 15:00:39 +0200
commit743359bc8a2f7e3d7bbe0a10b19180863d82139f (patch)
treea5bb431b9724e5a65640a7f44a4e4b09c0fd908d /doc/manual
parente87242e0def2cd8528844c48e3c75c9daf5064ef (diff)
parent88c1ea30e461092db713e58fe7521c5c43c52212 (diff)
Merge pull request #2157 from volth/bitwise
add builtins: __bitAnd, __bitOr, __bitXor
Diffstat (limited to 'doc/manual')
-rw-r--r--doc/manual/expressions/builtins.xml30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/manual/expressions/builtins.xml b/doc/manual/expressions/builtins.xml
index ac1fe7e2f..5489fab00 100644
--- a/doc/manual/expressions/builtins.xml
+++ b/doc/manual/expressions/builtins.xml
@@ -92,6 +92,36 @@ available as <function>builtins.derivation</function>.</para>
</varlistentry>
+ <varlistentry><term><function>builtins.bitAnd</function>
+ <replaceable>e1</replaceable> <replaceable>e2</replaceable></term>
+
+ <listitem><para>Return the bitwise AND of the integers
+ <replaceable>e1</replaceable> and
+ <replaceable>e2</replaceable>.</para></listitem>
+
+ </varlistentry>
+
+
+ <varlistentry><term><function>builtins.bitOr</function>
+ <replaceable>e1</replaceable> <replaceable>e2</replaceable></term>
+
+ <listitem><para>Return the bitwise OR of the integers
+ <replaceable>e1</replaceable> and
+ <replaceable>e2</replaceable>.</para></listitem>
+
+ </varlistentry>
+
+
+ <varlistentry><term><function>builtins.bitXor</function>
+ <replaceable>e1</replaceable> <replaceable>e2</replaceable></term>
+
+ <listitem><para>Return the bitwise XOR of the integers
+ <replaceable>e1</replaceable> and
+ <replaceable>e2</replaceable>.</para></listitem>
+
+ </varlistentry>
+
+
<varlistentry><term><varname>builtins</varname></term>
<listitem><para>The set <varname>builtins</varname> contains all