标签: c++ visual-c++ assembly
我正在尝试将此内联程序集移植到mcvc:
asm("cmpl %3, %2\n\tcmovg %4, %0\n\tcmovle %5, %1" : "+r" (begin), "+r" (end) : "r" (x), "g" (key), "g" (middle + 1), "g" (middle));
下面的伪代码是否正确实现了上面的汇编?
if key > x: begin = middle + 1 else: end = middle