Performs an atomic swap to a remote short data object.
short shmemx_short_swap(short *target, short value, int pe);
target The remotely accessible short data object to be updated on the
remote PE. When using C/C++, the type of target should match that
implied in the SYNOPSIS section.
value The value to be atomically written to the remote PE. value is of
type short.
pe An integer that indicates the PE number on which target is to be
updated.
shmemx_short_swap performs an atomic swap operation. It writes value into
target on PE and returns the previous contents of target as an atomic
operation.
The content that had been at the target address on the remote PE prior to
the swap is returned.