HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
src
ttauri
rapid
f32x8_x64v25.hpp
1
// Copyright Take Vos 2020-2021.
2
// Distributed under the Boost Software License, Version 1.0.
3
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
4
5
#pragma once
6
7
#include <array>
8
#include <smmintrin.h>
9
#include <xmmintrin.h>
10
#include <pmmintrin.h>
11
#include <immintrin.h>
12
13
namespace
tt {
14
15
//inline float hadd(__m256 x)
16
//{
17
// return _mm256_cvtss_f32(_mm256_hadd_ps(sum_v));
18
//}
19
//
20
//inline float hmax(__m256 x)
21
//{
22
// auto peak_l = _mm256_extractf128_ps(peak_v, 0);
23
// auto peak_r = _mm256_extractf128_ps(peak_v, 1);
24
// peak_l = _mm_max_ps(peak_l, peak_r);
25
// peak_r = _mm_permute_ps(peak_l, 0b00'00'11'10);
26
// peak_l = _mm_max_ps(peak_l, peak_r);
27
// peak_r = _mm_permute_ps(peak_l, 0b00'00'00'01);
28
// peak_l = _mm_max_ps(peak_l, peak_r);
29
// float peak_s = _mm_cvtss_f32(peak_l, 0);
30
//}
31
32
}
Generated on Mon Apr 22 2024 12:53:34 for HikoGUI by
1.10.0