FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
SseLanes.h
1// Portable access to the four float lanes of an __m128 (MSVC has the member m128_f32, GCC and Clang do not).
2#pragma once
3
4#include <emmintrin.h>
5
6inline float * SseLanes(__m128 & value)
7{
8 return reinterpret_cast<float *>(&value);
9}
10
11inline const float * SseLanes(const __m128 & value)
12{
13 return reinterpret_cast<const float *>(&value);
14}