Home
last modified time | relevance | path

Searched refs:NUM_WCHARS (Results 1 – 1 of 1) sorted by relevance

/aosp_15_r20/bionic/tests/
H A Dwchar_test.cpp30 #define NUM_WCHARS(num_bytes) ((num_bytes)/sizeof(wchar_t)) macro
474 wmemset(out, L'x', NUM_WCHARS(sizeof(out))); in test_mbsrtowcs()
678 wchar_t wstr[NUM_WCHARS(sizeof(const_wstr))]; in TEST()
680 EXPECT_EQ(wstr, wmemmove(wstr, const_wstr, NUM_WCHARS(sizeof(const_wstr)))); in TEST()
683 EXPECT_EQ(wstr+5, wmemmove(wstr+5, wstr, NUM_WCHARS(sizeof(const_wstr)) - 6)); in TEST()
689 wchar_t dst[NUM_WCHARS(sizeof(src))]; in TEST()
691 EXPECT_EQ(dst, wmemcpy(dst, src, NUM_WCHARS(sizeof(src)))); in TEST()
697 wchar_t dst[NUM_WCHARS(sizeof(src))]; in TEST()
699 EXPECT_EQ(dst + NUM_WCHARS(sizeof(src)) - 1, wcpcpy(dst, src)); in TEST()
705 wchar_t dst[NUM_WCHARS(sizeof(src)) + 5]; in TEST()
[all …]