MCPcopy Create free account
hub / github.com/numpy/numpy / npyv_loadn2_f32

Function npyv_loadn2_f32

numpy/core/src/common/simd/sse/memory.h:108–114  ·  view source on GitHub ↗

/ 64-bit load over 32-bit stride

Source from the content-addressed store, hash-verified

106
107//// 64-bit load over 32-bit stride
108NPY_FINLINE npyv_f32 npyv_loadn2_f32(const float *ptr, npy_intp stride)
109{
110 __m128d r = _mm_loadh_pd(
111 npyv_loadl_f64((const double*)ptr), (const double*)(ptr + stride)
112 );
113 return _mm_castpd_ps(r);
114}
115NPY_FINLINE npyv_u32 npyv_loadn2_u32(const npy_uint32 *ptr, npy_intp stride)
116{ return _mm_castps_si128(npyv_loadn2_f32((const float*)ptr, stride)); }
117NPY_FINLINE npyv_s32 npyv_loadn2_s32(const npy_int32 *ptr, npy_intp stride)

Callers 2

npyv_loadn2_u32Function · 0.70
npyv_loadn2_s32Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected