Shaka Player Embedded
Namespaces | Macros
base_64.cc File Reference
#include "src/js/base_64.h"
#include "src/js/js_error.h"
#include "src/mapping/register_member.h"

Go to the source code of this file.

Namespaces

 shaka
 
 shaka::js
 

Macros

#define GET_LOW_BITS(in, n)   ((in) & ((1 << (n)) - 1))
 
#define GET_BITS(in, a, b)   GET_LOW_BITS((in) >> (a), (b) - (a))
 
#define CEIL_DIVIDE(a, b)   ((((a)-1) / (b)) + 1)
 

Macro Definition Documentation

§ CEIL_DIVIDE

#define CEIL_DIVIDE (   a,
 
)    ((((a)-1) / (b)) + 1)

Definition at line 33 of file base_64.cc.

§ GET_BITS

#define GET_BITS (   in,
  a,
 
)    GET_LOW_BITS((in) >> (a), (b) - (a))

Definition at line 31 of file base_64.cc.

§ GET_LOW_BITS

#define GET_LOW_BITS (   in,
 
)    ((in) & ((1 << (n)) - 1))

Definition at line 29 of file base_64.cc.