From ecc64c934da43f881c2821bc9bc52ee42e55af2f Mon Sep 17 00:00:00 2001 From: FICTURE7 Date: Tue, 5 Oct 2021 21:04:55 +0400 Subject: 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` --- ARMeilleure/Common/BitUtils.cs | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'ARMeilleure/Common/BitUtils.cs') 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; -- cgit v1.2.3