aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/intreadwrite.h
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2014-07-10 20:49:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-19 14:55:46 +0200
commit8da1defe6986aab8506203c6e12f44d4df62672e (patch)
tree12185e3edf4f9653313c78c012a6b93027699b43 /libavutil/intreadwrite.h
parent5e55c7e1bcb767e6af17c29f6aaebff4d6fd0703 (diff)
downloadffmpeg-8da1defe6986aab8506203c6e12f44d4df62672e.tar.gz
libavutil: document side effects of macros
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/intreadwrite.h')
-rw-r--r--libavutil/intreadwrite.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/intreadwrite.h b/libavutil/intreadwrite.h
index 7ee6977554..51fbe30a23 100644
--- a/libavutil/intreadwrite.h
+++ b/libavutil/intreadwrite.h
@@ -50,6 +50,14 @@ typedef union {
* AV_[RW][BLN](16|24|32|48|64) and AV_(COPY|SWAP|ZERO)(64|128) macros.
* Preprocessor symbols must be defined, even if these are implemented
* as inline functions.
+ *
+ * R/W means read/write, B/L/N means big/little/native endianness.
+ * The following macros require aligned access, compared to their
+ * unaligned variants: AV_(COPY|SWAP|ZERO)(64|128), AV_[RW]N[8-64]A.
+ * Incorrect usage may range from abysmal performance to crash
+ * depending on the platform.
+ *
+ * The unaligned variants are AV_[RW][BLN][8-64] and AV_COPY*U.
*/
#ifdef HAVE_AV_CONFIG_H