27 lines
498 B
C
27 lines
498 B
C
#ifndef _COMMON_COMM_H_
|
|
#define _COMMON_COMM_H_ 1
|
|
|
|
#include <stdint.h>
|
|
|
|
#define CACHE_LINE_SIZE 128
|
|
#define BUF_SIZE CACHE_LINE_SIZE
|
|
|
|
#define likely(x) __builtin_expect(!!(x), 1)
|
|
#define unlikely(x) __builtin_expect(!!(x), 0)
|
|
|
|
extern volatile int cont;
|
|
|
|
__BEGIN_DECLS
|
|
|
|
void add_sender(void);
|
|
void remove_sender(void);
|
|
volatile int *init_comm(void);
|
|
void reception(void (*)(uintptr_t));
|
|
extern int swap_buffer;
|
|
void wait_initialization(void);
|
|
void discover_new_producers(void);
|
|
|
|
__END_DECLS
|
|
|
|
#endif
|