2019-09-01 17:26:37 +02:00
|
|
|
#ifndef LIBB2_CONFIG_H
|
|
|
|
#define LIBB2_CONFIG_H
|
2018-10-13 20:39:00 +02:00
|
|
|
|
2019-09-01 17:25:58 +02:00
|
|
|
#include "cpu.h"
|
|
|
|
|
2018-10-13 20:39:00 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Add no suffix to the functions */
|
|
|
|
#define SUFFIX
|
|
|
|
|
|
|
|
/* Test for a little-endian machine */
|
|
|
|
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
|
|
|
|
#define NATIVE_LITTLE_ENDIAN
|
|
|
|
#endif
|
|
|
|
|
2019-09-01 17:25:58 +02:00
|
|
|
#ifndef CPU_HAS_UNALIGNED_ACCESS
|
|
|
|
#define HAVE_ALIGNED_ACCESS_REQUIRED
|
|
|
|
#endif
|
|
|
|
|
2018-10-13 20:39:00 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2019-09-01 17:26:37 +02:00
|
|
|
#endif /* LIBB2_CONFIG_H */
|