Skip to content

Commit 19d19c6

Browse files
committed
__declspec(align(16))
1 parent cec11c6 commit 19d19c6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

jsrc/aes-arm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#define AES_RKSIZE 272
2929

3030
typedef struct {
31-
#ifdef _WIN32
31+
#ifdef MMSC_VER
3232
__declspec(align(16)) uint8_t rk[AES_RKSIZE];
3333
#else
3434
uint8_t __attribute__ ((aligned (16))) rk[AES_RKSIZE];
@@ -240,7 +240,7 @@ static void block_finalize(block_state* self)
240240
int aes_arm(I decrypt,I mode,UC *key,I keyn,UC* ivec,UC* out,I len)
241241
{
242242
block_state self;
243-
#ifdef _WIN32
243+
#ifdef MMSC_VER
244244
__declspec(align(16)) uint8_t rk_tmp[AES_RKSIZE];
245245
#else
246246
uint8_t __attribute__ ((aligned (16))) rk_tmp[AES_RKSIZE];

jsrc/avxintrin-emu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ extern "C" {
168168
* This is an emulation of Intel AVX
169169
*/
170170

171-
#if defined( _MSC_VER ) || defined( __INTEL_COMPILER )
171+
#if defined( MMSC_VER ) || defined( __INTEL_COMPILER )
172172
#define __EMU_M256_ALIGN( a ) __declspec(align(a))
173173
#define __emu_inline __forceinline
174174
#define __emu_int64_t __int64

0 commit comments

Comments
 (0)