[FFmpeg-devel] [PATCH] eval: add bitor and bitand functions

Michael Niedermayer michaelni at gmx.at
Wed Mar 13 22:51:02 CET 2013


On Wed, Mar 13, 2013 at 10:36:45PM +0100, Stefano Sabatini wrote:
> TODO: bump micro
> ---
>  doc/eval.texi       |    8 ++++++++
>  libavutil/eval.c    |    9 ++++++++-
>  tests/ref/fate/eval |    9 +++++++++
>  3 files changed, 25 insertions(+), 1 deletion(-)
> 
> diff --git a/doc/eval.texi b/doc/eval.texi
> index 3b7964c..1dca2da 100644
> --- a/doc/eval.texi
> +++ b/doc/eval.texi
> @@ -32,6 +32,14 @@ Compute arcsine of @var{x}.
>  @item atan(x)
>  Compute arctangent of @var{x}.
>  
> + at item bitand(x, y)
> + at item bitor(x, y)
> +Compute bitwise and/or operation on @var{x} and @var{y}.
> +
> + at var{x} and @var{y} are converted to integers before executing the
> +operation. Operation result is undefined if the integer representation
> +of @var{x} or @var{y} takes more than 64 bits.

double precission floats do not have 64 bit mantissas so this will
fail with many 64bit values


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many that live deserve death. And some that die deserve life. Can you give
it to them? Then do not be too eager to deal out death in judgement. For
even the very wise cannot see all ends. -- Gandalf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130313/50694a9a/attachment.asc>


More information about the ffmpeg-devel mailing list