mips: Optimize jit_lei / jit_lei_u - 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_mips-sz.c
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2022年05月19日 10:39:16 +0100
committerpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2022年05月19日 10:04:04 -0300
commit1e448af913f150c784dc724faca32d3c23303147 (patch)
tree6125a032dc3f42097ebcb3d776e0b344556f7192 /lib/jit_mips-sz.c
parentf579802f4f1533cd9b3de77b8b298ed1a109f5cf (diff)
downloadlightning-1e448af913f150c784dc724faca32d3c23303147.tar.gz
mips: Optimize jit_lei / jit_lei_u
When working with integers, expressing (reg <= i0) is equivalent to (reg < i0 + 1). If (i0 + 1) can fit in a 16-bit signed word, it is then possible to implement jit_lei() with just one SLTI opcode and jit_lei_u() with just one SLTIU opcode, respectively. Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Diffstat (limited to 'lib/jit_mips-sz.c')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月25日 21:25:27 +0000

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