Lines Matching refs:p
41 uint64_t scalar_cast(uint8_t const* p) { in scalar_cast() argument
42 return *(uint64_t const*)p; in scalar_cast()
46 uint64_t scalar_memcpy(uint8_t const* p) { in scalar_memcpy() argument
48 __builtin_memcpy(&r, p, sizeof(r)); in scalar_memcpy()
53 uint64_t vector_memcpy(uint8_t* d, uint8_t const* p) { in vector_memcpy() argument
54 __builtin_memcpy(d, p, 16); in vector_memcpy()
59 uint64_t vector_ldst(uint8_t* d, uint8_t const* p) { in vector_ldst() argument
60 __riscv_vse8(d, __riscv_vle8_v_u8m1(p, 16), 16); in vector_ldst()
65 uint64_t vector_ldst64(uint8_t* d, uint8_t const* p) { in vector_ldst64() argument
66 __riscv_vse64((unsigned long *)d, __riscv_vle64_v_u64m1((const unsigned long *)p, 16), 16); in vector_ldst64()
77 uint8_t* p = (uint8_t*)tmp + 1; in TEST() local
78 ASSERT_NE(0U, scalar_cast(p)); in TEST()
79 ASSERT_NE(0U, scalar_memcpy(p)); in TEST()
87 uint8_t* p = (uint8_t*)tmp + 1; in TEST() local
90 ASSERT_NE(0U, vector_ldst(d, p)); in TEST()
91 ASSERT_NE(0U, vector_memcpy(d, p)); in TEST()
92 ASSERT_NE(0U, vector_ldst64(d, p)); in TEST()