summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorunknown <msvensson@pilot.blaudden>2007-02-27 14:21:40 +0100
committerunknown <msvensson@pilot.blaudden>2007-02-27 14:21:40 +0100
commit5a4c94593f6e8a396992e39231df7409d988ed66 (patch)
tree7a23a6d73fa5239779b36fdabf5d85fa1e05207f /extra
parent14f7a1772090a702f0715b075781ef0acbe1afd7 (diff)
parent36e937bd887477ccb2a941c32d5dd9cbd190762c (diff)
downloadmariadb-git-5a4c94593f6e8a396992e39231df7409d988ed66.tar.gz
Merge pilot.blaudden:/home/msvensson/mysql/bug26678/my50-bug26678
into pilot.blaudden:/home/msvensson/mysql/bug26678/my51-bug26678
Diffstat (limited to 'extra')
-rw-r--r--extra/yassl/taocrypt/include/misc.hpp6
-rw-r--r--extra/yassl/taocrypt/src/misc.cpp6
2 files changed, 6 insertions, 6 deletions
diff --git a/extra/yassl/taocrypt/include/misc.hpp b/extra/yassl/taocrypt/include/misc.hpp
index 392db38410a..224589e0640 100644
--- a/extra/yassl/taocrypt/include/misc.hpp
+++ b/extra/yassl/taocrypt/include/misc.hpp
@@ -858,9 +858,9 @@ inline T1 SaturatingSubtract(T1 a, T2 b)
// declares
-unsigned int BytePrecision(unsigned long value);
-unsigned int BitPrecision(unsigned long);
-unsigned long Crop(unsigned long value, unsigned int size);
+unsigned int BytePrecision(word value);
+unsigned int BitPrecision(word);
+word Crop(word value, unsigned int size);
diff --git a/extra/yassl/taocrypt/src/misc.cpp b/extra/yassl/taocrypt/src/misc.cpp
index 83acc15277d..726d9e630e6 100644
--- a/extra/yassl/taocrypt/src/misc.cpp
+++ b/extra/yassl/taocrypt/src/misc.cpp
@@ -122,7 +122,7 @@ void xorbuf(byte* buf, const byte* mask, unsigned int count)
}
-unsigned int BytePrecision(unsigned long value)
+unsigned int BytePrecision(word value)
{
unsigned int i;
for (i=sizeof(value); i; --i)
@@ -133,7 +133,7 @@ unsigned int BytePrecision(unsigned long value)
}
-unsigned int BitPrecision(unsigned long value)
+unsigned int BitPrecision(word value)
{
if (!value)
return 0;
@@ -154,7 +154,7 @@ unsigned int BitPrecision(unsigned long value)
}
-unsigned long Crop(unsigned long value, unsigned int size)
+word Crop(word value, unsigned int size)
{
if (size < 8*sizeof(value))
return (value & ((1L << size) - 1));