versions.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. /*
  2. Copyright Charly Chevalier 2015
  3. Copyright Joel Falcou 2015
  4. Distributed under the Boost Software License, Version 1.0.
  5. (See accompanying file LICENSE_1_0.txt or copy at
  6. http://www.boost.org/LICENSE_1_0.txt)
  7. */
  8. #ifndef BOOST_PREDEF_HARDWARE_SIMD_X86_VERSIONS_H
  9. #define BOOST_PREDEF_HARDWARE_SIMD_X86_VERSIONS_H
  10. #include <boost/predef/version_number.h>
  11. /* tag::reference[]
  12. = `BOOST_HW_SIMD_X86_*_VERSION`
  13. Those defines represent x86 SIMD extensions versions.
  14. NOTE: You *MUST* compare them with the predef `BOOST_HW_SIMD_X86`.
  15. */ // end::reference[]
  16. // ---------------------------------
  17. /* tag::reference[]
  18. = `BOOST_HW_SIMD_X86_MMX_VERSION`
  19. The https://en.wikipedia.org/wiki/MMX_(instruction_set)[MMX] x86 extension
  20. version number.
  21. Version number is: *0.99.0*.
  22. */ // end::reference[]
  23. #define BOOST_HW_SIMD_X86_MMX_VERSION BOOST_VERSION_NUMBER(0, 99, 0)
  24. /* tag::reference[]
  25. = `BOOST_HW_SIMD_X86_SSE_VERSION`
  26. The https://en.wikipedia.org/wiki/Streaming_SIMD_Extensions[SSE] x86 extension
  27. version number.
  28. Version number is: *1.0.0*.
  29. */ // end::reference[]
  30. #define BOOST_HW_SIMD_X86_SSE_VERSION BOOST_VERSION_NUMBER(1, 0, 0)
  31. /* tag::reference[]
  32. = `BOOST_HW_SIMD_X86_SSE2_VERSION`
  33. The https://en.wikipedia.org/wiki/SSE2[SSE2] x86 extension version number.
  34. Version number is: *2.0.0*.
  35. */ // end::reference[]
  36. #define BOOST_HW_SIMD_X86_SSE2_VERSION BOOST_VERSION_NUMBER(2, 0, 0)
  37. /* tag::reference[]
  38. = `BOOST_HW_SIMD_X86_SSE3_VERSION`
  39. The https://en.wikipedia.org/wiki/SSE3[SSE3] x86 extension version number.
  40. Version number is: *3.0.0*.
  41. */ // end::reference[]
  42. #define BOOST_HW_SIMD_X86_SSE3_VERSION BOOST_VERSION_NUMBER(3, 0, 0)
  43. /* tag::reference[]
  44. = `BOOST_HW_SIMD_X86_SSSE3_VERSION`
  45. The https://en.wikipedia.org/wiki/SSSE3[SSSE3] x86 extension version number.
  46. Version number is: *3.1.0*.
  47. */ // end::reference[]
  48. #define BOOST_HW_SIMD_X86_SSSE3_VERSION BOOST_VERSION_NUMBER(3, 1, 0)
  49. /* tag::reference[]
  50. = `BOOST_HW_SIMD_X86_SSE4_1_VERSION`
  51. The https://en.wikipedia.org/wiki/SSE4#SSE4.1[SSE4_1] x86 extension version
  52. number.
  53. Version number is: *4.1.0*.
  54. */ // end::reference[]
  55. #define BOOST_HW_SIMD_X86_SSE4_1_VERSION BOOST_VERSION_NUMBER(4, 1, 0)
  56. /* tag::reference[]
  57. = `BOOST_HW_SIMD_X86_SSE4_2_VERSION`
  58. The https://en.wikipedia.org/wiki/SSE4##SSE4.2[SSE4_2] x86 extension version
  59. number.
  60. Version number is: *4.2.0*.
  61. */ // end::reference[]
  62. #define BOOST_HW_SIMD_X86_SSE4_2_VERSION BOOST_VERSION_NUMBER(4, 2, 0)
  63. /* tag::reference[]
  64. = `BOOST_HW_SIMD_X86_AVX_VERSION`
  65. The https://en.wikipedia.org/wiki/Advanced_Vector_Extensions[AVX] x86
  66. extension version number.
  67. Version number is: *5.0.0*.
  68. */ // end::reference[]
  69. #define BOOST_HW_SIMD_X86_AVX_VERSION BOOST_VERSION_NUMBER(5, 0, 0)
  70. /* tag::reference[]
  71. = `BOOST_HW_SIMD_X86_FMA3_VERSION`
  72. The https://en.wikipedia.org/wiki/FMA_instruction_set[FMA3] x86 extension
  73. version number.
  74. Version number is: *5.2.0*.
  75. */ // end::reference[]
  76. #define BOOST_HW_SIMD_X86_FMA3_VERSION BOOST_VERSION_NUMBER(5, 2, 0)
  77. /* tag::reference[]
  78. = `BOOST_HW_SIMD_X86_AVX2_VERSION`
  79. The https://en.wikipedia.org/wiki/Advanced_Vector_Extensions#Advanced_Vector_Extensions_2[AVX2]
  80. x86 extension version number.
  81. Version number is: *5.3.0*.
  82. */ // end::reference[]
  83. #define BOOST_HW_SIMD_X86_AVX2_VERSION BOOST_VERSION_NUMBER(5, 3, 0)
  84. /* tag::reference[]
  85. = `BOOST_HW_SIMD_X86_MIC_VERSION`
  86. The https://en.wikipedia.org/wiki/Xeon_Phi[MIC] (Xeon Phi) x86 extension
  87. version number.
  88. Version number is: *9.0.0*.
  89. */ // end::reference[]
  90. #define BOOST_HW_SIMD_X86_MIC_VERSION BOOST_VERSION_NUMBER(9, 0, 0)
  91. /* tag::reference[]
  92. */ // end::reference[]
  93. #endif