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.c
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2022年05月19日 10:39:17 +0100
committerpcpa <paulo.cesar.pereira.de.andrade@gmail.com>2022年05月19日 10:04:04 -0300
commitc1513597b627dfac23ff057de52d538df2149eb7 (patch)
treef344653f5506af475e9ae8372f25ff92af07aac9 /lib/jit_mips.c
parent1e448af913f150c784dc724faca32d3c23303147 (diff)
downloadlightning-c1513597b627dfac23ff057de52d538df2149eb7.tar.gz
mips: Optimize jit_gei/jit_gei_u
Expressing (reg >= i0) is the same as !(reg < i0), which can also be written as ((reg < i0) ^ 1). This permits to implement jit_gei/jit_gei_u with only two opcodes when the immediate value fits in a 16-bit signed operand, without requiring any temporary register. Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Diffstat (limited to 'lib/jit_mips.c')
0 files changed, 0 insertions, 0 deletions
generated by cgit v1.2.3 (git 2.25.1) at 2025年09月16日 21:33:36 +0000

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