MCPcopy Create free account
hub / github.com/MegEngine/MegCC / GiStoreInt8

Function GiStoreInt8

immigration/include/gi_int.h:295–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295GI_FORCEINLINE
296void GiStoreInt8(void* Buffer, GI_INT8_t Vector) {
297#if defined(GI_NEON_INTRINSICS)
298 vst1q_s8((int8_t*)Buffer, Vector);
299#elif defined(GI_SSE2_INTRINSICS)
300 _mm_storeu_si128((__m128i*)Buffer, Vector);
301#elif defined(GI_RVV_INTRINSICS)
302 vse8_v_i8m1((int8_t*)Buffer, Vector, GI_SIMD_LEN_BYTE / sizeof(int8_t));
303#else
304 int8_t* ptr = (int8_t*)Buffer;
305 for (size_t i = 0; i < GI_SIMD_LEN_BYTE / sizeof(int8_t); i++) {
306 ptr[i] = Vector[i];
307 }
308#endif
309}
310
311GI_FORCEINLINE
312void GiStoreLowInt8(void* Buffer, GI_INT8_t Vector) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected