1 ;//==========================================================================
3 ;// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
4 ;// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
5 ;// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
8 ;// Copyright (c) 1999 - 2001 On2 Technologies Inc. All Rights Reserved.
10 ;//--------------------------------------------------------------------------
18 ; This function is meant to be run on a Windows NT system to
19 ; try and determine if the OS supports the XMM registers or
22 ; This function is number 3 in a set of three. The other
29 ; Assumes that InitXMMReg was called to initilize the XMM registers.
30 ; Assumes that TrashXMMReg was called from a different thread to clear
31 ; the values in the XMM registers.
37 ; Return 1 (True) if the XMM registers are at the correct values.
38 ; (os supports XMM registers)
40 ; Return 0 (False) if the XMM registers are not at the correct values.
41 ; (os does not support the XMM registers)
45 .MODEL flat
, SYSCALL
, os_dos
48 TORQ_CX_DATA
SEGMENT PAGE PUBLIC USE32
'DATA'
66 ; int VerifyXMMReg( void )
76 mov eax,0 ; assume will fail
78 comiss xmm0
,XMM0Init
; check XMM0
87 mov eax,1 ; OS supports XMM registers
98 ;************************************************