MCPcopy Create free account
hub / github.com/catboost/catboost / Test_mm_storeu_pd

Method Test_mm_storeu_pd

library/cpp/sse/ut/test.cpp:1853–1865  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1851}
1852
1853void TSSEEmulTest::Test_mm_storeu_pd() {
1854 alignas(16) const double valueBits[4] = {1., 2., 3., 4.};
1855 for (size_t i = 0; i != 3; ++i) {
1856 const __m128d value = _mm_loadu_pd(&valueBits[i]);
1857 alignas(16) double res[4];
1858 for (size_t shift = 0; shift != 3; ++shift) {
1859 _mm_storeu_pd(&res[shift], value);
1860 for (size_t j = 0; j != 2; ++j) {
1861 UNIT_ASSERT_EQUAL_C(res[j + shift], valueBits[i + j], "res: " << HexEncode(&res[shift], 16) << " vs etalon: " << HexEncode(&valueBits[i], 16));
1862 }
1863 }
1864 }
1865}
1866
1867void TSSEEmulTest::Test_mm_andnot_ps() {
1868 alignas(16) const char firstBits[16] = {

Callers

nothing calls this directly

Calls 3

_mm_loadu_pdFunction · 0.50
_mm_storeu_pdFunction · 0.50
HexEncodeFunction · 0.50

Tested by

no test coverage detected