Searched refs:NUM_WCHARS (Results 1 – 1 of 1) sorted by relevance
/bionic/tests/ |
D | wchar_test.cpp | 25 #define NUM_WCHARS(num_bytes) (num_bytes/sizeof(wchar_t)) macro 353 wmemset(out, L'x', NUM_WCHARS(sizeof(out))); in test_mbsrtowcs() 462 wchar_t wstr[NUM_WCHARS(sizeof(const_wstr))]; in TEST() 464 EXPECT_EQ(wstr, wmemmove(wstr, const_wstr, NUM_WCHARS(sizeof(const_wstr)))); in TEST() 467 EXPECT_EQ(wstr+5, wmemmove(wstr+5, wstr, NUM_WCHARS(sizeof(const_wstr)) - 6)); in TEST() 473 wchar_t dst[NUM_WCHARS(sizeof(src))]; in TEST() 475 EXPECT_EQ(dst, wmemcpy(dst, src, NUM_WCHARS(sizeof(src)))); in TEST() 481 wchar_t dst[NUM_WCHARS(sizeof(src))]; in TEST() 483 EXPECT_EQ(dst + NUM_WCHARS(sizeof(src)) - 1, wcpcpy(dst, src)); in TEST() 489 wchar_t dst[NUM_WCHARS(sizeof(src)) + 5]; in TEST() [all …]
|