Skip to content
Snippets Groups Projects
Commit 30fe4b8d authored by James Almer's avatar James Almer
Browse files

Merge commit 'f79d8474'


* commit 'f79d8474':
  intreadwrite: Use the __unaligned keyword on MSVC for ARM and x86_64

Merged-by: default avatarJames Almer <jamrial@gmail.com>
parents 916dff9c f79d8474
No related branches found
No related tags found
No related merge requests found
......@@ -229,6 +229,11 @@ union unaligned_16 { uint16_t l; } __attribute__((packed)) av_alias;
# define AV_RN(s, p) (*((const __unaligned uint##s##_t*)(p)))
# define AV_WN(s, p, v) (*((__unaligned uint##s##_t*)(p)) = (v))
#elif defined(_MSC_VER) && (defined(_M_ARM) || defined(_M_X64)) && AV_HAVE_FAST_UNALIGNED
# define AV_RN(s, p) (*((const __unaligned uint##s##_t*)(p)))
# define AV_WN(s, p, v) (*((__unaligned uint##s##_t*)(p)) = (v))
#elif AV_HAVE_FAST_UNALIGNED
# define AV_RN(s, p) (((const av_alias##s*)(p))->u##s)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment