suggested change for cipher/sha1.c's M(i) macro

Juan Carlos Castro y Castro jcastro@appi.com.br
Mon, 18 Sep 2000 13:24:29 -0300


This is a multi-part message in MIME format.
--------------426FB7CF5404FC9AD843228A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Well, I know nearly nothing about autoconf / automake, but isn't it
possible to have such a macro to be defined ONLY if it's not already
given by the environment?

#define rol(x, k) ((x << k) | (x >> (32 - k)))

It's a shame the C language doesn't provide a rotate operand, since
every known (to me at least) microprocessor architecture has
instructions for that.

Juan

Kan Shimizu wrote:

> > Please consider using `rol( tm, 1 )' in place of the functionally
> > equivalent `(tm << 1) | (tm >> 31)'.
>
>  In my environment, 'rol()' does not exist.
> May be, developers need to know on what OS, and with what
> C-compiler, 'rol()' works.
>
> Thanks.
> ----------------------------------------------------------------
>  Kan Shimizu
>  kshimizu@urawa.cabletv.ne.jp
> --

--
"Science is a way of thinking that helps you not to fool yourself."
--Carl Sagan



--------------426FB7CF5404FC9AD843228A
Content-Type: text/x-vcard; charset=us-ascii;
 name="jcastro.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Juan Carlos Castro y Castro
Content-Disposition: attachment;
 filename="jcastro.vcf"

begin:vcard 
n:Castro;Juan
x-mozilla-html:FALSE
org:APPI Informática Ltda.
adr:;;Av. Ataulfo de Paiva, 135/1410 - Leblon;Rio de Janeiro;RJ;22449-900;
version:2.1
email;internet:jcastro@appi.com.br
title:Consultor
note:"Standing up to an evil system is exhilarating." -Richard Stallman
x-mozilla-cpt:;-19392
fn:Juan Carlos Castro y Castro
end:vcard

--------------426FB7CF5404FC9AD843228A--