projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use the generic exponentiation functions.
[u/mdw/catacomb]
/
hash.h
diff --git
a/hash.h
b/hash.h
index
5b7f0c3
..
1d659d3
100644
(file)
--- a/
hash.h
+++ b/
hash.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: hash.h,v 1.
2 1999/12/10 23:16:40
mdw Exp $
+ * $Id: hash.h,v 1.
3 2000/06/17 11:23:27
mdw Exp $
*
* Generic handling for message digest functions
*
*
* Generic handling for message digest functions
*
@@
-30,6
+30,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: hash.h,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: hash.h,v $
+ * Revision 1.3 2000/06/17 11:23:27 mdw
+ * Portability fix for broken compilers.
+ *
* Revision 1.2 1999/12/10 23:16:40 mdw
* Split mode macros into interface and implementation.
*
* Revision 1.2 1999/12/10 23:16:40 mdw
* Split mode macros into interface and implementation.
*
@@
-80,7
+83,8
@@
*/ \
\
{ \
*/ \
\
{ \
- uint32 _l = U32(_bsz), _h = (_bsz >> 16) >> 16; \
+ uint32 _l = U32(_bsz); \
+ uint32 _h = ((_bsz & ~MASK32) >> 16) >> 16; \
_bctx->nh += _h; \
_bctx->nl += _l; \
if (_bctx->nl < _l || _bctx->nl & ~MASK32) \
_bctx->nh += _h; \
_bctx->nl += _l; \
if (_bctx->nl < _l || _bctx->nl & ~MASK32) \