Click here to Skip to main content
15,901,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionx64 intrinsic function equivalent for inline assembly? Pin
Maxwell Chen25-Apr-08 0:41
Maxwell Chen25-Apr-08 0:41 
GeneralRe: x64 intrinsic function equivalent for inline assembly? Pin
Rajkumar R25-Apr-08 0:58
Rajkumar R25-Apr-08 0:58 
GeneralRe: x64 intrinsic function equivalent for inline assembly? Pin
Maxwell Chen25-Apr-08 1:15
Maxwell Chen25-Apr-08 1:15 
GeneralRe: x64 intrinsic function equivalent for inline assembly? Pin
Rajkumar R25-Apr-08 2:48
Rajkumar R25-Apr-08 2:48 
GeneralRe: x64 intrinsic function equivalent for inline assembly? Pin
Maxwell Chen25-Apr-08 5:05
Maxwell Chen25-Apr-08 5:05 
GeneralRe: x64 intrinsic function equivalent for inline assembly? Pin
Mike Dimmick25-Apr-08 3:43
Mike Dimmick25-Apr-08 3:43 
GeneralRe: x64 intrinsic function equivalent for inline assembly? Pin
Maxwell Chen25-Apr-08 5:03
Maxwell Chen25-Apr-08 5:03 
GeneralRe: x64 intrinsic function equivalent for inline assembly? Pin
Ozer Karaagac25-Apr-08 13:38
professionalOzer Karaagac25-Apr-08 13:38 
Mike Dimmick wrote:
__int64 val = __rdmsr(0xe2);
val &= 0xBFF7;
__writemsr(0xe2, val);


I think, a minor adjustment is required for Mike's code in order to protect high order 48 bits.
<br />
__int64 val = __rdmsr(0xe2);<br />
val &= 0xffffffffffffbff7;<br />
__writemsr(0xe2, val);


High order bits should remain unchanged as in the original code below.
__asm {<br />
  MOV ECX, 0E2h<br />
  RDMSR<br />
  AND AX, 0BFF7h<br />
  WRMSR<br />
}

QuestionRe: x64 intrinsic function equivalent for inline assembly? Pin
bob1697225-Apr-08 3:08
bob1697225-Apr-08 3:08 
GeneralRe: x64 intrinsic function equivalent for inline assembly? Pin
Mike Dimmick25-Apr-08 3:44
Mike Dimmick25-Apr-08 3:44 
Questiongdiplus problem Pin
trioum25-Apr-08 0:11
trioum25-Apr-08 0:11 
GeneralRe: gdiplus problem Pin
Rajkumar R25-Apr-08 0:29
Rajkumar R25-Apr-08 0:29 
GeneralRe: gdiplus problem Pin
Prasann Mayekar25-Apr-08 1:36
Prasann Mayekar25-Apr-08 1:36 
GeneralRe: gdiplus problem Pin
Hamid_RT25-Apr-08 3:04
Hamid_RT25-Apr-08 3:04 
Questionconnect dowsnt return error when i execute it with a disabled NIC?(windows sockets) Pin
izrafel24-Apr-08 23:28
izrafel24-Apr-08 23:28 
QuestionQuestion about downcast in c++ Pin
fantasy121524-Apr-08 23:23
fantasy121524-Apr-08 23:23 
GeneralRe: Question about downcast in c++ Pin
BadKarma24-Apr-08 23:57
BadKarma24-Apr-08 23:57 
QuestionRe: Question about downcast in c++ Pin
Rajkumar R25-Apr-08 0:00
Rajkumar R25-Apr-08 0:00 
QuestionWireless network message Pin
Ajay L D24-Apr-08 23:22
Ajay L D24-Apr-08 23:22 
GeneralRe: Wireless network message PinPopular
Rajkumar R25-Apr-08 0:34
Rajkumar R25-Apr-08 0:34 
Questionwhat about WM_CLOSE ,WM_DESTROY and WM_QUIT? Pin
xqhrs23224-Apr-08 23:13
xqhrs23224-Apr-08 23:13 
AnswerRe: what about WM_CLOSE ,WM_DESTROY and WM_QUIT? Pin
Rajkumar R25-Apr-08 0:50
Rajkumar R25-Apr-08 0:50 
AnswerRe: what about WM_CLOSE ,WM_DESTROY and WM_QUIT? Pin
David Crow25-Apr-08 3:08
David Crow25-Apr-08 3:08 
GeneralRe: what about WM_CLOSE ,WM_DESTROY and WM_QUIT? Pin
Michael Schubert25-Apr-08 4:30
Michael Schubert25-Apr-08 4:30 
GeneralRe: what about WM_CLOSE ,WM_DESTROY and WM_QUIT? Pin
David Crow25-Apr-08 4:40
David Crow25-Apr-08 4:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.