projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
armv5 archs require write alignment
[ust.git]
/
include
/
ust
/
core.h
diff --git
a/include/ust/core.h
b/include/ust/core.h
index e781a3a6c5542e85f98898ee8beb3314be8869a8..d0e2750f1fab74253c9f2bcd2c843ccf7943241c 100644
(file)
--- a/
include/ust/core.h
+++ b/
include/ust/core.h
@@
-19,11
+19,12
@@
#define UST_CORE_H
#include <sys/types.h>
#define UST_CORE_H
#include <sys/types.h>
+#include <ust/config.h>
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
-#if
defined(CONFIG_LTT) && defined(CONFIG_LTT_ALIGNMENT)
+#if
ndef HAVE_EFFICIENT_UNALIGNED_ACCESS
/*
* Calculate the offset needed to align the type.
/*
* Calculate the offset needed to align the type.
@@
-42,7
+43,7
@@
static inline int ltt_get_alignment(void)
return sizeof(void *);
}
return sizeof(void *);
}
-#else
+#else
/* HAVE_EFFICIENT_UNALIGNED_ACCESS */
static inline unsigned int ltt_align(size_t align_drift,
size_t size_of_type)
static inline unsigned int ltt_align(size_t align_drift,
size_t size_of_type)
@@
-56,7
+57,7
@@
static inline int ltt_get_alignment(void)
{
return 0;
}
{
return 0;
}
-#endif /*
defined(CONFIG_LTT) && defined(CONFIG_LTT_ALIGNMENT)
*/
+#endif /*
HAVE_EFFICIENT_UNALIGNED_ACCESS
*/
/* ARRAYS */
/* ARRAYS */
This page took
0.025202 seconds
and
4
git commands to generate.