Home
last modified time | relevance | path

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

/benchtests/
A Dbench-strpbrk.c28 # define STRPBRK_RESULT(s, pos) ((s)[(pos)] ? (s) + (pos) : NULL) argument
93 do_test (size_t align, size_t pos, size_t len) in do_test() argument
101 if ((align + pos + 10) * sizeof (CHAR) >= page_size || len > 240) in do_test()
120 for (i = 0; i < pos; ++i) in do_test()
130 s[pos] = rej[random () % (len + 1)]; in do_test()
131 if (s[pos]) in do_test()
133 for (i = pos + 1; i < pos + 10; ++i) in do_test()
137 result = STRPBRK_RESULT (s, pos); in do_test()
139 printf ("Length %4zd, alignment %2zd, rej len %2zd:", pos, align, len); in do_test()
A Dbench-strspn.c87 do_test (size_t align, size_t pos, size_t len) in do_test() argument
93 if ((align + pos + 10) * sizeof (CHAR) >= page_size || len > 240 || ! len) in do_test()
109 for (i = 0; i < pos; ++i) in do_test()
111 s[pos] = random () & BIG_CHAR; in do_test()
112 if (STRCHR (acc, s[pos])) in do_test()
113 s[pos] = '\0'; in do_test()
116 for (i = pos + 1; i < pos + 10; ++i) in do_test()
121 printf ("Length %4zd, alignment %2zd, acc len %2zd:", pos, align, len); in do_test()
124 do_one_test (impl, s, acc, pos); in do_test()
A Dbench-strrchr.c83 do_test (size_t align, size_t pos, size_t len, int seek_char, int max_char) in do_test() argument
103 if ((i > pos || pos >= len) && buf[align + i] == seek_char) in do_test()
108 if (pos < len) in do_test()
110 buf[align + pos] = seek_char; in do_test()
111 result = (CHAR *) (buf + align + pos); in do_test()
A Dbench-rawmemchr.c68 do_test (json_ctx_t *json_ctx, size_t align, size_t pos, size_t len, int seek_char) in do_test() argument
85 assert (pos < len); in do_test()
87 buf1[align + pos] = seek_char; in do_test()
89 result = (char *) (buf1 + align + pos); in do_test()
92 json_attr_uint (json_ctx, "length", pos); in do_test()
A Dbench-strstr.c165 size_t pos = (len1 + len2) % size; in do_test() local
171 if (pos + t <= size) in do_test()
172 ss2 = mempcpy (ss2, input + pos, t); in do_test()
175 ss2 = mempcpy (ss2, input + pos, size - pos); in do_test()
176 ss2 = mempcpy (ss2, input, t - (size - pos)); in do_test()
A Dbench-strchr.c95 do_test (size_t align, size_t pos, size_t len, int seek_char, int max_char) in do_test() argument
117 if (pos < len) in do_test()
119 buf[align + pos] = seek_char; in do_test()
120 result = buf + align + pos; in do_test()
128 pos, align * sizeof (CHAR)); in do_test()
A Dbench-memchr.c75 do_test (size_t align, size_t pos, size_t len, int seek_char) in do_test() argument
93 if (pos < len) in do_test()
95 buf[align + pos] = seek_char; in do_test()
104 len, pos, align); in do_test()
A Dbench-strcspn.c19 #define STRPBRK_RESULT(s, pos) (pos) argument
/benchtests/scripts/
A Dbench.py171 pos = arg.rfind('*')
172 if pos == -1:
175 outargs.append('static %s out%d __attribute__((used));' % (arg[1:pos], i))
/benchtests/strcoll-inputs/
A Dlorem_ipsum#cs_CZ.UTF-83 …cessiťatibúš. Prima partěm postěa cu vis, át adhuc semper eloqúentíam vix, posšě iriúré dolórem eu…
5 …mocřítum iús. Nec an dicit rěfeřrentur, pró ňe álíi conseqúůntúř. Ne haběo posídoniúm interpretari…
A Dlorem_ipsum#sr_RS.UTF-81 …t, pro ea čonceptam deseruisse. Graeče inćiderint mea ču, quo ću suas ćibo posšim. Nemore šenserit…

Completed in 9 milliseconds