This source file includes following definitions.
- SHMEM_GENERATE_WEAK_BINDINGS
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 #include "oshmem_config.h"
  15 #include "oshmem/shmem/fortran/bindings.h"
  16 #include "oshmem/include/shmem.h"
  17 #include "oshmem/shmem/shmem_api_logger.h"
  18 #include "oshmem/runtime/runtime.h"
  19 #include "oshmem/mca/atomic/atomic.h"
  20 #include "ompi/datatype/ompi_datatype.h"
  21 #include "stdio.h"
  22 
  23 #if OSHMEM_PROFILING
  24 #include "oshmem/shmem/fortran/profile/pbindings.h"
  25 SHMEM_GENERATE_WEAK_BINDINGS(SHMEM_INT8_CSWAP, shmem_int8_cswap)
  26 #include "oshmem/shmem/fortran/profile/defines.h"
  27 #endif
  28 
  29 SHMEM_GENERATE_FORTRAN_BINDINGS_FUNCTION (ompi_fortran_integer8_t,
  30         SHMEM_INT8_CSWAP,
  31         shmem_int8_cswap_,
  32         shmem_int8_cswap__,
  33         shmem_int8_cswap_f,
  34         (FORTRAN_POINTER_T target, MPI_Fint *cond, FORTRAN_POINTER_T value, MPI_Fint *pe),
  35         (target,cond,value,pe) )
  36 
  37 ompi_fortran_integer8_t shmem_int8_cswap_f(FORTRAN_POINTER_T target, MPI_Fint *cond, FORTRAN_POINTER_T value, MPI_Fint *pe)
  38 {
  39     ompi_fortran_integer8_t out_value = 0;
  40 
  41     MCA_ATOMIC_CALL(cswap(oshmem_ctx_default, FPTR_2_VOID_PTR(target),
  42         (void *)&out_value,
  43         FPTR_2_INT(cond, sizeof(out_value)),
  44         FPTR_2_INT(value, sizeof(out_value)),
  45         sizeof(out_value),
  46         OMPI_FINT_2_INT(*pe)));
  47 
  48     return out_value;
  49 }
  50