Thanks to visit codestin.com
Credit goes to github.com

Skip to content

shaovoon/simd_detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

simd_detector

This SIMD class helps developers to detect the types of SIMD instruction available on users' processor. It supports Intel and AMD CPUs. It is written in C++.

Available for use in .Net application through C++/CLI wrapper. Now the library supports querying Intel AVX, AES information.

Note: AMD SSE 4a and SSE 5 detection are not tested! Please kindly help me test if you have the AMD processor with these instructions!

// C++
class SIMD
{
  public:
  // Intel SIMD
      bool HasMMX();
      bool HasSSE();
      bool HasSSE2();
      bool HasSSE3();
      bool HasSSSE3();
      bool HasSSE41();
      bool HasSSE42();
      bool HasAES();
      bool HasAVX();
  // AMD SIMD
      bool HasMMXplus();
      bool Has3Dnow();
      bool Has3DnowExt();
      bool HasSSE4a();
      bool HasSSE5();
};
// C#
public class SIMD_Detector
{
  public:
  // Intel SIMD
      bool MMX { get; }
      bool SSE { get; }
      bool SSE2 { get; }
      bool SSE3 { get; }
      bool SSSE3 { get; }
      bool SSE41 { get; }
      bool SSE42 { get; }
      bool AES { get; }
      bool AVX { get; }
  // AMD SIMD
      bool MMXplus { get; }
      bool ThreeDnow { get; }
      bool ThreeDnowExt { get; }
      bool SSE4a { get; }
      bool SSE5 { get; }
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published