[FFmpeg-cvslog] doc/developer: Add terse documentation of assumed C implementation defined behavior

Michael Niedermayer git at videolan.org
Mon May 1 19:13:31 EEST 2017


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Apr 28 02:50:42 2017 +0200| [b706ddbae3f4a11c58560b914807931556108b55] | committer: Michael Niedermayer

doc/developer: Add terse documentation of assumed C implementation defined behavior

Suggested-by: "Ronald S. Bultje" <rsbultje at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b706ddbae3f4a11c58560b914807931556108b55
---

 doc/developer.texi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/doc/developer.texi b/doc/developer.texi
index dbe1f5421f..98540c8f99 100644
--- a/doc/developer.texi
+++ b/doc/developer.texi
@@ -131,6 +131,11 @@ designated struct initializers (@samp{struct s x = @{ .i = 17 @};});
 
 @item
 compound literals (@samp{x = (struct s) @{ 17, 23 @};}).
+
+ at item
+Implementation defined behavior for signed integers is assumed to match the
+expected behavior for two's complement. Non representable values in integer
+casts are binary truncated. Shift right of signed values uses sign extension.
 @end itemize
 
 These features are supported by all compilers we care about, so we will not



More information about the ffmpeg-cvslog mailing list