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
字段值
注解
下表列出了指令的十六进制和 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:
value1被推送到堆栈上。value1is pushed onto the stack.value2被推送到堆栈上。value2is pushed onto the stack.value2和value1是从堆栈中弹出的;clt测试是否value1小于value2。value2andvalue1are popped from the stack;clttests ifvalue1is less thanvalue2.如果
value1小于,则value2将1推送到堆栈上; 否则,将0推送到堆栈上。Ifvalue1is less thanvalue2, 1 is pushed onto the stack; otherwise 0 is pushed onto the stack.
clt指令比较 value1 和 value2 。The 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,cltreturns 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: