Loading extra/yassl/taocrypt/include/misc.hpp +3 −3 Original line number Diff line number Diff line Loading @@ -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); Loading extra/yassl/taocrypt/src/misc.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -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) Loading @@ -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; Loading @@ -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)); Loading Loading
extra/yassl/taocrypt/include/misc.hpp +3 −3 Original line number Diff line number Diff line Loading @@ -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); Loading
extra/yassl/taocrypt/src/misc.cpp +3 −3 Original line number Diff line number Diff line Loading @@ -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) Loading @@ -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; Loading @@ -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)); Loading