Home
last modified time | relevance | path

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

/bionic/tests/
Dwchar_test.cpp29 #define NUM_WCHARS(num_bytes) ((num_bytes)/sizeof(wchar_t)) macro
382 wmemset(out, L'x', NUM_WCHARS(sizeof(out))); in test_mbsrtowcs()
583 wchar_t wstr[NUM_WCHARS(sizeof(const_wstr))]; in TEST()
585 EXPECT_EQ(wstr, wmemmove(wstr, const_wstr, NUM_WCHARS(sizeof(const_wstr)))); in TEST()
588 EXPECT_EQ(wstr+5, wmemmove(wstr+5, wstr, NUM_WCHARS(sizeof(const_wstr)) - 6)); in TEST()
594 wchar_t dst[NUM_WCHARS(sizeof(src))]; in TEST()
596 EXPECT_EQ(dst, wmemcpy(dst, src, NUM_WCHARS(sizeof(src)))); in TEST()
602 wchar_t dst[NUM_WCHARS(sizeof(src))]; in TEST()
604 EXPECT_EQ(dst + NUM_WCHARS(sizeof(src)) - 1, wcpcpy(dst, src)); in TEST()
610 wchar_t dst[NUM_WCHARS(sizeof(src)) + 5]; in TEST()
[all …]