MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / GiLoadInt8

Function GiLoadInt8

dnn/src/fallback/general_intrinsic/gi_int.h:71–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71GI_FORCEINLINE
72GI_INT8_t GiLoadInt8(const void* Buffer) {
73#if defined(GI_NEON_INTRINSICS)
74 return vld1q_s8((int8_t*)Buffer);
75#elif defined(GI_SSE2_INTRINSICS)
76 return _mm_loadu_si128((const __m128i*)Buffer);
77#elif defined(GI_RVV_INTRINSICS)
78 return vle8_v_i8m1((int8_t*)Buffer, GI_SIMD_LEN_BYTE / sizeof(int8_t));
79#else
80 GI_INT8_t ret;
81 const int8_t* ptr = (int8_t*)Buffer;
82 for (size_t i = 0; i < GI_SIMD_LEN_BYTE / sizeof(int8_t); i++) {
83 ret[i] = ptr[i];
84 }
85 return ret;
86#endif
87}
88
89GI_FORCEINLINE
90GI_INT8_V2_t GiLoadUzipInt8V2(const void* Buffer) {

Callers 8

TEST_FFunction · 0.85
feedMethod · 0.85
feedMethod · 0.85
cvtMethod · 0.85
cvtMethod · 0.85
cvtMethod · 0.85
cvtMethod · 0.85

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.68