summaryrefslogtreecommitdiffhomepage
path: root/asm/intel64/bsr.h
diff options
context:
space:
mode:
Diffstat (limited to 'asm/intel64/bsr.h')
-rw-r--r--asm/intel64/bsr.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/asm/intel64/bsr.h b/asm/intel64/bsr.h
new file mode 100644
index 0000000..423a6bf
--- /dev/null
+++ b/asm/intel64/bsr.h
@@ -0,0 +1,31 @@
+// Bit Scan Reverse
+
+#pragma once
+
+#include <asm/assembler.h>
+
+class Op_bsr: public Op
+{
+public:
+ Op_bsr(const Asm::Args& args);
+
+public:
+ std::vector<uint8_t> getCode() override
+ {
+ return machine_code;
+ }
+
+ size_t size() override
+ {
+ return machine_code.size();
+ }
+
+ bool optimize() override ///< returns true if changed
+ {
+ return false;
+ }
+
+protected:
+ std::vector<uint8_t> machine_code;
+};
+