Merge branch 'jk/pack-bitmap'

* jk/pack-bitmap:
  pack-bitmap: do not use gcc packed attribute
This commit is contained in:
Junio C Hamano
2014-12-12 14:31:41 -08:00
4 changed files with 29 additions and 18 deletions

View File

@@ -39,4 +39,15 @@ extern void sha1flush(struct sha1file *f);
extern void crc32_begin(struct sha1file *);
extern uint32_t crc32_end(struct sha1file *);
static inline void sha1write_u8(struct sha1file *f, uint8_t data)
{
sha1write(f, &data, sizeof(data));
}
static inline void sha1write_be32(struct sha1file *f, uint32_t data)
{
data = htonl(data);
sha1write(f, &data, sizeof(data));
}
#endif