arbitrary precision integers
More...
#include <stdint.h>
#include "common.h"
Go to the source code of this file.
|
|
#define | AV_INTEGER_SIZE 8 |
| |
arbitrary precision integers
- Author
- Michael Niedermayer micha.nosp@m.elni.nosp@m.@gmx..nosp@m.at
§ av_i2int()
Convert the given AVInteger to an int64_t.
If the AVInteger is too large to fit into an int64_t, then only the least significant 64 bits will be used.
§ av_log2_i()
Return the rounded-down value of the base 2 logarithm of the given AVInteger.
This is simply the index of the most significant bit which is 1, or 0 if all bits are 0.
§ av_mod_i()
Return a % b.
- Parameters
-
| quot | a/b will be stored here. |
§ av_shr_i()
bitwise shift
- Parameters
-
| s | the number of bits by which the value should be shifted right, may be negative for shifting left |