Lines Matching refs:neg_first
85 static void init_test_data_s8(bool neg_first) in init_test_data_s8() argument
91 neg_first ? "neg first" : "pos first"); in init_test_data_s8()
93 *ptr++ = get_byte(i, neg_first); in init_test_data_s8()
94 *ptr++ = get_byte(i, !neg_first); in init_test_data_s8()
345 static bool read_test_data_s8(int offset, bool neg_first) in read_test_data_s8() argument
359 if (neg_first && first < 0 && second > 0) { in read_test_data_s8()
361 } else if (!neg_first && first > 0 && second < 0) { in read_test_data_s8()
364 ml_printf("Error %d %c %d\n", first, neg_first ? '<' : '>', second); in read_test_data_s8()
372 static bool read_test_data_s16(int offset, bool neg_first) in read_test_data_s16() argument
379 offset, neg_first ? "neg" : "pos"); in read_test_data_s16()
386 neg_first = !neg_first; in read_test_data_s16()
392 if (neg_first && data < 0) { in read_test_data_s16()
394 } else if (!neg_first && data > 0) { in read_test_data_s16()
397 ml_printf("Error %d %c 0\n", data, neg_first ? '<' : '>'); in read_test_data_s16()
405 static bool read_test_data_s32(int offset, bool neg_first) in read_test_data_s32() argument
412 ptr, offset, neg_first ? "neg" : "pos"); in read_test_data_s32()
419 neg_first = !neg_first; in read_test_data_s32()
425 if (neg_first && data < 0) { in read_test_data_s32()
427 } else if (!neg_first && data > 0) { in read_test_data_s32()
430 ml_printf("Error %d %c 0\n", data, neg_first ? '<' : '>'); in read_test_data_s32()
448 bool do_signed_reads(bool neg_first) in do_signed_reads() argument
457 bool nf = i == 0 ? neg_first ^ (off & 1) : !(neg_first ^ (off & 1)); in do_signed_reads()
461 ok = read_sfns[i](0, i == 0 ? neg_first : !neg_first); in do_signed_reads()