Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::internal::msvc_inline_asm Namespace Reference

Functions

static uintptr_t lg_bsr (uintptr_t i)
 
static void lock_or (volatile void *operand, __int32 addend)
 
static void lock_and (volatile void *operand, __int32 addend)
 

Function Documentation

◆ lg_bsr()

static uintptr_t tbb::internal::msvc_inline_asm::lg_bsr ( uintptr_t  i)
inlinestatic

Definition at line 144 of file msvc_ia32_common.h.

144  {
145  uintptr_t j;
146  __asm
147  {
148  bsr __TBB_r(ax), i
149  mov j, __TBB_r(ax)
150  }
151  return j;
152  }
#define __TBB_r(reg_name)

References __TBB_r.

◆ lock_and()

static void tbb::internal::msvc_inline_asm::lock_and ( volatile void operand,
__int32  addend 
)
inlinestatic

Definition at line 183 of file msvc_ia32_common.h.

183  {
184  __asm
185  {
186  mov eax, addend
187  mov edx, [operand]
188  lock and [edx], eax
189  }
190  }
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void * lock

References lock.

◆ lock_or()

static void tbb::internal::msvc_inline_asm::lock_or ( volatile void operand,
__int32  addend 
)
inlinestatic

Definition at line 175 of file msvc_ia32_common.h.

175  {
176  __asm
177  {
178  mov eax, addend
179  mov edx, [operand]
180  lock or [edx], eax
181  }
182  }
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void * lock

References lock.


Copyright © 2005-2019 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.