lavu/eval: add bitor and bitand functions

Warning note suggested by Reimar.
This commit is contained in:
Stefano Sabatini
2013-03-13 14:09:10 +01:00
parent d8dccf69ff
commit b2098d2417
4 changed files with 29 additions and 2 deletions

View File

@@ -32,6 +32,17 @@ Compute arcsine of @var{x}.
@item atan(x)
Compute arctangent of @var{x}.
@item bitand(x, y)
@item bitor(x, y)
Compute bitwise and/or operation on @var{x} and @var{y}.
The results of the evaluation of @var{x} and @var{y} are converted to
integers before executing the bitwise operation.
Note that both the conversion to integer and the conversion back to
floating point can lose precision. Beware of unexpected results for
large numbers (usually 2^53 and larger).
@item ceil(expr)
Round the value of expression @var{expr} upwards to the nearest
integer. For example, "ceil(1.5)" is "2.0".