Skip to content

Commit

Permalink
Remove alignment attributes defined as vectorcall. The compiler inter…
Browse files Browse the repository at this point in the history
…prets this as an alignment requirement on the pointer itself, not what it points to, which is probably not what was intended. (#393)
  • Loading branch information
waywardgeek committed Nov 12, 2022
1 parent 2749577 commit d3a763c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/m3_config_platforms.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ typedef int8_t i8;
# if defined (M3_COMPILER_MSVC)
# define vectorcall // For MSVC, better not to specify any call convention
# elif defined(__x86_64__)
# define vectorcall __attribute__((aligned(32)))
# define vectorcall
//# elif defined(__riscv) && (__riscv_xlen == 64)
//# define vectorcall __attribute__((aligned(16)))
//# define vectorcall
# elif defined(__MINGW32__)
# define vectorcall
# elif defined(WIN32)
Expand Down

0 comments on commit d3a763c

Please sign in to comment.