lock cmpxchg指令
来源:互联网 发布:unity 特效贴图优化 编辑:程序博客网 时间:2024/04/30 15:43
CMPXCHG - Compare and Exchange
0F B0/ r CMPXCHG r/m8,r8 Compare AL with r/m8. If equal, ZF is set and r8 is loaded
into r/m8. Else, clear ZF and load r/m8 into AL.
0F B1/ r CMPXCHG r/m16,r16 Compare AX with r/m16. If equal, ZF is set and r16 is
loaded into r/m16. Else, clear ZF and load r/m16 into AL
0F B1/ r CMPXCHG r/m32,r32 Compare EAX with r/m32. If equal, ZF is set and r32 is
loaded into r/m32. Else, clear ZF and load r/m32 into AL
Description
Compares the value in the AL, AX, or EAX register (depending on the size of the operand) with the first operand (destination operand). If the two values are equal, the second operand (source operand) is loaded into the destination operand. Otherwise, the destination operand is loaded into the AL, AX, or EAX register.
This instruction can be used with a LOCK prefix to allow the instruction to be executed atomi-cally. To simplify the interface to the processor’s bus, the destination operand receives a write cycle without regard to the result of the comparison. The destination operand is written back if the comparison fails; otherwise, the source operand is written into the destination. (The processor never produces a locked read without also producing a locked write.)
- lock cmpxchg指令
- lock cmpxchg指令
- cpu cmpxchg 指令理解 (CAS)
- lock指令
- Linux Kernel CMPXCHG函数分析
- Linux内核中的cmpxchg函数
- Linux Kernel CMPXCHG函数分析
- Intel 64汇编指令集中的LOCK指令前缀
- 原子操作与 x86 上的 lock 指令前缀
- Afaria 做Android设备lock时候发给GCM的指令
- LOCK
- LOCK
- lock
- lock
- Lock
- Lock()
- lock
- LOCK
- loadrunner之 学习三:初次尝试用LR测试接口
- 中文编码问题
- JS-requestAnimationFrame
- EasyUI Combobox的联动处理
- Lucene笔记(2)
- lock cmpxchg指令
- Qt 中文乱码问题
- wpf 异步操作
- 网络服务器搭建的那些事(PV QPS Throughput)
- 我自己对英语学习的心得与体会
- loadrunner之 学习四:web_custom_request()函数
- 关于achartengine的使用一些小经验 -
- javascript dom特效滑动门
- loadrunner之 学习五:参数化