Re: Regarding crypto/md32_common.h

2004-03-19 Thread Andy Polyakov
BTW, _MSC_VER was not defined so I changed it to __NETWARE__ which was defined (to my surprise): Defined or not seems to be irrelevant. Indeed, __rol intrinsic is the one which is implemented and it should have beed engaged as it was (i.e. without check for a Netware specific macro,

Re: Regarding crypto/md32_common.h

2004-03-19 Thread Verdon Walker
I had already made the change you suggest even before reading your email. It works great with the latest Metrowerks compiler. Unfortunately, further testing with older versions of the compiler (the only one available when the code was first ported to NetWare) produced undefined symbols for __rol.

Re: Regarding crypto/md32_common.h

2004-03-16 Thread Verdon Walker
Here's the assembly output for the two funtions. BTW, _MSC_VER was not defined so I changed it to __NETWARE__ which was defined (to my surprise): foo: : 55 push ebp 0001: 89E5 mov ebp,esp 0003: 6A02 push 0x2 0005:

Re: Regarding crypto/md32_common.h

2004-03-15 Thread Verdon Walker
There is a Metrowerks compiler for NetWare. It is actually a cross-compiler that runs on a Win32 platform and then uses a different linker to create the libraries. As near as I know, __NETWARE__ is not defined when compiling. Hence, we use the OPENSSL_SYSNAME_NETWARE that has been set up for use

Re: Regarding crypto/md32_common.h

2004-03-15 Thread Andy Polyakov
There is a Metrowerks compiler for NetWare. It is actually a cross-compiler that runs on a Win32 platform and then uses a different linker to create the libraries. As near as I know, __NETWARE__ is not defined when compiling. But is there __rol intrinsic? Can you generate assembler listing

Regarding crypto/md32_common.h

2004-03-12 Thread Andy Polyakov
crypto/md32_common.h currently reads: # if 0 /* defined(_MSC_VER) */ # define ROTATE(a,n) _lrotl(a,n) # elif defined(__MWERKS__) # if defined(__POWERPC__) # define ROTATE(a,n) __rlwinm(a,n,0,31) # elif defined(OPENSSL_SYSNAME_NETWARE) # define ROTATE(a,n) _lrotl(a,n) ... First #if was