mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
One last 64bit change, skip all this long long malarkey when we're on 64bit procs
This commit is contained in:
parent
d97c072a75
commit
a0f5787e20
@ -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] =
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user