On Sep 7, 2011, at 12:16 AM, Ron Wilson wrote:
> I guess I'm too used to dealing with dumb compilers.
>
> 1. Does it work with the C89 restrictions turned on?
Yes.
>
> 2. Does C89 support inline functions?
No. Plus, modern compilers ignore 'inline' keywords, and decide on their own
inlining where appropriate.
>
> 3. If not, will it handle the folowing correctly?
> #define rotateLeft(x,n) { unsigned int t; t = x >> (SIZEOFINT -
> n); x = (x << n) | t; } /* bitwise rotate x by n bits left */
>
The original sha1.c uses:
#define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))
which is being compiled to roll instructions.
--
Dmitry Chestnykh
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users