Home
last modified time | relevance | path

Searched refs:ms (Results 1 – 14 of 14) sorted by relevance

/bionic/libc/upstream-openbsd/lib/libc/string/
Dstrstr.c69 size_t l, ip, jp, k, p, ms, p0, mem, mem0; in twoway_strstr() local
95 ms = ip; in twoway_strstr()
115 if (ip+1 > ms+1) ms = ip; in twoway_strstr()
119 if (memcmp(n, n+p, ms+1)) { in twoway_strstr()
121 p = MAX(ms, l-ms-1) + 1; in twoway_strstr()
157 for (k=MAX(ms+1,mem); n[k] && n[k] == h[k]; k++); in twoway_strstr()
159 h += k-ms; in twoway_strstr()
164 for (k=ms+1; k>mem && n[k-1] == h[k-1]; k--); in twoway_strstr()
Dmemmem.c72 size_t i, ip, jp, k, p, ms, p0, mem, mem0; in twoway_memmem() local
97 ms = ip; in twoway_memmem()
117 if (ip+1 > ms+1) ms = ip; in twoway_memmem()
121 if (memcmp(n, n+p, ms+1)) { in twoway_memmem()
123 p = MAX(ms, l-ms-1) + 1; in twoway_memmem()
148 for (k=MAX(ms+1,mem); k<l && n[k] == h[k]; k++); in twoway_memmem()
150 h += k-ms; in twoway_memmem()
155 for (k=ms+1; k>mem && n[k-1] == h[k-1]; k--); in twoway_memmem()
/bionic/libc/bionic/
Dbionic_time_conversions.cpp45 void timespec_from_ms(timespec& ts, const int ms) { in timespec_from_ms() argument
46 ts.tv_sec = ms / 1000; in timespec_from_ms()
47 ts.tv_nsec = (ms % 1000) * 1000000; in timespec_from_ms()
Dpoll.cpp41 int poll(pollfd* fds, nfds_t fd_count, int ms) { in poll() argument
44 if (ms >= 0) { in poll()
45 timespec_from_ms(ts, ms); in poll()
Dpthread_cond.cpp281 pthread_mutex_t* mutex, unsigned ms) { in pthread_cond_timeout_np() argument
283 timespec_from_ms(ts, ms); in pthread_cond_timeout_np()
Dpthread_mutex.cpp950 extern "C" int pthread_mutex_lock_timeout_np(pthread_mutex_t* mutex_interface, unsigned ms) { in pthread_mutex_lock_timeout_np() argument
952 timespec_from_ms(ts, ms); in pthread_mutex_lock_timeout_np()
/bionic/tests/
Dsemaphore_test.cpp99 static inline void timespec_add_ms(timespec& ts, size_t ms) { in timespec_add_ms() argument
100 ts.tv_sec += ms / 1000; in timespec_add_ms()
101 ts.tv_nsec += (ms % 1000) * 1000000; in timespec_add_ms()
Dsys_ptrace_test.cpp518 std::this_thread::sleep_for(500ms); in TEST_F()
522 std::this_thread::sleep_for(250ms); in TEST_F()
/bionic/libc/private/
Dbionic_time_conversions.h41 __LIBC_HIDDEN__ void timespec_from_ms(timespec& ts, const int ms);
/bionic/docs/
Dfdsan.md88 sleep_for(300ms);
90 sleep_for(200ms);
99 sleep_for(100ms);
101 sleep_for(300ms);
108 sleep_for(200ms);
148 sleep_for(200ms);
151 sleep_for(200ms);
197 sleep_for(100ms);
200 sleep_for(200ms);
Dstatus.md139 * `%mc`/`%ms`/`%m[` support in the scanf family.
/bionic/libc/kernel/uapi/drm/
Dvia_drm.h113 __u32 ms; member
/bionic/tools/versioner/src/
DDriver.cpp232 auto diff = (end - start) / 1.0ms; in initializeTargetCC1FlagCache()
Dversioner.cpp671 auto diff = (end - start) / 1.0ms; in main()