本文整理汇总了C++中set_rounding函数的典型用法代码示例。如果您正苦于以下问题:C++ set_rounding函数的具体用法?C++ set_rounding怎么用?C++ set_rounding使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了set_rounding函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CVT_D_L
void CVT_D_L()
{
if (check_cop1_unusable()) return;
set_rounding();
*reg_cop1_double[cffd] = *((long long*)reg_cop1_double[cffs]);
PC++;
}
示例2: CVT_S_D
void CVT_S_D()
{
if (check_cop1_unusable()) return;
set_rounding();
*reg_cop1_simple[cffd] = *reg_cop1_double[cffs];
PC++;
}
示例3: MOV_D
void MOV_D(void)
{
if (check_cop1_unusable()) return;
set_rounding();
*reg_cop1_double[cffd] = *reg_cop1_double[cffs];
PC++;
}
示例4: ABS_D
void ABS_D()
{
if (check_cop1_unusable()) return;
set_rounding();
*reg_cop1_double[cffd] = fabs(*reg_cop1_double[cffs]);
PC++;
}
示例5: CVT_W_D
void CVT_W_D(void)
{
if (check_cop1_unusable()) return;
set_rounding();
*((int*)reg_cop1_simple[cffd]) = *reg_cop1_double[cffs];
PC++;
}
示例6: CVT_D_W
void CVT_D_W(void)
{
if (check_cop1_unusable()) return;
set_rounding();
*reg_cop1_double[cffd] = *((int*)reg_cop1_simple[cffs]);
PC++;
}
示例7: NEG_D
void NEG_D(void)
{
if (check_cop1_unusable()) return;
set_rounding();
*reg_cop1_double[cffd] = -(*reg_cop1_double[cffs]);
PC++;
}
示例8: CVT_L_S
void CVT_L_S()
{
if (check_cop1_unusable()) return;
set_rounding();
*((long long*)(reg_cop1_double[cffd])) = *reg_cop1_simple[cffs];
PC++;
}
示例9: MOV_S
void MOV_S()
{
if (check_cop1_unusable()) return;
set_rounding();
*reg_cop1_simple[cffd] = *reg_cop1_simple[cffs];
PC++;
}
示例10: SQRT_D
void SQRT_D()
{
if (check_cop1_unusable()) return;
set_rounding();
*reg_cop1_double[cffd] = sqrt(*reg_cop1_double[cffs]);
PC++;
}
示例11: NEG_S
void NEG_S()
{
if (check_cop1_unusable()) return;
set_rounding();
*reg_cop1_simple[cffd] = -(*reg_cop1_simple[cffs]);
PC++;
}
示例12: DIV_D
void DIV_D()
{
if (check_cop1_unusable()) return;
set_rounding();
*reg_cop1_double[cffd] = *reg_cop1_double[cffs] /
*reg_cop1_double[cfft];
PC++;
}
示例13: linear_pcm32_be_1ch
void linear_pcm32_be_1ch(uint8_t *rawdata, samples_t samples, size_t size)
{
samples_t src = samples;
int32_t *dst = (int32_t *)rawdata;
int r = set_rounding();
while (size--)
{
dst[0] = int2be32(s2i(*src[0])); src[0]++;
dst += 1;
}
restore_rounding(r);
}
示例14: linear_pcmdouble_1ch
void linear_pcmdouble_1ch(uint8_t *rawdata, samples_t samples, size_t size)
{
samples_t src = samples;
double *dst = (double *)rawdata;
int r = set_rounding();
while (size--)
{
dst[0] = double(*src[0]); src[0]++;
dst += 1;
}
restore_rounding(r);
}
示例15: linear_pcmfloat_1ch
void linear_pcmfloat_1ch(uint8_t *rawdata, samples_t samples, size_t size)
{
samples_t src = samples;
float *dst = (float *)rawdata;
int r = set_rounding();
while (size--)
{
dst[0] = float(*src[0]); src[0]++;
dst += 1;
}
restore_rounding(r);
}