注册 | 登录

游侠NETSHOW论坛





查看: 3586|回复: 1
打印 上一主题 下一主题

[原创] AMD 64偷工减料被抓? [复制链接]

帖子
1190
精华
0
积分
595
金钱
1135
荣誉
0
人气
4
评议
0
跳转到指定楼层
楼主
发表于 2010-4-24 19:59:51 |显示全部楼层 |倒序浏览
http://msdn.microsoft.com/en-us/library/bb514094.aspx

This intrinsic generates the cmpxchg16b  instruction (with the lock prefix) to perform a 128-bit locked compare and exchange. Early versions of AMD 64-bit hardware do not support this instruction. To check for hardware support for the cmpxchg16b instruction, call the __cpuid intrinsic with InfoType=0x00000001 (standard function 1). Bit 13 of CPUInfo[2] (ECX) is 1 if the instruction is supported.

使用道具 举报

帖子
1190
精华
0
积分
595
金钱
1135
荣誉
0
人气
4
评议
0
沙发
发表于 2010-4-25 19:03:18 |显示全部楼层
vs2008 x64下没法内嵌汇编,所以只能用intrinsics了

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

手机版|Archiver|游侠NETSHOW论坛 ( 苏ICP备2023007791号 )

GMT+8, 2025-8-23 19:40 , Processed in 0.310624 second(s), 13 queries , Gzip On, Memcache On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

分享到