2 * Copyright (c) 2012 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
8 * This exists only because Windows 64 doesn't support trivial inline assembly.
9 * Visual Studio 2010 SP1 has an intrinsic _xgetbv() for this.
10 * But earlier versions do not.
13 #include "native_client/src/trusted/service_runtime/nacl_config.h"
17 DEFINE_GLOBAL_HIDDEN_FUNCTION(NaClXGETBV):
18 #if NACL_BUILD_SUBARCH == 32
24 * This is "xgetbv" (no operands). Some assemblers don't know it yet.
26 .byte 0x0f, 0x01, 0xd0
27 #if NACL_BUILD_SUBARCH == 64