mirror of
https://github.com/curl/curl.git
synced 2026-04-15 00:01:41 +03:00
Revert "md5/md4: enable unaligned access fast path on powerpc64"
This reverts commit 21fc17b265.
That was not properly thought through. PowerPC can run in either endian
and the preprocessor does not know which.
Ref: #20985
Closes #21058
This commit is contained in:
parent
fcec44df00
commit
e9eddedf38
2 changed files with 2 additions and 4 deletions
|
|
@ -213,8 +213,7 @@ typedef struct md4_ctx MD4_CTX;
|
|||
* The check for little-endian architectures that tolerate unaligned memory
|
||||
* accesses is an optimization. Nothing will break if it does not work.
|
||||
*/
|
||||
#if defined(__i386__) || defined(__x86_64__) || \
|
||||
defined(__vax__) || defined(__powerpc64__)
|
||||
#if defined(__i386__) || defined(__x86_64__) || defined(__vax__)
|
||||
#define MD4_SET(n) (*(const uint32_t *)(const void *)&ptr[(n) * 4])
|
||||
#define MD4_GET(n) MD4_SET(n)
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -294,8 +294,7 @@ typedef struct md5_ctx my_md5_ctx;
|
|||
* The check for little-endian architectures that tolerate unaligned memory
|
||||
* accesses is an optimization. Nothing will break if it does not work.
|
||||
*/
|
||||
#if defined(__i386__) || defined(__x86_64__) || \
|
||||
defined(__vax__) || defined(__powerpc64__)
|
||||
#if defined(__i386__) || defined(__x86_64__) || defined(__vax__)
|
||||
#define MD5_SET(n) (*(const uint32_t *)(const void *)&ptr[(n) * 4])
|
||||
#define MD5_GET(n) MD5_SET(n)
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue