Skip to content

Commit 1232958

Browse files
author
Zoltan Herczeg
committed
Improve the description of sljit_emit_[f]select instructions
1 parent 7779da8 commit 1232958

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

sljit_src/sljitLir.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1917,7 +1917,7 @@ SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_icall(struct sljit_compiler *compi
19171917
/* Perform an operation using the conditional flags as the second argument.
19181918
Type must always be between SLJIT_EQUAL and SLJIT_ORDERED_LESS_EQUAL.
19191919
The value represented by the type is 1, if the condition represented
1920-
by the type is fulfilled, and 0 otherwise.
1920+
by type is fulfilled, and 0 otherwise.
19211921
19221922
When op is SLJIT_MOV or SLJIT_MOV32:
19231923
Set dst to the value represented by the type (0 or 1).
@@ -1931,7 +1931,9 @@ SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_op_flags(struct sljit_compiler *co
19311931
sljit_s32 type);
19321932

19331933
/* Emit a conditional select instruction which moves src1 to dst_reg,
1934-
if the condition is satisfied, or src2_reg to dst_reg otherwise.
1934+
if the conditional flag is set, or src2_reg to dst_reg otherwise.
1935+
The conditional flag should be set before executing the select
1936+
instruction.
19351937
19361938
type must be between SLJIT_EQUAL and SLJIT_ORDERED_LESS_EQUAL
19371939
type can be combined (or'ed) with SLJIT_32 to move 32 bit
@@ -1949,8 +1951,9 @@ SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_select(struct sljit_compiler *comp
19491951
sljit_s32 src2_reg);
19501952

19511953
/* Emit a conditional floating point select instruction which moves
1952-
src1 to dst_reg, if the condition is satisfied, or src2_reg to
1953-
dst_reg otherwise.
1954+
src1 to dst_reg, if the conditional flag is set, or src2_reg to
1955+
dst_reg otherwise. The conditional flag should be set before
1956+
executing the select instruction.
19541957
19551958
type must be between SLJIT_EQUAL and SLJIT_ORDERED_LESS_EQUAL
19561959
type can be combined (or'ed) with SLJIT_32 to move 32 bit

0 commit comments

Comments
 (0)