World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
См. документацию.
29 #ifndef AVUTIL_RATIONAL_H
30 #define AVUTIL_RATIONAL_H
92 if(tmp)
return (
int)((tmp ^
a.den ^
b.den)>>63)|1;
93 else if(
b.den &&
a.den)
return 0;
94 else if(
a.num &&
b.num)
return (
a.num>>31) - (
b.num>>31);
105 return a.num / (double)
a.den;
AVRational av_div_q(AVRational b, AVRational c) av_const
AVRational av_sub_q(AVRational b, AVRational c) av_const
GLdouble GLdouble GLdouble GLdouble q
uint32_t av_q2intfloat(AVRational q)
int av_reduce(int *dst_num, int *dst_den, int64_t num, int64_t den, int64_t max)
static double av_q2d(AVRational a)
struct AVRational AVRational
static AVRational av_make_q(int num, int den)
int av_find_nearest_q_idx(AVRational q, const AVRational *q_list)
AVRational av_d2q(double d, int max) av_const
GLboolean GLboolean GLboolean b
static av_always_inline AVRational av_inv_q(AVRational q)
GLdouble GLdouble GLdouble r
static int av_cmp_q(AVRational a, AVRational b)
GLboolean GLboolean GLboolean GLboolean a
AVRational av_mul_q(AVRational b, AVRational c) av_const
int av_nearer_q(AVRational q, AVRational q1, AVRational q2)
AVRational av_add_q(AVRational b, AVRational c) av_const
unsigned __int32 uint32_t