include/ccKVS/inline_util.h
static inline void swap_ops(struct extended_cache_op** ops, struct extended_cache_op** next_ops, struct extended_cache_op** third_ops,
							struct mica_resp** resp, struct mica_resp** next_resp, struct mica_resp ** third_resp,
							struct key_home** key_homes, struct key_home** next_key_homes, struct key_home** third_key_homes)
{
	if (CLIENT_ENABLE_INLINING == 1) {
		swap_pointers((void**) ops, (void**) next_ops);
		swap_pointers((void**) resp, (void**) next_resp);
		swap_pointers((void**) key_homes, (void**) next_key_homes);
	}
	else {
		circulate_pointers((void**) ops, (void**) next_ops, (void**) third_ops);
		circulate_pointers((void**) resp, (void**) next_resp, (void**) third_resp);
		circulate_pointers((void**) key_homes, (void**) next_key_homes, (void**) third_key_homes);
		// printf("ops %llu, next_ops %llu, third_ops %llu \n", ops, next_ops, third_ops);
	}
}
// Perform the swaping of the pointers to the OPs
Perform the swaping of the pointers to the OPs
Perform the swaping of the pointers to the OPs
static inline void swap_ops(struct extended_cache_op** ops, struct extended_cache_op** next_ops, struct extended_cache_op** third_ops,
							struct mica_resp** resp, struct mica_resp** next_resp, struct mica_resp ** third_resp,
							struct key_home** key_homes, struct key_home** next_key_homes, struct key_home** third_key_homes)
{
	if (CLIENT_ENABLE_INLINING == 1) {
		swap_pointers((void**) ops, (void**) next_ops);
		swap_pointers((void**) resp, (void**) next_resp);
		swap_pointers((void**) key_homes, (void**) next_key_homes);
	}
	else {
		circulate_pointers((void**) ops, (void**) next_ops, (void**) third_ops);
		circulate_pointers((void**) resp, (void**) next_resp, (void**) third_resp);
		circulate_pointers((void**) key_homes, (void**) next_key_homes, (void**) third_key_homes);
	}
}
static inline void swap_ops ( struct extended_cache_op * * ops , struct extended_cache_op * * next_ops , struct extended_cache_op * * third_ops , struct mica_resp * * resp , struct mica_resp * * next_resp , struct mica_resp * * third_resp , struct key_home * * key_homes , struct key_home * * next_key_homes , struct key_home * * third_key_homes ) { if ( CLIENT_ENABLE_INLINING == 1 ) { swap_pointers ( ( void * * ) ops , ( void * * ) next_ops ) ; swap_pointers ( ( void * * ) resp , ( void * * ) next_resp ) ; swap_pointers ( ( void * * ) key_homes , ( void * * ) next_key_homes ) ; } else { circulate_pointers ( ( void * * ) ops , ( void * * ) next_ops , ( void * * ) third_ops ) ; circulate_pointers ( ( void * * ) resp , ( void * * ) next_resp , ( void * * ) third_resp ) ; circulate_pointers ( ( void * * ) key_homes , ( void * * ) next_key_homes , ( void * * ) third_key_homes ) ; } }
Perform the swaping of the pointers to the OPs
Perform the swaping of the pointers to the OPs
// printf("ops %llu, next_ops %llu, third_ops %llu \n", ops, next_ops, third_ops);