Add new Lightning rbitr instruction. - lightning.git - Portable just-in-time compiler library

index : lightning.git
Portable just-in-time compiler library
summary refs log tree commit diff
path: root/lib/jit_names.c
diff options
context:
space:
mode:
authorpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2023年02月28日 17:47:20 -0300
committerpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2023年02月28日 17:47:20 -0300
commitb71ab4f1b8fe533d943de7ea5ce4aa724cf10e7b (patch)
treecb9909113687e780528d8dc7036e66850fe65dd8 /lib/jit_names.c
parent9ddb79b50e5cd401ee35c994a47986148e5dfb15 (diff)
downloadlightning-b71ab4f1b8fe533d943de7ea5ce4aa724cf10e7b.tar.gz
Add new Lightning rbitr instruction.
This instruction reverses the bits of a word. A possible extension could be a instruction that reverses the bits in every byte, and/or if there is valid high usage, have typed versions, like bswapr_T. This instruction is made available as it is used internally in some backends to implement count trailing ones or zeros.
Diffstat (limited to 'lib/jit_names.c')
-rw-r--r--lib/jit_names.c 1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/jit_names.c b/lib/jit_names.c
index e5985a3..29f5906 100644
--- a/lib/jit_names.c
+++ b/lib/jit_names.c
@@ -255,4 +255,5 @@ static char *code_name[] = {
"movr_d_w", "movi_d_w",
"clo", "clz",
"cto", "ctz",
+ "rbit",
};
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月17日 15:27:27 +0000

AltStyle によって変換されたページ (->オリジナル) /