Skip to content

Commit

Permalink
lyra2: vstudio improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Aug 6, 2015
1 parent 17689f8 commit c63508d
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions lyra2/Sponge.h
Expand Up @@ -24,15 +24,6 @@

#include <stdint.h>

#if defined(__GNUC__)
#define ALIGN __attribute__ ((aligned(32)))
#elif defined(_MSC_VER)
#define ALIGN __declspec(align(32))
#else
#define ALIGN
#endif


/* Blake2b IV Array */
static const uint64_t blake2b_IV[8] =
{
Expand All @@ -43,8 +34,12 @@ static const uint64_t blake2b_IV[8] =
};

/* Blake2b's rotation */
static __inline uint64_t rotr64( const uint64_t w, const unsigned c ){
static __inline uint64_t rotr64(const uint64_t w, const unsigned c) {
#ifdef _MSC_VER
return _rotr64(w, c);
#else
return ( w >> c ) | ( w << ( 64 - c ) );
#endif
}

/* Blake2b's G function */
Expand Down

0 comments on commit c63508d

Please sign in to comment.