Lines Matching refs:valid
159 uint8_t valid[] = { in convert_1_byte() local
163 run_test(buff, sizeof buff, valid, sizeof valid); in convert_1_byte()
209 uint8_t valid[] = { in convert_2_bytes() local
216 run_test(buff, sizeof buff, valid, sizeof valid); in convert_2_bytes()
392 uint8_t valid[4]; in convert_4_bytes() local
394 valid[0] = 0xf0 | i; in convert_4_bytes()
399 valid[1] = j == 0 ? 0x90 : 0xbf; // 0xf0 in convert_4_bytes()
401 valid[1] = j == 0 ? 0x80 : 0x8f; // 0xf4 in convert_4_bytes()
403 valid[1] = j == 0 ? 0x80 : 0xbf; // 0xf1 .. 0xf3 in convert_4_bytes()
406 valid[2] = 0x80; in convert_4_bytes()
407 valid[3] = 0x80; in convert_4_bytes()
408 run_test(buff, sizeof buff, valid, sizeof valid); in convert_4_bytes()
409 valid[2] = 0x80; in convert_4_bytes()
410 valid[3] = 0xbf; in convert_4_bytes()
411 run_test(buff, sizeof buff, valid, sizeof valid); in convert_4_bytes()
412 valid[2] = 0xbf; in convert_4_bytes()
413 valid[3] = 0x80; in convert_4_bytes()
414 run_test(buff, sizeof buff, valid, sizeof valid); in convert_4_bytes()
415 valid[2] = 0xbf; in convert_4_bytes()
416 valid[3] = 0xbf; in convert_4_bytes()
417 run_test(buff, sizeof buff, valid, sizeof valid); in convert_4_bytes()