<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.gideros.rocks/index.php?action=history&amp;feed=atom&amp;title=Bit32</id>
	<title>Bit32 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gideros.rocks/index.php?action=history&amp;feed=atom&amp;title=Bit32"/>
	<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=Bit32&amp;action=history"/>
	<updated>2026-11-17T16:04:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.gideros.rocks/index.php?title=Bit32&amp;diff=18968&amp;oldid=prev</id>
		<title>MoKaLux: /* Methods */</title>
		<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=Bit32&amp;diff=18968&amp;oldid=prev"/>
		<updated>2023-01-22T18:46:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Methods&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:46, 22 January 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[bit32.countrz]] &amp;#039;&amp;#039;returns the number of consecutive zero bits in the 32-bit representation of the provided number starting from the right-most (least significant) bit&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.countrz(n: number): number, returns the number of consecutive zero bits in the 32-bit representation of the provided number starting from the right-most (least significant) bit--&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[bit32.countrz]] &amp;#039;&amp;#039;returns the number of consecutive zero bits in the 32-bit representation of the provided number starting from the right-most (least significant) bit&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.countrz(n: number): number, returns the number of consecutive zero bits in the 32-bit representation of the provided number starting from the right-most (least significant) bit--&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[bit32.extract]] &amp;#039;&amp;#039;extracts a range of bits from a number and return them as an unsigned number&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.extract(n: number, field: number, width: number): number, extracts a range of bits from a number and return them as an unsigned number--&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[bit32.extract]] &amp;#039;&amp;#039;extracts a range of bits from a number and return them as an unsigned number&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.extract(n: number, field: number, width: number): number, extracts a range of bits from a number and return them as an unsigned number--&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[bit32.replace]] &#039;&#039;returns a copy of a number with a range of bits replaced by a given value&#039;&#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.replace(n: number, v: number, field: number, width: number): number, returns a copy of a number with a range of bits replaced by a given value--&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[bit32.lrotate]] &amp;#039;&amp;#039;returns a number after its bits have been rotated to the left by a given number of times&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.lrotate(x: number, disp: number): number, returns a number after its bits have been rotated to the left by a given number of times--&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[bit32.lrotate]] &amp;#039;&amp;#039;returns a number after its bits have been rotated to the left by a given number of times&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.lrotate(x: number, disp: number): number, returns a number after its bits have been rotated to the left by a given number of times--&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[bit32.lshift]] &amp;#039;&amp;#039;returns a number whose bits have been logically shifted to the left by a given displacement&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.lshift(x: number, disp: number): number, returns a number whose bits have been logically shifted to the left by a given displacement--&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[bit32.lshift]] &amp;#039;&amp;#039;returns a number whose bits have been logically shifted to the left by a given displacement&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.lshift(x: number, disp: number): number, returns a number whose bits have been logically shifted to the left by a given displacement--&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[bit32.replace]] &#039;&#039;returns a copy of a number with a range of bits replaced by a given value&#039;&#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.replace(n: number, v: number, field: number, width: number): number, returns a copy of a number with a range of bits replaced by a given value--&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[bit32.rrotate]] &amp;#039;&amp;#039;returns a number after its bits have been rotated to the right by a given number of times&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.rrotate(x: number, disp: number): number, returns a number after its bits have been rotated to the right by a given number of times--&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[bit32.rrotate]] &amp;#039;&amp;#039;returns a number after its bits have been rotated to the right by a given number of times&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.rrotate(x: number, disp: number): number, returns a number after its bits have been rotated to the right by a given number of times--&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[bit32.rshift]] &amp;#039;&amp;#039;returns a number whose bits have been logically shifted to the right by a given displacement&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.rshift(x: number, disp: number): number, returns a number whose bits have been logically shifted to the right by a given displacement--&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[bit32.rshift]] &amp;#039;&amp;#039;returns a number whose bits have been logically shifted to the right by a given displacement&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.rshift(x: number, disp: number): number, returns a number whose bits have been logically shifted to the right by a given displacement--&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| style=&amp;quot;width: 50%; vertical-align:top;&amp;quot;|&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| style=&amp;quot;width: 50%; vertical-align:top;&amp;quot;|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Events ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Events ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Constants ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Constants ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>MoKaLux</name></author>
	</entry>
	<entry>
		<id>https://wiki.gideros.rocks/index.php?title=Bit32&amp;diff=18950&amp;oldid=prev</id>
		<title>MoKaLux at 17:21, 22 January 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=Bit32&amp;diff=18950&amp;oldid=prev"/>
		<updated>2023-01-22T17:21:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:21, 22 January 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot;&gt;Line 15:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[bit32.bor]] &amp;#039;&amp;#039;returns the bitwise or of its operands&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.bor(numbers: Tuple): number, returns the bitwise &amp;#039;or&amp;#039; of its operands--&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[bit32.bor]] &amp;#039;&amp;#039;returns the bitwise or of its operands&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.bor(numbers: Tuple): number, returns the bitwise &amp;#039;or&amp;#039; of its operands--&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[bit32.btest]] &amp;#039;&amp;#039;returns a boolean describing whether the bitwise and of its operands is different from zero&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.btest(numbers: Tuple): boolean, returns a boolean describing whether the bitwise and of its operands is different from zero--&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[bit32.btest]] &amp;#039;&amp;#039;returns a boolean describing whether the bitwise and of its operands is different from zero&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.btest(numbers: Tuple): boolean, returns a boolean describing whether the bitwise and of its operands is different from zero--&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[bit32.bxor]] &#039;&#039;returns the bitwise exclusive or of its operands&#039;&#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.bxor(numbers: Tuple): number, returns the bitwise exclusive or of its operands--&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[bit32.countlz]] &#039;&#039;returns the number of consecutive zero bits in the 32-bit representation of the provided number starting from the left-most (most significant) bit&#039;&#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.countlz(n: number): number, returns the number of consecutive zero bits in the 32-bit representation of the provided number starting from the left-most (most significant) bit--&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[bit32.countrz]] &#039;&#039;returns the number of consecutive zero bits in the 32-bit representation of the provided number starting from the right-most (least significant) bit&#039;&#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.countrz(n: number): number, returns the number of consecutive zero bits in the 32-bit representation of the provided number starting from the right-most (least significant) bit--&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[bit32.extract]] &#039;&#039;extracts a range of bits from a number and return them as an unsigned number&#039;&#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.extract(n: number, field: number, width: number): number, extracts a range of bits from a number and return them as an unsigned number--&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[bit32.replace]] &#039;&#039;returns a copy of a number with a range of bits replaced by a given value&#039;&#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.replace(n: number, v: number, field: number, width: number): number, returns a copy of a number with a range of bits replaced by a given value--&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[bit32.lrotate]] &#039;&#039;returns a number after its bits have been rotated to the left by a given number of times&#039;&#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.lrotate(x: number, disp: number): number, returns a number after its bits have been rotated to the left by a given number of times--&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[bit32.lshift]] &#039;&#039;returns a number whose bits have been logically shifted to the left by a given displacement&#039;&#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.lshift(x: number, disp: number): number, returns a number whose bits have been logically shifted to the left by a given displacement--&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[bit32.rrotate]] &#039;&#039;returns a number after its bits have been rotated to the right by a given number of times&#039;&#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.rrotate(x: number, disp: number): number, returns a number after its bits have been rotated to the right by a given number of times--&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[bit32.rshift]] &#039;&#039;returns a number whose bits have been logically shifted to the right by a given displacement&#039;&#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.rshift(x: number, disp: number): number, returns a number whose bits have been logically shifted to the right by a given displacement--&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| style=&amp;quot;width: 50%; vertical-align:top;&amp;quot;|&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| style=&amp;quot;width: 50%; vertical-align:top;&amp;quot;|&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>MoKaLux</name></author>
	</entry>
	<entry>
		<id>https://wiki.gideros.rocks/index.php?title=Bit32&amp;diff=18949&amp;oldid=prev</id>
		<title>MoKaLux: Created page with &quot;__NOTOC__ &lt;!-- GIDEROSOBJ:bit32 --&gt; &#039;&#039;&#039;Supported platforms:&#039;&#039;&#039; File:Platform android.pngFile:Platform ios.pngFile:Platform mac.pngFile:Platform pc.pngFile:Pl...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=Bit32&amp;diff=18949&amp;oldid=prev"/>
		<updated>2023-01-22T16:32:01Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ &amp;lt;!-- GIDEROSOBJ:bit32 --&amp;gt; &amp;#039;&amp;#039;&amp;#039;Supported platforms:&amp;#039;&amp;#039;&amp;#039; &lt;a href=&quot;/index.php/File:Platform_android.png&quot; title=&quot;File:Platform android.png&quot;&gt;File:Platform android.png&lt;/a&gt;&lt;a href=&quot;/index.php/File:Platform_ios.png&quot; title=&quot;File:Platform ios.png&quot;&gt;File:Platform ios.png&lt;/a&gt;&lt;a href=&quot;/index.php/File:Platform_mac.png&quot; title=&quot;File:Platform mac.png&quot;&gt;File:Platform mac.png&lt;/a&gt;&lt;a href=&quot;/index.php/File:Platform_pc.png&quot; title=&quot;File:Platform pc.png&quot;&gt;File:Platform pc.png&lt;/a&gt;File:Pl...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
&amp;lt;!-- GIDEROSOBJ:bit32 --&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Supported platforms:&amp;#039;&amp;#039;&amp;#039; [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]][[File:Platform html5.png]][[File:Platform winrt.png]][[File:Platform win32.png]]&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Available since:&amp;#039;&amp;#039;&amp;#039; Gideros 2022.3&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
This library is a back-ported feature from Lua 5.2 that provides functions to perform bitwise operations.&lt;br /&gt;
&lt;br /&gt;
{|-&lt;br /&gt;
| style=&amp;quot;width: 50%; vertical-align:top;&amp;quot;|&lt;br /&gt;
=== Methods ===&lt;br /&gt;
[[bit32.arshift]] &amp;#039;&amp;#039;returns a number after its bits have been arithmetically shifted to the right by a given displacement&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.arshift(x: number, disp: number): number, returns a number after its bits have been arithmetically shifted to the right by a given displacement--&amp;gt;&lt;br /&gt;
[[bit32.band]] &amp;#039;&amp;#039;returns the bitwise and of its operands&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.band(numbers: Tuple): number, returns the bitwise &amp;#039;and&amp;#039; of its operands--&amp;gt;&lt;br /&gt;
[[bit32.bnot]] &amp;#039;&amp;#039;returns the bitwise negation of a given number&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.bnot(x: number): number, returns the bitwise &amp;#039;negation&amp;#039; of a given number--&amp;gt;&lt;br /&gt;
[[bit32.bor]] &amp;#039;&amp;#039;returns the bitwise or of its operands&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.bor(numbers: Tuple): number, returns the bitwise &amp;#039;or&amp;#039; of its operands--&amp;gt;&lt;br /&gt;
[[bit32.btest]] &amp;#039;&amp;#039;returns a boolean describing whether the bitwise and of its operands is different from zero&amp;#039;&amp;#039;&amp;lt;br/&amp;gt;&amp;lt;!--GIDEROSMTD:bit32.btest(numbers: Tuple): boolean, returns a boolean describing whether the bitwise and of its operands is different from zero--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;width: 50%; vertical-align:top;&amp;quot;|&lt;br /&gt;
=== Events ===&lt;br /&gt;
=== Constants ===&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{GIDEROS IMPORTANT LINKS}}&lt;/div&gt;</summary>
		<author><name>MoKaLux</name></author>
	</entry>
</feed>