本文整理汇总了C++中set_rounding函数的典型用法代码示例。如果您正苦于以下问题:C++ set_rounding函数的具体用法?C++ set_rounding怎么用?C++ set_rounding使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了set_rounding函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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++;
}
开发者ID:DusterTheThief2,项目名称:mupen64gc,代码行数:7,代码来源:cop1_l.c
示例2: CVT_S_D
void CVT_S_D()
{
if (check_cop1_unusable()) return;
set_rounding();
*reg_cop1_simple[cffd] = *reg_cop1_double[cffs];
PC++;
}
开发者ID:twinaphex,项目名称:mupen64-rr,代码行数:7,代码来源:cop1_d.c
示例3: MOV_D
void MOV_D(void)
{
if (check_cop1_unusable()) return;
set_rounding();
*reg_cop1_double[cffd] = *reg_cop1_double[cffs];
PC++;
}
开发者ID:RDCH106,项目名称:n64oid,代码行数:7,代码来源:cop1_d.c
示例4: ABS_D
void ABS_D()
{
if (check_cop1_unusable()) return;
set_rounding();
*reg_cop1_double[cffd] = fabs(*reg_cop1_double[cffs]);
PC++;
}
开发者ID:twinaphex,项目名称:mupen64-rr,代码行数:7,代码来源:cop1_d.c
示例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++;
}
开发者ID:RDCH106,项目名称:n64oid,代码行数:7,代码来源:cop1_d.c
示例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++;
}
开发者ID:KitoHo,项目名称:N64-Player--Mupen64plus-,代码行数:7,代码来源:cop1_w.c
示例7: NEG_D
void NEG_D(void)
{
if (check_cop1_unusable()) return;
set_rounding();
*reg_cop1_double[cffd] = -(*reg_cop1_double[cffs]);
PC++;
}
开发者ID:RDCH106,项目名称:n64oid,代码行数:7,代码来源:cop1_d.c
示例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++;
}
开发者ID:DusterTheThief2,项目名称:mupen64gc,代码行数:7,代码来源:cop1_s.c
示例9: MOV_S
void MOV_S()
{
if (check_cop1_unusable()) return;
set_rounding();
*reg_cop1_simple[cffd] = *reg_cop1_simple[cffs];
PC++;
}
开发者ID:DusterTheThief2,项目名称:mupen64gc,代码行数:7,代码来源:cop1_s.c
示例10: SQRT_D
void SQRT_D()
{
if (check_cop1_unusable()) return;
set_rounding();
*reg_cop1_double[cffd] = sqrt(*reg_cop1_double[cffs]);
PC++;
}
开发者ID:twinaphex,项目名称:mupen64-rr,代码行数:7,代码来源:cop1_d.c
示例11: NEG_S
void NEG_S()
{
if (check_cop1_unusable()) return;
set_rounding();
*reg_cop1_simple[cffd] = -(*reg_cop1_simple[cffs]);
PC++;
}
开发者ID:DusterTheThief2,项目名称:mupen64gc,代码行数:7,代码来源:cop1_s.c
示例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++;
}
开发者ID:twinaphex,项目名称:mupen64-rr,代码行数:8,代码来源:cop1_d.c
示例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);
}
开发者ID:9060,项目名称:ac3filter.valib,代码行数:13,代码来源:linear2pcm.cpp
示例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);
}
开发者ID:9060,项目名称:ac3filter.valib,代码行数:13,代码来源:linear2pcm.cpp
示例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);
}
开发者ID:9060,项目名称:ac3filter.valib,代码行数:13,代码来源:linear2pcm.cpp
示例16: linear_pcm24_be_2ch
void linear_pcm24_be_2ch(uint8_t *rawdata, samples_t samples, size_t size)
{
samples_t src = samples;
int24_t *dst = (int24_t *)rawdata;
int r = set_rounding();
while (size--)
{
dst[0] = int2be24(s2i(*src[0])); src[0]++;
dst[1] = int2be24(s2i(*src[1])); src[1]++;
dst += 2;
}
restore_rounding(r);
}
开发者ID:9060,项目名称:ac3filter.valib,代码行数:14,代码来源:linear2pcm.cpp
示例17: linear_pcm16_be_3ch
void linear_pcm16_be_3ch(uint8_t *rawdata, samples_t samples, size_t size)
{
samples_t src = samples;
int16_t *dst = (int16_t *)rawdata;
int r = set_rounding();
while (size--)
{
dst[0] = int2be16(s2i(*src[0])); src[0]++;
dst[1] = int2be16(s2i(*src[1])); src[1]++;
dst[2] = int2be16(s2i(*src[2])); src[2]++;
dst += 3;
}
restore_rounding(r);
}
开发者ID:9060,项目名称:ac3filter.valib,代码行数:15,代码来源:linear2pcm.cpp
示例18: linear_pcm32_4ch
void linear_pcm32_4ch(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] = int2le32(s2i(*src[0])); src[0]++;
dst[1] = int2le32(s2i(*src[1])); src[1]++;
dst[2] = int2le32(s2i(*src[2])); src[2]++;
dst[3] = int2le32(s2i(*src[3])); src[3]++;
dst += 4;
}
restore_rounding(r);
}
开发者ID:9060,项目名称:ac3filter.valib,代码行数:16,代码来源:linear2pcm.cpp
示例19: linear_pcm24_6ch
void linear_pcm24_6ch(uint8_t *rawdata, samples_t samples, size_t size)
{
samples_t src = samples;
int24_t *dst = (int24_t *)rawdata;
int r = set_rounding();
while (size--)
{
dst[0] = int2le24(s2i(*src[0])); src[0]++;
dst[1] = int2le24(s2i(*src[1])); src[1]++;
dst[2] = int2le24(s2i(*src[2])); src[2]++;
dst[3] = int2le24(s2i(*src[3])); src[3]++;
dst[4] = int2le24(s2i(*src[4])); src[4]++;
dst[5] = int2le24(s2i(*src[5])); src[5]++;
dst += 6;
}
restore_rounding(r);
}
开发者ID:9060,项目名称:ac3filter.valib,代码行数:18,代码来源:linear2pcm.cpp
示例20: linear_pcmdouble_6ch
void linear_pcmdouble_6ch(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] = double(*src[1]); src[1]++;
dst[2] = double(*src[2]); src[2]++;
dst[3] = double(*src[3]); src[3]++;
dst[4] = double(*src[4]); src[4]++;
dst[5] = double(*src[5]); src[5]++;
dst += 6;
}
restore_rounding(r);
}
开发者ID:9060,项目名称:ac3filter.valib,代码行数:18,代码来源:linear2pcm.cpp
注:本文中的set_rounding函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论