diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2018-05-24T13·00+0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-24T13·00+0200 |
commit | 743359bc8a2f7e3d7bbe0a10b19180863d82139f (patch) | |
tree | a5bb431b9724e5a65640a7f44a4e4b09c0fd908d /doc/manual/expressions | |
parent | e87242e0def2cd8528844c48e3c75c9daf5064ef (diff) | |
parent | 88c1ea30e461092db713e58fe7521c5c43c52212 (diff) |
Merge pull request #2157 from volth/bitwise
add builtins: __bitAnd, __bitOr, __bitXor
Diffstat (limited to 'doc/manual/expressions')
-rw-r--r-- | doc/manual/expressions/builtins.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/manual/expressions/builtins.xml b/doc/manual/expressions/builtins.xml index ac1fe7e2fafe..5489fab0026a 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 |