__sync, __builtin_ppc_sync, __iospace_sync, __builtin_ppc_iospace_sync
Purpose
Synchronize
Ensures that all instructions preceding the function the call to __sync
complete
before any instructions following the function call can execute.
Prototype
void __builtin_ppc_sync (void);
void __builtin_ppc_iospace_sync (void);
void __sync (void);
void __iospace_sync (void);
Note:
- The built-in function in the form of
__name
is a synonym of the built-in function in the form of__builtin_ppc_name
. - The built-in function in the form of
__name
is provided for compatibility with IBM® XL C/C++ for AIX® 16.1.0 or earlier releases. This built-in function form might be deprecated in the future.
Note:
This function generates the hardware instruction but does not act as an
instruction movement barrier within the compiler. If that is needed, you must also use the
__fence
function.