Remove ALWAYS_INLINE
Didn't do what I wanted it to anyway.
This commit is contained in:
parent
2be0826959
commit
d26466bf3b
2 changed files with 5 additions and 12 deletions
|
@ -6,22 +6,21 @@
|
|||
#include <sys/socket.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "compiler.h"
|
||||
#include "connection.h"
|
||||
|
||||
ALWAYS_INLINE static uint32_t connection_buffer_mask(const uint32_t idx) {
|
||||
static inline uint32_t connection_buffer_mask(const uint32_t idx) {
|
||||
return idx & (CONNECTION_BUFFER_SIZE - 1);
|
||||
}
|
||||
|
||||
ALWAYS_INLINE static uint32_t connection_buffer_size(const struct connection_buffer *b) {
|
||||
static inline uint32_t connection_buffer_size(const struct connection_buffer *b) {
|
||||
return b->head - b->tail;
|
||||
}
|
||||
|
||||
ALWAYS_INLINE static void connection_buffer_consume(struct connection_buffer *b, const size_t size) {
|
||||
static inline void connection_buffer_consume(struct connection_buffer *b, const size_t size) {
|
||||
b->tail += size;
|
||||
}
|
||||
|
||||
ALWAYS_INLINE static void connection_buffer_restore(struct connection_buffer *b, const size_t size) {
|
||||
static inline void connection_buffer_restore(struct connection_buffer *b, const size_t size) {
|
||||
b->tail -= size;
|
||||
}
|
||||
|
||||
|
|
|
@ -3,16 +3,10 @@
|
|||
|
||||
#ifdef __GNUC__
|
||||
#define ATTRIB_PRINTF(start, end) __attribute__((format(printf, start, end)))
|
||||
#define LIBSEAT_EXPORT __attribute__((visibility("default")))
|
||||
#else
|
||||
#define ATTRIB_PRINTF(start, end)
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define LIBSEAT_EXPORT __attribute__((visibility("default")))
|
||||
#define ALWAYS_INLINE __attribute__((always_inline)) inline
|
||||
#else
|
||||
#define LIBSEAT_EXPORT
|
||||
#define ALWAYS_INLINE inline
|
||||
#endif
|
||||
|
||||
#define STRLEN(s) ((sizeof(s) / sizeof(s[0])) - 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue