15179 libmd: unused function 'ROTATE_LEFT'
Reviewed by: Andy Stormont <andyjstormont@gmail.com>
Reviewed by: Dan McDonald <danmcd@mnx.io>
Approved by: Gordon Ross <gordon.w.ross@gmail.com>
diff --git a/usr/src/common/crypto/sha1/sha1.c b/usr/src/common/crypto/sha1/sha1.c
index 08c7a2f..13a1f05 100644
--- a/usr/src/common/crypto/sha1/sha1.c
+++ b/usr/src/common/crypto/sha1/sha1.c
@@ -110,28 +110,6 @@
 #define	H(b, c, d)	(((b) & (c)) | (((b)|(c)) & (d)))
 
 /*
- * ROTATE_LEFT rotates x left n bits.
- */
-
-#if	defined(__GNUC__) && defined(_LP64)
-static __inline__ uint64_t
-ROTATE_LEFT(uint64_t value, uint32_t n)
-{
-	uint32_t t32;
-
-	t32 = (uint32_t)value;
-	return ((t32 << n) | (t32 >> (32 - n)));
-}
-
-#else
-
-#define	ROTATE_LEFT(x, n)	\
-	(((x) << (n)) | ((x) >> ((sizeof (x) * NBBY)-(n))))
-
-#endif
-
-
-/*
  * SHA1Init()
  *
  * purpose: initializes the sha1 context and begins and sha1 digest operation
@@ -456,6 +434,25 @@
 
 #if !defined(__amd64)
 
+/*
+ * ROTATE_LEFT rotates x left n bits.
+ */
+
+#if	defined(__GNUC__) && defined(_LP64)
+static __inline__ uint64_t
+ROTATE_LEFT(uint64_t value, uint32_t n)
+{
+	uint32_t t32;
+
+	t32 = (uint32_t)value;
+	return ((t32 << n) | (t32 >> (32 - n)));
+}
+
+#else
+#define	ROTATE_LEFT(x, n)	\
+	(((x) << (n)) | ((x) >> ((sizeof (x) * NBBY)-(n))))
+#endif
+
 typedef uint32_t sha1word;
 
 /*