/picolibc-3.7.0-3.6.0/newlib/libm/test/ |
D | string.c | 38 #define check(thing) checkit(thing, __LINE__) macro 84 check(strcmp("", "") == 0); /* Trivial case. */ in test_string() 85 check(strcmp("a", "a") == 0); /* Identity. */ in test_string() 86 check(strcmp("abc", "abc") == 0); /* Multicharacter. */ in test_string() 87 check(strcmp("abc", "abcd") < 0); /* Length mismatches. */ in test_string() 88 check(strcmp("abcd", "abc") > 0); in test_string() 89 check(strcmp("abcd", "abce") < 0); /* Honest miscompares. */ in test_string() 90 check(strcmp("abce", "abcd") > 0); in test_string() 91 check(strcmp("a\103", "a") > 0); /* Tricky if char signed. */ in test_string() 92 check(strcmp("a\103", "a\003") > 0); in test_string() [all …]
|
/picolibc-3.7.0-3.6.0/test/ |
D | test-strchr.c | 42 #define check(func, needle, expect) do { \ macro 56 check(func, needle, expect); \ 57 check(func, needle | 0xff00, expect); \ 58 check(func, needle | 0x0100, expect); \ 59 check(func, needle | 0x8000, expect); \ 63 check(func, needle, expect); \ 64 check(func, needle | 0xffffff00, expect); \ 65 check(func, needle | 0x00000100, expect); \ 66 check(func, needle | 0x80000000, expect); \
|
D | test-mktemp.c | 40 #define check(condition, message) do { \ macro 67 check(f != NULL, "fopen r"); in check_contents() 71 check((char) c == *s, "contents"); in check_contents() 75 check(c == EOF, "EOF"); in check_contents() 78 check(r == 0, "fclose r"); in check_contents() 97 check(s_ret == template, "mktemp"); in main() 101 check(f != NULL, "fopen w"); in main() 111 check(i_ret >= 0, "mkstemp"); in main() 115 check(f != NULL, "fopen w"); in main() 125 check(i_ret >= 0, "mkstemps"); in main() [all …]
|
D | ffs.c | 88 check(long long int x, int got, int expect, char *which) in check() function 105 ret += check(0, ffs(0), slow_ffs(0), "ffs"); in main() 106 ret += check(0, ffsl(0), slow_ffsl(0), "ffsl"); in main() 107 ret += check(0, ffsll(0), slow_ffsll(0), "ffsll"); in main() 115 ret += check(x, ffs(x), slow_ffs(x), "ffs"); in main() 116 ret += check(xl, ffsl(xl), slow_ffsl(xl), "ffsl"); in main() 117 ret += check(xll, ffsll(xll), slow_ffsll(xll), "ffsll"); in main() 127 ret += check(x, ffs(x), slow_ffs(x), "ffs"); in main() 128 ret += check(xl, ffsl(xl), slow_ffsl(xl), "ffsl"); in main() 129 ret += check(xll, ffsll(xll), slow_ffsll(xll), "ffsll"); in main()
|
D | test-fopen.c | 43 #define check(condition, message) do { \ macro 64 check(f != NULL, "fopen r"); in check_contents() 68 check((char) c == *s, "contents"); in check_contents() 72 check(c == EOF, "EOF"); in check_contents() 75 check(r == 0, "fclose r"); in check_contents() 85 check(f != NULL, "fopen w"); in main() 92 check(f != NULL, "fopen a"); in main() 99 check(f != NULL, "fopen w 2"); in main()
|
D | test-put.c | 43 check(char *label, bool ok, int expect, int got) in check() function 70 ret += check("putc", a == 'X', 'X', a); in main() 73 ret += check("putchar", a == 'Y', 'Y', a); in main() 76 ret += check("fputc", a == 'Z', 'Z', a); in main() 79 ret += check ("puts", a >= 0, 0, a); in main() 82 ret += check ("fputs", a >= 0, 0, a); in main()
|
D | test-memset.c | 86 check(char *label, void *buf, size_t size, size_t start, size_t end, int c) in check() function 146 error += check("memset", buf, MAX_BUF, start, end, c); in test() 150 error += check("bzero", buf, MAX_BUF, start, end, 0); in test() 155 error += check("__aeabi_memset", buf, MAX_BUF, start, end, c); in test() 159 error += check("__aeabi_memclr", buf, MAX_BUF, start, end, 0); in test() 166 error += check("__aeabi_memset4", buf, MAX_BUF, start, end, c); in test() 170 error += check("__aeabi_memclr4", buf, MAX_BUF, start, end, 0); in test() 177 error += check("__aeabi_memset8", buf, MAX_BUF, start, end, c); in test() 181 error += check("__aeabi_memclr8", buf, MAX_BUF, start, end, 0); in test()
|
D | test-fread-fwrite.c | 45 #define check(condition, message) do { \ macro 146 check(f != NULL, "fopen w"); in main() 153 check(ret == per_op, "fwrite ordered"); in main() 162 check(ret == per_op, "fwrite random"); in main() 170 check(f != NULL, "fopen r"); in main() 174 check(ret == per_op, "fread ordered"); in main() 183 check(ret == per_op, "fread random"); in main() 202 check(f != NULL, "fopen w+"); in main() 207 check(ret == BUF_SIZE, "fwrite mixed setup"); in main() 222 check(ret == (size_t) write_len, "fwrite mixed"); in main() [all …]
|
D | test-long-long.c | 121 check(long long x) in check() function 183 ret |= check(x); in main() 187 ret |= check(x); in main()
|
D | rounding-mode.c | 138 check(int mode, char *name, double value) in check() function 217 ret += check(FE_TONEAREST, "FE_TONEAREST", my_values[i]); in main() 220 ret += check(FE_UPWARD, "FE_UPWARD", my_values[i]); in main() 223 ret += check(FE_DOWNWARD, "FE_DOWNWARD", my_values[i]); in main() 226 ret += check(FE_TOWARDZERO, "FE_TOWARDZERO", my_values[i]); in main()
|
D | math_errhandling.c | 344 volatile long double check = nextafterl(zero, one); in main() local 345 if (check + check == zero) { in main()
|
D | long_double.c | 466 volatile long double check = nextafterl(zero, one); in main() local 467 if (check + check == zero) { in main()
|
/picolibc-3.7.0-3.6.0/newlib/libc/machine/i960/ |
D | strcmp_ca.S | 117 cmpo g0,g2 # check alignment of src1 124 cmpo g3,g1 # check alignment of src2 140 scanbyte 0,SRC1 # check for null byte in src1 word 154 cmpo g3,g1 # check alignment of src2 178 scanbyte 0,SRC1 # check for null byte in src1 word 200 cmpobne.f g0,g3,.diff # check for equality 201 cmpo 0,g0 # check for null byte 238 scanbyte 0,LSW # check for null byte
|
D | strncpy_ca.S | 114 cmpo g3,g1 # check alignment of src 121 cmpo g0,g4 # check alignment of dest 128 cmpi g2,4 # check for fewer than four bytes to move 132 scanbyte 0,g1 # check for null byte in src word 149 cmpo 0,g14 # check for null byte 170 cmpo 0,g14 # check for null byte 186 cmpi g2,4 # check for fewer than four bytes to move 208 cmpo 0,g5 # check for null byte 237 scanbyte 0,g1 # check for null byte 253 scanbyte 0,g1 # check for null byte [all …]
|
D | strncmp_ca.S | 118 cmpo g0,SRC1 # check alignment of src1 125 cmpo g3,g1 # check alignment of src2 144 scanbyte 0,g0 # check for null byte in src1 word 155 cmpo g3,g1 # check alignment of src2 181 scanbyte 0,g0 # check for null byte in src1 word 201 cmpobne.f LSW,g3,.diff # check for equality 202 cmpo 0,LSW # check for null byte 244 scanbyte 0,LSW # check for null byte
|
D | strncat_ca.S | 126 scanbyte 0,MSW # check for null byte 142 cmpo g1,g3 # check alignment of source 149 cmpi g2,4 # check for fewer than four bytes to move 152 scanbyte 0,g1 # check for null byte in src word 169 cmpo 0,g14 # check for null byte 186 shlo 8,LSW,LSW # check next byte 196 cmpo g1,g3 # check alignment of src 236 cmpo 0,g5 # check for null byte 262 scanbyte 0,g1 # check for null byte 283 scanbyte 0,g1 # check for null byte
|
D | strcpy_ca.S | 137 scanbyte 0,MSW # check for null byte 170 cmpo g0,g4 # check alignment of dest 176 cmpo g3,g1 # check alignment of src 188 scanbyte 0,LSW # check for null byte in src word 206 cmpo 0,g14 # check for null byte 230 cmpo 0,g14 # check for null byte 247 scanbyte 0,g2 # check for null byte 258 cmpo g3,g1 # check alignment of src
|
D | strpbrk.S | 89 bne.t Lscan_set_strpbrk # check next character of brkset 90 addo 1,g0,g0 # check next character of string
|
D | strcspn.S | 84 bne.t Lscan_set # check next character of charset 85 addo 1,g3,g3 # check next character of string
|
D | strlen.S | 92 scanbyte 0,g4 # check for null byte 95 scanbyte 0,g7 # check for null byte
|
D | strchr.S | 98 scanbyte g3,g5 # check for byte with char 101 scanbyte 0,g5 # check for null byte
|
D | memccpy.S | 116 scanbyte g6, g7 # check for char 124 and g5,g4,g7 # check the byte against char
|
D | memcpy_ca.S | 123 cmpo g3,g1 # check alignment of src 130 cmpo g0,g4 # check alignment of dest 177 cmpi g2,4 # check for fewer than four bytes to move 205 cmpo g0,g4 # check alignment of dest 232 cmpo MSW,g5 # check alignment of end of src 239 cmpo g1,g4 # check alignment of dest 302 cmpi g2,4 # check for fewer than four bytes to move 326 cmpo g1,g4 # check alignment of dest
|
D | strrchr.S | 105 scanbyte 0,g5 # check for null byte 108 scanbyte g3,g5 # check for byte with char
|
D | strcpy.S | 125 scanbyte 0,g4 # check for null byte 128 scanbyte 0,g7 # check for null byte
|