mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-12 14:17:59 +00:00
Fix S390 big endian detection
From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@265109 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
167ce3f176
commit
7c5d570ceb
@ -13,13 +13,14 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "llvm/Support/Host.h"
|
||||
#include "llvm/Support/SHA1.h"
|
||||
using namespace llvm;
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __BIG_ENDIAN__
|
||||
#if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && BYTE_ORDER == BIG_ENDIAN
|
||||
#define SHA_BIG_ENDIAN
|
||||
#endif
|
||||
|
||||
@ -113,7 +114,7 @@ void SHA1::update(ArrayRef<uint8_t> Data) {
|
||||
}
|
||||
|
||||
void SHA1::pad() {
|
||||
// Implement SHA-1 padding (fips180-2 §5.1.1)
|
||||
// Implement SHA-1 padding (fips180-2 5.1.1)
|
||||
|
||||
// Pad with 0x80 followed by 0x00 until the end of the block
|
||||
addUncounted(0x80);
|
||||
|
Loading…
Reference in New Issue
Block a user