m2m模型翻译
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
301 B

6 months ago
  1. #include <immintrin.h>
  2. #ifdef _MSC_VER
  3. #include <ammintrin.h>
  4. #else
  5. #include <x86intrin.h>
  6. #endif
  7. int main(int argc, char **argv)
  8. {
  9. __m256 a = _mm256_loadu_ps((const float*)argv[argc-1]);
  10. a = _mm256_macc_ps(a, a, a);
  11. return (int)_mm_cvtss_f32(_mm256_castps256_ps128(a));
  12. }