summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-11-28 13:59:43 +0000
committerMatt Caswell <matt@openssl.org>2018-02-20 12:59:30 +0000
commitc4148792cf643677839096742ee090fe6f4ac910 (patch)
tree43a4ab629d6f4dc769794103de287333ecbd8190
parent2799d385406077f6726cd91c9edb18be12d37dc3 (diff)
Remove portable_endian.h
It is no longer used Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/5105)
-rw-r--r--crypto/ec/curve448/portable_endian.h39
-rw-r--r--crypto/ec/curve448/word.h2
2 files changed, 0 insertions, 41 deletions
diff --git a/crypto/ec/curve448/portable_endian.h b/crypto/ec/curve448/portable_endian.h
deleted file mode 100644
index 5cbfca7aac..0000000000
--- a/crypto/ec/curve448/portable_endian.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* Subset of Mathias Panzenböck's portable endian code, public domain */
-
-#ifndef __PORTABLE_ENDIAN_H__
-#define __PORTABLE_ENDIAN_H__
-
-#if defined(__linux__) || defined(__CYGWIN__)
-# include <endian.h>
-#elif defined(__OpenBSD__)
-# include <sys/endian.h>
-#elif defined(__APPLE__)
-# include <libkern/OSByteOrder.h>
-# define htole64(x) OSSwapHostToLittleInt64(x)
-# define le64toh(x) OSSwapLittleToHostInt64(x)
-#elif defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
-# include <sys/endian.h>
-# ifndef le64toh
-# define le64toh(x) letoh64(x)
-# endif
-#elif defined(__sun) && defined(__SVR4)
-# include <sys/byteorder.h>
-# define htole64(x) LE_64(x)
-# define le64toh(x) LE_64(x)
-#elif defined(_WIN16) || defined(_WIN32) || defined(_WIN64) || defined(__WINDOWS__)
-# include <winsock2.h>
-# include <sys/param.h>
-# if BYTE_ORDER == LITTLE_ENDIAN
-# define htole64(x) (x)
-# define le64toh(x) (x)
-# elif BYTE_ORDER == BIG_ENDIAN
-# define htole64(x) __builtin_bswap64(x)
-# define le64toh(x) __builtin_bswap64(x)
-# else
-# error byte order not supported
-# endif
-#else
-# error platform not supported
-#endif
-
-#endif // __PORTABLE_ENDIAN_H__
diff --git a/crypto/ec/curve448/word.h b/crypto/ec/curve448/word.h
index a73e910933..c70d413ffe 100644
--- a/crypto/ec/curve448/word.h
+++ b/crypto/ec/curve448/word.h
@@ -21,8 +21,6 @@
#define _DEFAULT_SOURCE 1
#endif
-#include "portable_endian.h"
-
#include <stdlib.h>
#if defined(__ARM_NEON__)