os_intrin.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    os_intrin.h
00006  *
00007  *  Intrinsic methods
00008  *
00009  *  $Id: os_intrin.h 80826 2008-03-04 14:51:23Z wotte $
00010  *
00011  *  @author Johnny Willemsen  <jwillemsen@remedy.nl>
00012  */
00013 //=============================================================================
00014 
00015 #ifndef ACE_OS_INCLUDE_OS_INTRIN_H
00016 #define ACE_OS_INCLUDE_OS_INTRIN_H
00017 
00018 #include /**/ "ace/pre.h"
00019 
00020 #include /**/ "ace/config-all.h"
00021 
00022 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00023 # pragma once
00024 #endif /* ACE_LACKS_PRAGMA_ONCE */
00025 
00026 #if defined (ACE_HAS_INTRIN_H)
00027 # include /**/ <intrin.h>
00028 #endif /* !ACE_HAS_INTRIN_H */
00029 
00030 #if defined (ACE_HAS_IA64INTRIN_H)
00031 # include /**/ <ia64intrin.h>
00032 #endif /* !ACE_HAS_IA64INTRIN_H */
00033 
00034 #if defined (ACE_HAS_IA32INTRIN_H)
00035 # include /**/ <ia32intrin.h>
00036 #endif /* !ACE_HAS_IA32INTRIN_H */
00037 
00038 // Place all additions (especially function declarations) within extern "C" {}
00039 #ifdef __cplusplus
00040 extern "C"
00041 {
00042 #endif /* __cplusplus */
00043 
00044 #if defined (_MSC_VER) && (_MSC_VER < 1400) && !(defined (__INTEL_COMPILER) && (__INTEL_COMPILER == 900))
00045 // See http://msdn2.microsoft.com/en-us/library/f24ya7ct(VS.71).aspx
00046 LONG __cdecl _InterlockedIncrement (LONG volatile *Addend);
00047 LONG __cdecl _InterlockedDecrement (LONG volatile *Addend);
00048 LONG __cdecl _InterlockedExchange (LONG volatile *Target, LONG Value);
00049 LONG __cdecl _InterlockedExchangeAdd (LONG volatile *Addend, LONG Value);
00050 #endif //_MSC_VER
00051 
00052 #ifdef __cplusplus
00053 }
00054 #endif /* __cplusplus */
00055 
00056 #include /**/ "ace/post.h"
00057 #endif /* ACE_OS_INCLUDE_OS_INTRIN_H */

Generated on Tue Feb 2 17:18:41 2010 for ACE by  doxygen 1.4.7