|
|
|
@ -30,7 +30,6 @@ |
|
|
|
|
|
|
|
|
|
#include "hb.hh" |
|
|
|
|
#include "hb-bit-page.hh" |
|
|
|
|
#include "hb-machinery.hh" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct hb_bit_set_t |
|
|
|
@ -183,6 +182,16 @@ struct hb_bit_set_t |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* Duplicated here from hb-machinery.hh to avoid including it. */ |
|
|
|
|
template<typename Type> |
|
|
|
|
static inline const Type& StructAtOffsetUnaligned(const void *P, unsigned int offset) |
|
|
|
|
{ |
|
|
|
|
#pragma GCC diagnostic push |
|
|
|
|
#pragma GCC diagnostic ignored "-Wcast-align" |
|
|
|
|
return * reinterpret_cast<const Type*> ((const char *) P + offset); |
|
|
|
|
#pragma GCC diagnostic pop |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
template <typename T> |
|
|
|
|
void set_array (bool v, const T *array, unsigned int count, unsigned int stride=sizeof(T)) |
|
|
|
|
{ |
|
|
|
|