OpCodes.Clt 字段

定义

比较两个值。Compares two values. 如果第一个值小于第二个值,则将整数值 1 (int32) 推送到计算堆栈上;反之,将 0 (int32) 推送到计算堆栈上。If the first value is less than the second, the integer value 1 (int32) is pushed onto the evaluation stack; otherwise 0 (int32) is pushed onto the evaluation stack.

public: static initonly System::Reflection::Emit::OpCode Clt;
public static readonly System.Reflection.Emit.OpCode Clt;
 staticval mutable Clt : System.Reflection.Emit.OpCode
Public Shared ReadOnly Clt As OpCode 

字段值

OpCode

注解

下表列出了指令的十六进制和 Microsoft 中间语言 (MSIL) 程序集格式,以及简短的参考摘要:The following table lists the instruction's hexadecimal and Microsoft Intermediate Language (MSIL) assembly format, along with a brief reference summary:

格式Format 程序集格式Assembly Format 说明Description
FE 04FE 04 cltclt 如果 value1 小于,则返回 1 value2 ; 否则推送0。Pushes 1 if value1 is less than value2; else pushes 0.

堆栈转换行为顺序如下:The stack transitional behavior, in sequential order, is:

  1. value1 被推送到堆栈上。value1 is pushed onto the stack.

  2. value2 被推送到堆栈上。value2 is pushed onto the stack.

  3. value2value1 是从堆栈中弹出的; clt 测试是否 value1 小于 value2value2 and value1 are popped from the stack; clt tests if value1 is less than value2.

  4. 如果 value1 小于,则 value2 将1推送到堆栈上; 否则,将0推送到堆栈上。If value1 is less than value2, 1 is pushed onto the stack; otherwise 0 is pushed onto the stack.

clt指令比较 value1value2The clt instruction compares value1 and value2. 如果 value1 严格小于 value2 ,则将 int32 值1推送到堆栈上。If value1 is strictly less than value2, then an int32 value of 1 is pushed on the stack. 否则,将 int32 值0推送到堆栈上。Otherwise, an int32 value of 0 is pushed on the stack.

  • 对于浮点数, clt 如果数字未排序,则返回 0 (也就是说,如果其中一个参数或两个参数均为 NaN) 。For floating-point numbers, clt returns 0 if the numbers are unordered (that is, if one or both of the arguments are NaN).

以下 Emit 方法重载可以使用 clt 操作码:The following Emit method overload can use the clt opcode:

适用于