One last 64bit change, skip all this long long malarkey when we're on 64bit procs

This commit is contained in:
Sara Golemon 2005-11-18 21:37:19 +00:00
parent d97c072a75
commit a0f5787e20
2 changed files with 12 additions and 4 deletions

View File

@ -22,10 +22,14 @@
#include "php_hash.h"
#include "php_hash_sha.h"
#ifdef PHP_WIN32
#define L64(n) (n##i64)
#if defined(SIZEOF_LONG) && SIZEOF_LONG >= 8
#define L64(n) (n)
#else
# ifdef PHP_WIN32
#define L64(n) (n##i64)
# else
#define L64(n) (n##LL)
# endif
#endif
static unsigned char PADDING[128] =

View File

@ -61,10 +61,14 @@ PHP_HASH_API void PHP_SHA256Init(PHP_SHA256_CTX *);
PHP_HASH_API void PHP_SHA256Update(PHP_SHA256_CTX *, const unsigned char *, unsigned int);
PHP_HASH_API void PHP_SHA256Final(unsigned char[32], PHP_SHA256_CTX *);
#ifdef PHP_WIN32
typedef unsigned __int64 php_hash_uint64;
#if defined(SIZEOF_LONG) && SIZEOF_LONG >= 8
typedef unsigned long php_hash_uint64;
#else
# ifdef PHP_WIN32
typedef unsigned __int64 php_hash_uint64;
# else
typedef unsigned long long php_hash_uint64;
# endif
#endif
/* SHA384 context */