mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
2 lines
No EOL
9.5 KiB
HTML
2 lines
No EOL
9.5 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Infix (containers.CCNativeint.Infix)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> – <a href="../../index.html">containers</a> » <a href="../index.html">CCNativeint</a> » Infix</nav><h1>Module <code>CCNativeint.Infix</code></h1></header><dl><dt class="spec value" id="val-(+)"><a href="#val-(+)" class="anchor"></a><code><span class="keyword">val</span> (+) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a></code></dt><dd><p><code>x + y</code> is the sum of <code>x</code> and <code>y</code>. Addition.</p></dd></dl><dl><dt class="spec value" id="val-(-)"><a href="#val-(-)" class="anchor"></a><code><span class="keyword">val</span> (-) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a></code></dt><dd><p><code>x - y</code> is the difference of <code>x</code> and <code>y</code>. Subtraction.</p></dd></dl><dl><dt class="spec value" id="val-(~-)"><a href="#val-(~-)" class="anchor"></a><code><span class="keyword">val</span> (~-) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a></code></dt><dd><p><code>~- x</code> is the negation of <code>x</code>. Unary negation.</p></dd></dl><dl><dt class="spec value" id="val-(*)"><a href="#val-(*)" class="anchor"></a><code><span class="keyword">val</span> (*) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a></code></dt><dd><p><code> x * y</code> is the product of <code>x</code> and <code>y</code>. Multiplication.</p></dd></dl><dl><dt class="spec value" id="val-(/)"><a href="#val-(/)" class="anchor"></a><code><span class="keyword">val</span> (/) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a></code></dt><dd><p><code>x / y</code> is the integer quotient of <code>x</code> and <code>y</code>. Integer division. Raise <code>Division_by_zero</code> if the second argument <code>y</code> is zero. This division rounds the real quotient of its arguments towards zero, as specified for <span class="xref-unresolved" title="unresolved reference to "Stdlib.(/)""><code>Stdlib</code>.(/)</span>.</p></dd></dl><dl><dt class="spec value" id="val-(mod)"><a href="#val-(mod)" class="anchor"></a><code><span class="keyword">val</span> (mod) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a></code></dt><dd><p><code>x mod y</code> is the integer remainder of <code>x / y</code>. If <code>y <> zero</code>, the result of <code>x mod y</code> satisfies the following properties: <code>zero <= x mod y < abs y</code> and <code>x = ((x / y) * y) + (x mod y)</code>. If <code>y = 0</code>, <code>x mod y</code> raises <code>Division_by_zero</code>.</p></dd></dl><dl><dt class="spec value" id="val-(**)"><a href="#val-(**)" class="anchor"></a><code><span class="keyword">val</span> (**) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a></code></dt><dd><p>Alias to <a href="../index.html#val-pow"><code>pow</code></a></p><dl><dt>since</dt><dd>3.0</dd></dl></dd></dl><dl><dt class="spec value" id="val-(--)"><a href="#val-(--)" class="anchor"></a><code><span class="keyword">val</span> (--) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a> <span>-></span> <span><a href="../index.html#type-t">t</a> <a href="../index.html#type-iter">iter</a></span></code></dt><dd><p>Alias to <a href="../index.html#val-range"><code>range</code></a>.</p><dl><dt>since</dt><dd>3.0</dd></dl></dd></dl><dl><dt class="spec value" id="val-(--^)"><a href="#val-(--^)" class="anchor"></a><code><span class="keyword">val</span> (--^) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a> <span>-></span> <span><a href="../index.html#type-t">t</a> <a href="../index.html#type-iter">iter</a></span></code></dt><dd><p>Alias to <a href="../index.html#val-range'"><code>range'</code></a>.</p><dl><dt>since</dt><dd>3.0</dd></dl></dd></dl><dl><dt class="spec value" id="val-(land)"><a href="#val-(land)" class="anchor"></a><code><span class="keyword">val</span> (land) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a></code></dt><dd><p><code>x land y</code> is the bitwise logical and of <code>x</code> and <code>y</code>.</p></dd></dl><dl><dt class="spec value" id="val-(lor)"><a href="#val-(lor)" class="anchor"></a><code><span class="keyword">val</span> (lor) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a></code></dt><dd><p><code>x lor y</code> is the bitwise logical or of <code>x</code> and <code>y</code>.</p></dd></dl><dl><dt class="spec value" id="val-(lxor)"><a href="#val-(lxor)" class="anchor"></a><code><span class="keyword">val</span> (lxor) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a></code></dt><dd><p><code>x lxor y</code> is the bitwise logical exclusive or of <code>x</code> and <code>y</code>.</p></dd></dl><dl><dt class="spec value" id="val-(lnot)"><a href="#val-(lnot)" class="anchor"></a><code><span class="keyword">val</span> (lnot) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a></code></dt><dd><p><code>lnot x</code> is the bitwise logical negation of <code>x</code> (the bits of <code>x</code> are inverted).</p></dd></dl><dl><dt class="spec value" id="val-(lsl)"><a href="#val-(lsl)" class="anchor"></a><code><span class="keyword">val</span> (lsl) : <a href="../index.html#type-t">t</a> <span>-></span> int <span>-></span> <a href="../index.html#type-t">t</a></code></dt><dd><p><code> x lsl y</code> shifts <code>x</code> to the left by <code>y</code> bits. The result is unspecified if <code>y < 0</code> or <code>y >= bitsize</code>, where <code>bitsize</code> is <code>32</code> on a 32-bit platform and <code>64</code> on a 64-bit platform.</p></dd></dl><dl><dt class="spec value" id="val-(lsr)"><a href="#val-(lsr)" class="anchor"></a><code><span class="keyword">val</span> (lsr) : <a href="../index.html#type-t">t</a> <span>-></span> int <span>-></span> <a href="../index.html#type-t">t</a></code></dt><dd><p><code>x lsr y</code> shifts <code>x</code> to the right by <code>y</code> bits. This is a logical shift: zeroes are inserted in the vacated bits regardless of the sign of <code>x</code>. The result is unspecified if <code>y < 0</code> or <code>y >= bitsize</code>.</p></dd></dl><dl><dt class="spec value" id="val-(asr)"><a href="#val-(asr)" class="anchor"></a><code><span class="keyword">val</span> (asr) : <a href="../index.html#type-t">t</a> <span>-></span> int <span>-></span> <a href="../index.html#type-t">t</a></code></dt><dd><p><code>x asr y</code> shifts <code>x</code> to the right by <code>y</code> bits. This is an arithmetic shift: the sign bit of <code>x</code> is replicated and inserted in the vacated bits. The result is unspecified if <code>y < 0</code> or <code>y >= bitsize</code>.</p></dd></dl><dl><dt class="spec value" id="val-(=)"><a href="#val-(=)" class="anchor"></a><code><span class="keyword">val</span> (=) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-(<>)"><a href="#val-(<>)" class="anchor"></a><code><span class="keyword">val</span> (<>) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-(>)"><a href="#val-(>)" class="anchor"></a><code><span class="keyword">val</span> (>) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-(>=)"><a href="#val-(>=)" class="anchor"></a><code><span class="keyword">val</span> (>=) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-(<=)"><a href="#val-(<=)" class="anchor"></a><code><span class="keyword">val</span> (<=) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a> <span>-></span> bool</code></dt><dt class="spec value" id="val-(<)"><a href="#val-(<)" class="anchor"></a><code><span class="keyword">val</span> (<) : <a href="../index.html#type-t">t</a> <span>-></span> <a href="../index.html#type-t">t</a> <span>-></span> bool</code></dt></dl></div></body></html> |