[test-suite] r202702 - If LITTLE_ENDIAN is not defined but __ORDER_LITTLE_ENDIAN__ is, locally define LITTLE_ENDIAN.
Robert Lytton
robert at xmos.com
Mon Mar 3 03:22:56 PST 2014
Author: rlytton
Date: Mon Mar 3 05:22:56 2014
New Revision: 202702
URL: http://llvm.org/viewvc/llvm-project?rev=202702&view=rev
Log:
If LITTLE_ENDIAN is not defined but __ORDER_LITTLE_ENDIAN__ is, locally define LITTLE_ENDIAN.
Modified:
test-suite/trunk/MultiSource/Benchmarks/MiBench/security-sha/sha.c
Modified: test-suite/trunk/MultiSource/Benchmarks/MiBench/security-sha/sha.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/MultiSource/Benchmarks/MiBench/security-sha/sha.c?rev=202702&r1=202701&r2=202702&view=diff
==============================================================================
--- test-suite/trunk/MultiSource/Benchmarks/MiBench/security-sha/sha.c (original)
+++ test-suite/trunk/MultiSource/Benchmarks/MiBench/security-sha/sha.c Mon Mar 3 05:22:56 2014
@@ -11,6 +11,10 @@
#include <string.h>
#include "sha.h"
+#if !defined(LITTLE_ENDIAN) && defined(__ORDER_LITTLE_ENDIAN__)
+#define LITTLE_ENDIAN
+#endif
+
/* SHA f()-functions */
#define f1(x,y,z) ((x & y) | (~x & z))
More information about the llvm-commits
mailing list