aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Common/BitUtils.cs
diff options
context:
space:
mode:
authorFICTURE7 <FICTURE7@gmail.com>2021-10-05 21:04:55 +0400
committerGitHub <noreply@github.com>2021-10-05 14:04:55 -0300
commitecc64c934da43f881c2821bc9bc52ee42e55af2f (patch)
treeeb75ff0b3e0426b59b6d0f8c9bed6078f06ef15e /ARMeilleure/Common/BitUtils.cs
parent11b437eafc59f81e767c6389c16dcbb5c7e82f11 (diff)
Add `Operand.Label` support to `Assembler` (#2680)
* Add `Operand.Label` support to `Assembler` This adds label support to `Assembler` and enables branch tightening when compiling with relocatables. Jump management and patching has been moved to the `Assembler`. * Move instruction table to `Assembler.Table` * Set PTC internal version * Rename `Assembler.Table` to `AssemblerTable`
Diffstat (limited to 'ARMeilleure/Common/BitUtils.cs')
-rw-r--r--ARMeilleure/Common/BitUtils.cs14
1 files changed, 0 insertions, 14 deletions
diff --git a/ARMeilleure/Common/BitUtils.cs b/ARMeilleure/Common/BitUtils.cs
index 00fc6e5b..51160eff 100644
--- a/ARMeilleure/Common/BitUtils.cs
+++ b/ARMeilleure/Common/BitUtils.cs
@@ -11,20 +11,6 @@ namespace ARMeilleure.Common
HbsNibbleLut = new sbyte[] { -1, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3 };
}
- public static int CountBits(int value)
- {
- int count = 0;
-
- while (value != 0)
- {
- value &= ~(value & -value);
-
- count++;
- }
-
- return count;
- }
-
public static long FillWithOnes(int bits)
{
return bits == 64 ? -1L : (1L << bits) - 1;