📄 iqmathcpp.h
字号:
inline iq26 IQtoIQ26(iq x)
{
iq26 temp;
temp.val = _IQtoIQ26(x.val);
return temp;
}
inline iq25 IQtoIQ25(iq x)
{
iq25 temp;
temp.val = _IQtoIQ25(x.val);
return temp;
}
inline iq24 IQtoIQ24(iq x)
{
iq24 temp;
temp.val = _IQtoIQ24(x.val);
return temp;
}
inline iq23 IQtoIQ23(iq x)
{
iq23 temp;
temp.val = _IQtoIQ23(x.val);
return temp;
}
inline iq22 IQtoIQ22(iq x)
{
iq22 temp;
temp.val = _IQtoIQ22(x.val);
return temp;
}
inline iq21 IQtoIQ21(iq x)
{
iq21 temp;
temp.val = _IQtoIQ21(x.val);
return temp;
}
inline iq20 IQtoIQ20(iq x)
{
iq20 temp;
temp.val = _IQtoIQ20(x.val);
return temp;
}
inline iq19 IQtoIQ19(iq x)
{
iq19 temp;
temp.val = _IQtoIQ19(x.val);
return temp;
}
inline iq18 IQtoIQ18(iq x)
{
iq18 temp;
temp.val = _IQtoIQ18(x.val);
return temp;
}
inline iq17 IQtoIQ17(iq x)
{
iq17 temp;
temp.val = _IQtoIQ17(x.val);
return temp;
}
inline iq16 IQtoIQ16(iq x)
{
iq16 temp;
temp.val = _IQtoIQ16(x.val);
return temp;
}
inline iq15 IQtoIQ15(iq x)
{
iq15 temp;
temp.val = _IQtoIQ15(x.val);
return temp;
}
//---------------------------------------------------------------------------
// Functions: IQNtoIQ(A)
//---------------------------------------------------------------------------
inline iq IQ30toIQ(iq30 x)
{
iq temp;
temp.val = _IQ30toIQ(x.val);
return temp;
}
inline iq IQ29toIQ(iq29 x)
{
iq temp;
temp.val = _IQ29toIQ(x.val);
return temp;
}
inline iq IQ28toIQ(iq28 x)
{
iq temp;
temp.val = _IQ28toIQ(x.val);
return temp;
}
inline iq IQ27toIQ(iq27 x)
{
iq temp;
temp.val = _IQ27toIQ(x.val);
return temp;
}
inline iq IQ26toIQ(iq26 x)
{
iq temp;
temp.val = _IQ26toIQ(x.val);
return temp;
}
inline iq IQ25toIQ(iq25 x)
{
iq temp;
temp.val = _IQ25toIQ(x.val);
return temp;
}
inline iq IQ24toIQ(iq24 x)
{
iq temp;
temp.val = _IQ24toIQ(x.val);
return temp;
}
inline iq IQ23toIQ(iq23 x)
{
iq temp;
temp.val = _IQ23toIQ(x.val);
return temp;
}
inline iq IQ22toIQ(iq22 x)
{
iq temp;
temp.val = _IQ22toIQ(x.val);
return temp;
}
inline iq IQ21toIQ(iq21 x)
{
iq temp;
temp.val = _IQ21toIQ(x.val);
return temp;
}
inline iq IQ20toIQ(iq20 x)
{
iq temp;
temp.val = _IQ20toIQ(x.val);
return temp;
}
inline iq IQ19toIQ(iq19 x)
{
iq temp;
temp.val = _IQ19toIQ(x.val);
return temp;
}
inline iq IQ18toIQ(iq18 x)
{
iq temp;
temp.val = _IQ18toIQ(x.val);
return temp;
}
inline iq IQ17toIQ(iq17 x)
{
iq temp;
temp.val = _IQ17toIQ(x.val);
return temp;
}
inline iq IQ16toIQ(iq16 x)
{
iq temp;
temp.val = _IQ16toIQ(x.val);
return temp;
}
inline iq IQ15toIQ(iq15 x)
{
iq temp;
temp.val = _IQ15toIQ(x.val);
return temp;
}
//---------------------------------------------------------------------------
// Functions: IQtoQN(A)
//---------------------------------------------------------------------------
inline long IQtoQ15(iq x) { return _IQtoQ15(x.val); }
inline long IQtoQ14(iq x) { return _IQtoQ14(x.val); }
inline long IQtoQ13(iq x) { return _IQtoQ13(x.val); }
inline long IQtoQ12(iq x) { return _IQtoQ12(x.val); }
inline long IQtoQ11(iq x) { return _IQtoQ11(x.val); }
inline long IQtoQ10(iq x) { return _IQtoQ10(x.val); }
inline long IQtoQ9(iq x) { return _IQtoQ9(x.val); }
inline long IQtoQ8(iq x) { return _IQtoQ8(x.val); }
inline long IQtoQ7(iq x) { return _IQtoQ7(x.val); }
inline long IQtoQ6(iq x) { return _IQtoQ6(x.val); }
inline long IQtoQ5(iq x) { return _IQtoQ5(x.val); }
inline long IQtoQ4(iq x) { return _IQtoQ4(x.val); }
inline long IQtoQ3(iq x) { return _IQtoQ3(x.val); }
inline long IQtoQ2(iq x) { return _IQtoQ2(x.val); }
inline long IQtoQ1(iq x) { return _IQtoQ1(x.val); }
//---------------------------------------------------------------------------
// Functions: QNtoIQ(A)
//---------------------------------------------------------------------------
inline iq Q15toIQ(long x)
{
iq temp;
temp.val = _Q15toIQ(x);
return temp;
}
inline iq Q14toIQ(long x)
{
iq temp;
temp.val = _Q14toIQ(x);
return temp;
}
inline iq Q13toIQ(long x)
{
iq temp;
temp.val = _Q13toIQ(x);
return temp;
}
inline iq Q12toIQ(long x)
{
iq temp;
temp.val = _Q12toIQ(x);
return temp;
}
inline iq Q11toIQ(long x)
{
iq temp;
temp.val = _Q11toIQ(x);
return temp;
}
inline iq Q10toIQ(long x)
{
iq temp;
temp.val = _Q10toIQ(x);
return temp;
}
inline iq Q9toIQ(long x)
{
iq temp;
temp.val = _Q9toIQ(x);
return temp;
}
inline iq Q8toIQ(long x)
{
iq temp;
temp.val = _Q8toIQ(x);
return temp;
}
inline iq Q7toIQ(long x)
{
iq temp;
temp.val = _Q7toIQ(x);
return temp;
}
inline iq Q6toIQ(long x)
{
iq temp;
temp.val = _Q6toIQ(x);
return temp;
}
inline iq Q5toIQ(long x)
{
iq temp;
temp.val = _Q5toIQ(x);
return temp;
}
inline iq Q4toIQ(long x)
{
iq temp;
temp.val = _Q4toIQ(x);
return temp;
}
inline iq Q3toIQ(long x)
{
iq temp;
temp.val = _Q3toIQ(x);
return temp;
}
inline iq Q2toIQ(long x)
{
iq temp;
temp.val = _Q2toIQ(x);
return temp;
}
inline iq Q1toIQ(long x)
{
iq temp;
temp.val = _Q1toIQ(x);
return temp;
}
//---------------------------------------------------------------------------
// Functions: atoIQ(A), atoIQN(A)
//---------------------------------------------------------------------------
inline iq atoIQ(const char *A)
{
iq temp;
temp.val = _atoIQ(A);
return temp;
}
inline iq30 atoIQ30(const char *A)
{
iq30 temp;
temp.val = _atoIQ30(A);
return temp;
}
inline iq29 atoIQ29(const char *A)
{
iq29 temp;
temp.val = _atoIQ29(A);
return temp;
}
inline iq28 atoIQ28(const char *A)
{
iq28 temp;
temp.val = _atoIQ28(A);
return temp;
}
inline iq27 atoIQ27(const char *A)
{
iq27 temp;
temp.val = _atoIQ27(A);
return temp;
}
inline iq26 atoIQ26(const char *A)
{
iq26 temp;
temp.val = _atoIQ26(A);
return temp;
}
inline iq25 atoIQ25(const char *A)
{
iq25 temp;
temp.val = _atoIQ25(A);
return temp;
}
inline iq24 atoIQ24(const char *A)
{
iq24 temp;
temp.val = _atoIQ24(A);
return temp;
}
inline iq23 atoIQ23(const char *A)
{
iq23 temp;
temp.val = _atoIQ23(A);
return temp;
}
inline iq22 atoIQ22(const char *A)
{
iq22 temp;
temp.val = _atoIQ22(A);
return temp;
}
inline iq21 atoIQ21(const char *A)
{
iq21 temp;
temp.val = _atoIQ21(A);
return temp;
}
inline iq20 atoIQ20(const char *A)
{
iq20 temp;
temp.val = _atoIQ20(A);
return temp;
}
inline iq19 atoIQ19(const char *A)
{
iq19 temp;
temp.val = _atoIQ19(A);
return temp;
}
inline iq18 atoIQ18(const char *A)
{
iq18 temp;
temp.val = _atoIQ18(A);
return temp;
}
inline iq17 atoIQ17(const char *A)
{
iq17 temp;
temp.val = _atoIQ17(A);
return temp;
}
inline iq16 atoIQ16(const char *A)
{
iq16 temp;
temp.val = _atoIQ16(A);
return temp;
}
inline iq15 atoIQ15(const char *A)
{
iq15 temp;
temp.val = _atoIQ15(A);
return temp;
}
//---------------------------------------------------------------------------
// Functions: IQint(A), IQNint(A)
//---------------------------------------------------------------------------
inline long IQint(iq x) { return _IQint(x.val); }
inline long IQ30int(iq30 x) { return _IQ30int(x.val); }
inline long IQ29int(iq29 x) { return _IQ29int(x.val); }
inline long IQ28int(iq28 x) { return _IQ28int(x.val); }
inline long IQ27int(iq27 x) { return _IQ27int(x.val); }
inline long IQ26int(iq26 x) { return _IQ26int(x.val); }
inline long IQ25int(iq25 x) { return _IQ25int(x.val); }
inline long IQ24int(iq24 x) { return _IQ24int(x.val); }
inline long IQ23int(iq23 x) { return _IQ23int(x.val); }
inline long IQ22int(iq22 x) { return _IQ22int(x.val); }
inline long IQ21int(iq21 x) { return _IQ21int(x.val); }
inline long IQ20int(iq20 x) { return _IQ20int(x.val); }
inline long IQ19int(iq19 x) { return _IQ19int(x.val); }
inline long IQ18int(iq18 x) { return _IQ18int(x.val); }
inline long IQ17int(iq17 x) { return _IQ17int(x.val); }
inline long IQ16int(iq16 x) { return _IQ16int(x.val); }
inline long IQ15int(iq15 x) { return _IQ15int(x.val); }
//---------------------------------------------------------------------------
// Functions: IQfrac(A), IQNfrac(A)
//---------------------------------------------------------------------------
inline iq IQfrac(iq x)
{
iq temp;
temp.val = _IQfrac(x.val);
return temp;
}
inline iq30 IQ30frac(iq30 x)
{
iq30 temp;
temp.val = _IQ30frac(x.val);
return temp;
}
inline iq29 IQ29frac(iq29 x)
{
iq29 temp;
temp.val = _IQ29frac(x.val);
return temp;
}
inline iq28 IQ28frac(iq28 x)
{
iq28 temp;
temp.val = _IQ28frac(x.val);
return temp;
}
inline iq27 IQ27frac(iq27 x)
{
iq27 temp;
temp.val = _IQ27frac(x.val);
return temp;
}
inline iq26 IQ26frac(iq26 x)
{
iq26 temp;
temp.val = _IQ26frac(x.val);
return temp;
}
inline iq25 IQ25frac(iq25 x)
{
iq25 temp;
temp.val = _IQ25frac(x.val);
return temp;
}
inline iq24 IQ24frac(iq24 x)
{
iq24 temp;
temp.val = _IQ24frac(x.val);
return temp;
}
inline iq23 IQ23frac(iq23 x)
{
iq23 temp;
temp.val = _IQ23frac(x.val);
return temp;
}
inline iq22 IQ22frac(iq22 x)
{
iq22 temp;
temp.val = _IQ22frac(x.val);
return temp;
}
inline iq21 IQ21frac(iq21 x)
{
iq21 temp;
temp.val = _IQ21frac(x.val);
return temp;
}
inline iq20 IQ20frac(iq20 x)
{
iq20 temp;
temp.val = _IQ20frac(x.val);
return temp;
}
inline iq19 IQ19frac(iq19 x)
{
iq19 temp;
temp.val = _IQ19frac(x.val);
return temp;
}
inline iq18 IQ18frac(iq18 x)
{
iq18 temp;
temp.val = _IQ18frac(x.val);
return temp;
}
inline iq17 IQ17frac(iq17 x)
{
iq17 temp;
temp.val = _IQ17frac(x.val);
return temp;
}
inline iq16 IQ16frac(iq16 x)
{
iq16 temp;
temp.val = _IQ16frac(x.val);
return temp;
}
inline iq15 IQ15frac(iq15 x)
{
iq15 temp;
temp.val = _IQ15frac(x.val);
return temp;
}
//---------------------------------------------------------------------------
// Functions: IQrmpy(A,B), IQNrmpy(A,B)
//---------------------------------------------------------------------------
inline iq IQrmpy(iq x, iq y)
{
iq temp;
temp.val = _IQrmpy(x.val, y.val);
return temp;
}
inline iq30 IQ30rmpy(iq30 x, iq30 y)
{
iq30 temp;
temp.val = _IQ30rmpy(x.val, y.val);
return temp;
}
inline iq29 IQ29rmpy(iq29 x, iq29 y)
{
iq29 temp;
temp.val = _IQ29rmpy(x.val, y.val);
return temp;
}
inline iq28 IQ28rmpy(iq28 x, iq28 y)
{
iq28 temp;
temp.val = _IQ28rmpy(x.val, y.val);
return temp;
}
inline iq27 IQ27rmpy(iq27 x, iq27 y)
{
iq27 temp;
temp.val = _IQ27rmpy(x.val, y.val);
return temp;
}
inline iq26 IQ26rmpy(iq26 x, iq26 y)
{
iq26 temp;
temp.val = _IQ26rmpy(x.val, y.val);
return temp;
}
inline iq25 IQ25rmpy(iq25 x, iq25 y)
{
iq25 temp;
temp.val = _IQ25rmpy(x.val, y.val);
return temp;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -