• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ IS_ALIGNED_SSE函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中IS_ALIGNED_SSE函数的典型用法代码示例。如果您正苦于以下问题:C++ IS_ALIGNED_SSE函数的具体用法?C++ IS_ALIGNED_SSE怎么用?C++ IS_ALIGNED_SSE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了IS_ALIGNED_SSE函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: jsimd_can_idct_float

jsimd_can_idct_float (void)
{
  init_simd();

  if (DCTSIZE != 8)
    return 0;
  if (sizeof(JCOEF) != 2)
    return 0;
  if (BITS_IN_JSAMPLE != 8)
    return 0;
  if (sizeof(JDIMENSION) != 4)
    return 0;
  if (sizeof(FAST_FLOAT) != 4)
    return 0;
  if (sizeof(FLOAT_MULT_TYPE) != 4)
    return 0;

  if ((simd_support & JSIMD_SSE2) && IS_ALIGNED_SSE(jconst_idct_float_sse2))
    return 1;
  if ((simd_support & JSIMD_SSE) && IS_ALIGNED_SSE(jconst_idct_float_sse))
    return 1;
  if (simd_support & JSIMD_3DNOW)
    return 1;

  return 0;
}
开发者ID:HaxeFoundation,项目名称:hl,代码行数:26,代码来源:jsimd_i386.c


示例2: jsimd_idct_float

jsimd_idct_float (j_decompress_ptr cinfo, jpeg_component_info * compptr,
                JCOEFPTR coef_block, JSAMPARRAY output_buf,
                JDIMENSION output_col)
{
  if ((simd_support & JSIMD_SSE2) && IS_ALIGNED_SSE(jconst_idct_float_sse2))
    jsimd_idct_float_sse2(compptr->dct_table, coef_block,
        output_buf, output_col);
  else if ((simd_support & JSIMD_SSE) && IS_ALIGNED_SSE(jconst_idct_float_sse))
    jsimd_idct_float_sse(compptr->dct_table, coef_block,
        output_buf, output_col);
  else if (simd_support & JSIMD_3DNOW)
    jsimd_idct_float_3dnow(compptr->dct_table, coef_block,
        output_buf, output_col);
}
开发者ID:flyingtime,项目名称:boxee,代码行数:14,代码来源:jsimd_i386.c


示例3: jsimd_fdct_float

jsimd_fdct_float (FAST_FLOAT * data)
{
  if ((simd_support & JSIMD_SSE) && IS_ALIGNED_SSE(jconst_fdct_float_sse))
    jsimd_fdct_float_sse(data);
  else if (simd_support & JSIMD_3DNOW)
    jsimd_fdct_float_3dnow(data);
}
开发者ID:flyingtime,项目名称:boxee,代码行数:7,代码来源:jsimd_i386.c


示例4: jsimd_fdct_ifast

jsimd_fdct_ifast (DCTELEM * data)
{
  if ((simd_support & JSIMD_SSE2) && IS_ALIGNED_SSE(jconst_fdct_islow_sse2))
    jsimd_fdct_ifast_sse2(data);
  else if (simd_support & JSIMD_MMX)
    jsimd_fdct_ifast_mmx(data);
}
开发者ID:flyingtime,项目名称:boxee,代码行数:7,代码来源:jsimd_i386.c


示例5: jsimd_can_idct_ifast

jsimd_can_idct_ifast (void)
{
  init_simd();

  /* The code is optimised for these values only */
  if (DCTSIZE != 8)
    return 0;
  if (sizeof(JCOEF) != 2)
    return 0;
  if (BITS_IN_JSAMPLE != 8)
    return 0;
  if (sizeof(JDIMENSION) != 4)
    return 0;
  if (sizeof(IFAST_MULT_TYPE) != 2)
    return 0;
  if (IFAST_SCALE_BITS != 2)
    return 0;

  if ((simd_support & JSIMD_SSE2) && IS_ALIGNED_SSE(jconst_idct_ifast_sse2))
    return 1;
  if (simd_support & JSIMD_MMX)
    return 1;

  return 0;
}
开发者ID:flyingtime,项目名称:boxee,代码行数:25,代码来源:jsimd_i386.c


示例6: jsimd_idct_4x4

jsimd_idct_4x4 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
                JCOEFPTR coef_block, JSAMPARRAY output_buf,
                JDIMENSION output_col)
{
  if ((simd_support & JSIMD_SSE2) && IS_ALIGNED_SSE(jconst_idct_red_sse2))
    jsimd_idct_4x4_sse2(compptr->dct_table, coef_block, output_buf, output_col);
  else if (simd_support & JSIMD_MMX)
    jsimd_idct_4x4_mmx(compptr->dct_table, coef_block, output_buf, output_col);
}
开发者ID:flyingtime,项目名称:boxee,代码行数:9,代码来源:jsimd_i386.c


示例7: jsimd_fdct_islow

jsimd_fdct_islow (DCTELEM * data)
{
#ifdef WITH_SIMD
  if ((simd_support & JSIMD_SSE2) && IS_ALIGNED_SSE(jconst_fdct_islow_sse2))
    jsimd_fdct_islow_sse2(data);
  else if (simd_support & JSIMD_MMX)
    jsimd_fdct_islow_mmx(data);
#endif
}
开发者ID:eventials,项目名称:tigervnc,代码行数:9,代码来源:jsimd.c


示例8: jsimd_h2v1_merged_upsample

jsimd_h2v1_merged_upsample (j_decompress_ptr cinfo,
                            JSAMPIMAGE input_buf,
                            JDIMENSION in_row_group_ctr,
                            JSAMPARRAY output_buf)
{
  void (*sse2fct)(JDIMENSION, JSAMPIMAGE, JDIMENSION, JSAMPARRAY);
  void (*mmxfct)(JDIMENSION, JSAMPIMAGE, JDIMENSION, JSAMPARRAY);

  switch(cinfo->out_color_space)
  {
    case JCS_EXT_RGB:
      sse2fct=jsimd_h2v1_extrgb_merged_upsample_sse2;
      mmxfct=jsimd_h2v1_extrgb_merged_upsample_mmx;
      break;
    case JCS_EXT_RGBX:
    case JCS_EXT_RGBA:
      sse2fct=jsimd_h2v1_extrgbx_merged_upsample_sse2;
      mmxfct=jsimd_h2v1_extrgbx_merged_upsample_mmx;
      break;
    case JCS_EXT_BGR:
      sse2fct=jsimd_h2v1_extbgr_merged_upsample_sse2;
      mmxfct=jsimd_h2v1_extbgr_merged_upsample_mmx;
      break;
    case JCS_EXT_BGRX:
    case JCS_EXT_BGRA:
      sse2fct=jsimd_h2v1_extbgrx_merged_upsample_sse2;
      mmxfct=jsimd_h2v1_extbgrx_merged_upsample_mmx;
      break;
    case JCS_EXT_XBGR:
    case JCS_EXT_ABGR:
      sse2fct=jsimd_h2v1_extxbgr_merged_upsample_sse2;
      mmxfct=jsimd_h2v1_extxbgr_merged_upsample_mmx;
      break;
    case JCS_EXT_XRGB:
    case JCS_EXT_ARGB:
      sse2fct=jsimd_h2v1_extxrgb_merged_upsample_sse2;
      mmxfct=jsimd_h2v1_extxrgb_merged_upsample_mmx;
      break;
    default:
      sse2fct=jsimd_h2v1_merged_upsample_sse2;
      mmxfct=jsimd_h2v1_merged_upsample_mmx;
      break;
  }

  if ((simd_support & JSIMD_SSE2) &&
      IS_ALIGNED_SSE(jconst_merged_upsample_sse2))
    sse2fct(cinfo->output_width, input_buf,
        in_row_group_ctr, output_buf);
  else if (simd_support & JSIMD_MMX)
    mmxfct(cinfo->output_width, input_buf,
        in_row_group_ctr, output_buf);
}
开发者ID:wongm168,项目名称:PegDF,代码行数:52,代码来源:jsimd_i386.c


示例9: jsimd_can_fdct_float

jsimd_can_fdct_float (void)
{
  /* The code is optimised for these values only */
  if (DCTSIZE != 8)
    return 0;
  if (sizeof(FAST_FLOAT) != 4)
    return 0;

  if (!IS_ALIGNED_SSE(jconst_fdct_float_sse))
    return 0;

  return 1;
}
开发者ID:FrantisekKlika,项目名称:UltraVncAsDll,代码行数:13,代码来源:jsimd_x86_64.c


示例10: jsimd_h2v1_fancy_upsample

jsimd_h2v1_fancy_upsample (j_decompress_ptr cinfo,
                           jpeg_component_info * compptr, 
                           JSAMPARRAY input_data,
                           JSAMPARRAY * output_data_ptr)
{
  if ((simd_support & JSIMD_SSE2) &&
      IS_ALIGNED_SSE(jconst_fancy_upsample_sse2))
    jsimd_h2v1_fancy_upsample_sse2(cinfo->max_v_samp_factor,
        compptr->downsampled_width, input_data, output_data_ptr);
  else if (simd_support & JSIMD_MMX)
    jsimd_h2v1_fancy_upsample_mmx(cinfo->max_v_samp_factor,
        compptr->downsampled_width, input_data, output_data_ptr);
}
开发者ID:flyingtime,项目名称:boxee,代码行数:13,代码来源:jsimd_i386.c


示例11: jsimd_can_fdct_ifast

jsimd_can_fdct_ifast (void)
{
  /* The code is optimised for these values only */
  if (DCTSIZE != 8)
    return 0;
  if (sizeof(DCTELEM) != 2)
    return 0;

  if (!IS_ALIGNED_SSE(jconst_fdct_ifast_sse2))
    return 0;

  return 1;
}
开发者ID:FrantisekKlika,项目名称:UltraVncAsDll,代码行数:13,代码来源:jsimd_x86_64.c


示例12: jsimd_can_h2v1_merged_upsample

jsimd_can_h2v1_merged_upsample (void)
{
  /* The code is optimised for these values only */
  if (BITS_IN_JSAMPLE != 8)
    return 0;
  if (sizeof(JDIMENSION) != 4)
    return 0;

  if (!IS_ALIGNED_SSE(jconst_merged_upsample_sse2))
    return 0;

  return 1;
}
开发者ID:FrantisekKlika,项目名称:UltraVncAsDll,代码行数:13,代码来源:jsimd_x86_64.c


示例13: jsimd_ycc_rgb_convert

jsimd_ycc_rgb_convert (j_decompress_ptr cinfo,
                       JSAMPIMAGE input_buf, JDIMENSION input_row,
                       JSAMPARRAY output_buf, int num_rows)
{
  void (*sse2fct)(JDIMENSION, JSAMPIMAGE, JDIMENSION, JSAMPARRAY, int);
  void (*mmxfct)(JDIMENSION, JSAMPIMAGE, JDIMENSION, JSAMPARRAY, int);

  switch(cinfo->out_color_space)
  {
    case JCS_EXT_RGB:
      sse2fct=jsimd_ycc_extrgb_convert_sse2;
      mmxfct=jsimd_ycc_extrgb_convert_mmx;
      break;
    case JCS_EXT_RGBX:
    case JCS_EXT_RGBA:
      sse2fct=jsimd_ycc_extrgbx_convert_sse2;
      mmxfct=jsimd_ycc_extrgbx_convert_mmx;
      break;
    case JCS_EXT_BGR:
      sse2fct=jsimd_ycc_extbgr_convert_sse2;
      mmxfct=jsimd_ycc_extbgr_convert_mmx;
      break;
    case JCS_EXT_BGRX:
    case JCS_EXT_BGRA:
      sse2fct=jsimd_ycc_extbgrx_convert_sse2;
      mmxfct=jsimd_ycc_extbgrx_convert_mmx;
      break;
    case JCS_EXT_XBGR:
    case JCS_EXT_ABGR:
      sse2fct=jsimd_ycc_extxbgr_convert_sse2;
      mmxfct=jsimd_ycc_extxbgr_convert_mmx;
      break;
    case JCS_EXT_XRGB:
    case JCS_EXT_ARGB:
      sse2fct=jsimd_ycc_extxrgb_convert_sse2;
      mmxfct=jsimd_ycc_extxrgb_convert_mmx;
      break;
    default:
      sse2fct=jsimd_ycc_rgb_convert_sse2;
      mmxfct=jsimd_ycc_rgb_convert_mmx;
      break;
  }

  if ((simd_support & JSIMD_SSE2) &&
      IS_ALIGNED_SSE(jconst_ycc_rgb_convert_sse2))
    sse2fct(cinfo->output_width, input_buf,
        input_row, output_buf, num_rows);
  else if (simd_support & JSIMD_MMX)
    mmxfct(cinfo->output_width, input_buf,
        input_row, output_buf, num_rows);
}
开发者ID:wongm168,项目名称:PegDF,代码行数:51,代码来源:jsimd_i386.c


示例14: jsimd_can_huff_encode_one_block

jsimd_can_huff_encode_one_block (void)
{
  init_simd();

  if (DCTSIZE != 8)
    return 0;
  if (sizeof(JCOEF) != 2)
    return 0;

  if ((simd_support & JSIMD_SSE2) && simd_huffman &&
      IS_ALIGNED_SSE(jconst_huff_encode_one_block))
    return 1;

  return 0;
}
开发者ID:nakdai,项目名称:samples,代码行数:15,代码来源:jsimd_x86_64.c


示例15: jsimd_can_ycc_rgb

jsimd_can_ycc_rgb (void)
{
  /* The code is optimised for these values only */
  if (BITS_IN_JSAMPLE != 8)
    return 0;
  if (sizeof(JDIMENSION) != 4)
    return 0;
  if ((RGB_PIXELSIZE != 3) && (RGB_PIXELSIZE != 4))
    return 0;

  if (!IS_ALIGNED_SSE(jconst_ycc_rgb_convert_sse2))
    return 0;

  return 1;
}
开发者ID:FrantisekKlika,项目名称:UltraVncAsDll,代码行数:15,代码来源:jsimd_x86_64.c


示例16: jsimd_can_fdct_float

jsimd_can_fdct_float (void)
{
  init_simd();

  /* The code is optimised for these values only */
  if (DCTSIZE != 8)
    return 0;
  if (sizeof(FAST_FLOAT) != 4)
    return 0;

  if ((simd_support & JSIMD_SSE) && IS_ALIGNED_SSE(jconst_fdct_float_sse))
    return 1;

  return 0;
}
开发者ID:nakdai,项目名称:samples,代码行数:15,代码来源:jsimd_x86_64.c


示例17: jsimd_can_fdct_ifast

jsimd_can_fdct_ifast (void)
{
  init_simd();

  /* The code is optimised for these values only */
  if (DCTSIZE != 8)
    return 0;
  if (sizeof(DCTELEM) != 2)
    return 0;

  if ((simd_support & JSIMD_SSE2) && IS_ALIGNED_SSE(jconst_fdct_ifast_sse2))
    return 1;

  return 0;
}
开发者ID:nakdai,项目名称:samples,代码行数:15,代码来源:jsimd_x86_64.c


示例18: jsimd_can_h2v1_merged_upsample

jsimd_can_h2v1_merged_upsample (void)
{
  init_simd();

  /* The code is optimised for these values only */
  if (BITS_IN_JSAMPLE != 8)
    return 0;
  if (sizeof(JDIMENSION) != 4)
    return 0;

  if ((simd_support & JSIMD_SSE2) &&
      IS_ALIGNED_SSE(jconst_merged_upsample_sse2))
    return 1;

  return 0;
}
开发者ID:nakdai,项目名称:samples,代码行数:16,代码来源:jsimd_x86_64.c


示例19: jsimd_rgb_ycc_convert

jsimd_rgb_ycc_convert (j_compress_ptr cinfo,
                       JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
                       JDIMENSION output_row, int num_rows)
{
#ifdef WITH_SIMD
  void (*sse2fct)(JDIMENSION, JSAMPARRAY, JSAMPIMAGE, JDIMENSION, int);
  void (*mmxfct)(JDIMENSION, JSAMPARRAY, JSAMPIMAGE, JDIMENSION, int);
  switch(cinfo->in_color_space)
  {
    case JCS_EXT_RGB:
      sse2fct=jsimd_extrgb_ycc_convert_sse2;
      mmxfct=jsimd_extrgb_ycc_convert_mmx;
      break;
    case JCS_EXT_RGBX:
      sse2fct=jsimd_extrgbx_ycc_convert_sse2;
      mmxfct=jsimd_extrgbx_ycc_convert_mmx;
      break;
    case JCS_EXT_BGR:
      sse2fct=jsimd_extbgr_ycc_convert_sse2;
      mmxfct=jsimd_extbgr_ycc_convert_mmx;
      break;
    case JCS_EXT_BGRX:
      sse2fct=jsimd_extbgrx_ycc_convert_sse2;
      mmxfct=jsimd_extbgrx_ycc_convert_mmx;
      break;
    case JCS_EXT_XBGR:
      sse2fct=jsimd_extxbgr_ycc_convert_sse2;
      mmxfct=jsimd_extxbgr_ycc_convert_mmx;
      break;
    case JCS_EXT_XRGB:
      sse2fct=jsimd_extxrgb_ycc_convert_sse2;
      mmxfct=jsimd_extxrgb_ycc_convert_mmx;
      break;
    default:
      sse2fct=jsimd_rgb_ycc_convert_sse2;
      mmxfct=jsimd_rgb_ycc_convert_mmx;
      break;
  }
  if ((simd_support & JSIMD_SSE2) &&
      IS_ALIGNED_SSE(jconst_rgb_ycc_convert_sse2))
    sse2fct(cinfo->image_width, input_buf,
        output_buf, output_row, num_rows);
  else if (simd_support & JSIMD_MMX)
    mmxfct(cinfo->image_width, input_buf,
        output_buf, output_row, num_rows);
#endif
}
开发者ID:eventials,项目名称:tigervnc,代码行数:47,代码来源:jsimd.c


示例20: jsimd_can_rgb_gray

jsimd_can_rgb_gray (void)
{
  init_simd();

  /* The code is optimised for these values only */
  if (BITS_IN_JSAMPLE != 8)
    return 0;
  if (sizeof(JDIMENSION) != 4)
    return 0;
  if ((RGB_PIXELSIZE != 3) && (RGB_PIXELSIZE != 4))
    return 0;

  if ((simd_support & JSIMD_SSE2) &&
      IS_ALIGNED_SSE(jconst_rgb_gray_convert_sse2))
    return 1;

  return 0;
}
开发者ID:nakdai,项目名称:samples,代码行数:18,代码来源:jsimd_x86_64.c



注:本文中的IS_ALIGNED_SSE函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ IS_APPEND函数代码示例发布时间:2022-05-30
下一篇:
C++ IS_AFFECTED函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap