Commit fb497647 authored by fbarchard@google.com's avatar fbarchard@google.com

Use emit for xgetbv in vs2005

BUG=98
TEST=build with vs2005
Review URL: https://webrtc-codereview.appspot.com/845005

git-svn-id: http://libyuv.googlecode.com/svn/trunk@375 16f28f9a-4ce2-e073-06de-1de4eb20be90
parent 4c32b3a0
Name: libyuv
URL: http://code.google.com/p/libyuv/
Version: 374
Version: 375
License: BSD
License File: LICENSE
......
......@@ -11,6 +11,6 @@
#ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT
#define INCLUDE_LIBYUV_VERSION_H_
#define LIBYUV_VERSION 374
#define LIBYUV_VERSION 375
#endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT
......@@ -70,7 +70,7 @@ __declspec(naked) __declspec(align(16))
static uint32 XGetBV(unsigned int xcr) {
__asm {
mov ecx, [esp + 4] // xcr
xgetbv // updates eax and edx. edx unused/
_asm _emit 0x0f _asm _emit 0x01 _asm _emit 0xd0 // xgetbv for vs2005.
ret
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment