hash_ppc.h 618 Bytes
Newer Older
1
/*
schu committed
2
 * Copyright (C) 2009-2012 the libgit2 contributors
3
 *
Vicent Marti committed
4 5
 * This file is part of libgit2, distributed under the GNU GPL v2 with
 * a Linking Exception. For full terms see the included COPYING file.
6
 */
7 8 9 10

#ifndef INCLUDE_hash_ppc_h__
#define INCLUDE_hash_ppc_h__

11 12
#include <stdint.h>

13
struct git_hash_ctx {
14 15 16 17 18 19 20
	uint32_t hash[5];
	uint32_t cnt;
	uint64_t len;
	union {
		unsigned char b[64];
		uint64_t l[8];
	} buf;
21
};
22

23
#define git_hash_global_init() 0
24
#define git_hash_global_shutdown() /* noop */
25 26 27
#define git_hash_ctx_init(ctx) git_hash_init(ctx)
#define git_hash_ctx_cleanup(ctx)

28
#endif /* INCLUDE_hash_generic_h__ */