diff options
Diffstat (limited to 'extra/yassl/taocrypt/src/misc.cpp')
-rw-r--r-- | extra/yassl/taocrypt/src/misc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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)); |