Home
last modified time | relevance | path

Searched refs:m (Results 1 – 25 of 75) sorted by relevance

123

/bionic/libc/upstream-netbsd/lib/libc/regex/
Dengine.c114 static const char *dissect(struct match *m, const char *start, const char *stop, sopno startst, sop…
115 static const char *backref(struct match *m, const char *start, const char *stop, sopno startst, sop…
116 static const char *walk(struct match *m, const char *start, const char *stop, sopno startst, sopno …
133 static void print(struct match *m, const char *caption, states st, int ch, FILE *d);
136 static void at(struct match *m, const char *title, const char *start, const char *stop, sopno start…
148 #define SP(t, s, c) print(m, t, s, c, stdout)
149 #define AT(t, p1, p2, s1, s2) at(m, t, p1, p2, s1, s2)
150 #define NOTE(str) { if (m->eflags&REG_TRACE) printf("=%s\n", (str)); }
209 struct match *m = &mv; in matcher() local
287 m->g = g; in matcher()
[all …]
Dregexec.c126 #define STATESETUP(m, n) /* nothing */ argument
127 #define STATETEARDOWN(m) /* nothing */ argument
171 #define CLEAR(v) memset(v, 0, m->g->nstates)
175 #define ASSIGN(d, s) memcpy(d, s, m->g->nstates)
176 #define EQ(a, b) (memcmp(a, b, m->g->nstates) == 0)
178 #define STATESETUP(m, nv) { (m)->space = malloc((nv)*(m)->g->nstates); \ argument
179 if ((m)->space == NULL) return(REG_ESPACE); \
180 (m)->vn = 0; }
181 #define STATETEARDOWN(m) { free((m)->space); } argument
182 #define SETUP(v) ((v) = &m->space[m->vn++ * m->g->nstates])
/bionic/tests/
Dthreads_test.cpp85 mtx_t m; in TEST()
86 ASSERT_EQ(thrd_success, mtx_init(&m, mtx_plain)); in TEST()
93 auto waiter = [&c, &i, &m] { in TEST()
94 ASSERT_EQ(thrd_success, mtx_lock(&m)); in TEST()
95 while (i != 1) ASSERT_EQ(thrd_success, cnd_wait(&c, &m)); in TEST()
96 ASSERT_EQ(thrd_success, mtx_unlock(&m)); in TEST()
102 ASSERT_EQ(thrd_success, mtx_lock(&m)); in TEST()
104 ASSERT_EQ(thrd_success, mtx_unlock(&m)); in TEST()
112 mtx_destroy(&m); in TEST()
131 mtx_t m; in TEST()
[all …]
Dhwasan_test.cpp42 void* m = malloc(1); in TEST_F()
43 volatile char* x = const_cast<volatile char*>(reinterpret_cast<char*>(m)); in TEST_F()
45 free(m); in TEST_F()
54 void* m = malloc(1); in TEST_F()
55 volatile char* x = const_cast<volatile char*>(reinterpret_cast<char*>(m)); in TEST_F()
Dpthread_test.cpp2135 PthreadMutex m(PTHREAD_MUTEX_NORMAL, protocol); in TestPthreadMutexLockNormal() local
2137 ASSERT_EQ(0, pthread_mutex_lock(&m.lock)); in TestPthreadMutexLockNormal()
2139 ASSERT_EQ(EPERM, UnlockFromAnotherThread(&m.lock)); in TestPthreadMutexLockNormal()
2141 ASSERT_EQ(0, pthread_mutex_unlock(&m.lock)); in TestPthreadMutexLockNormal()
2142 ASSERT_EQ(0, pthread_mutex_trylock(&m.lock)); in TestPthreadMutexLockNormal()
2143 ASSERT_EQ(EBUSY, pthread_mutex_trylock(&m.lock)); in TestPthreadMutexLockNormal()
2144 ASSERT_EQ(0, pthread_mutex_unlock(&m.lock)); in TestPthreadMutexLockNormal()
2148 PthreadMutex m(PTHREAD_MUTEX_ERRORCHECK, protocol); in TestPthreadMutexLockErrorCheck() local
2150 ASSERT_EQ(0, pthread_mutex_lock(&m.lock)); in TestPthreadMutexLockErrorCheck()
2151 ASSERT_EQ(EPERM, UnlockFromAnotherThread(&m.lock)); in TestPthreadMutexLockErrorCheck()
[all …]
/bionic/libc/kernel/uapi/linux/
Dstat.h22 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) argument
23 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) argument
24 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) argument
25 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) argument
26 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) argument
27 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) argument
28 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) argument
Dmroute.h38 #define VIFM_SET(n,m) ((m) |= (1 << (n))) argument
39 #define VIFM_CLR(n,m) ((m) &= ~(1 << (n))) argument
40 #define VIFM_ISSET(n,m) ((m) & (1 << (n))) argument
41 #define VIFM_CLRALL(m) ((m) = 0) argument
/bionic/libc/tools/
Dgenserv.py53 m = re_service.match(line)
54 if m:
55 service = Service( m.group(1), int(m.group(2)), m.group(3) )
56 rest = string.strip(m.group(4))
59 m = re_alias.match(rest)
60 if not m:
62 service.add_alias(m.group(1))
63 rest = string.strip(m.group(2))
/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_logbl.c26 unsigned long m; in logbl() local
37 m = 1lu << (LDBL_MANL_SIZE - 1); in logbl()
38 for (b = LDBL_MANH_SIZE; !(u.bits.manl & m); m >>= 1) in logbl()
41 m = 1lu << (LDBL_MANH_SIZE - 1); in logbl()
42 for (b = 0; !(u.bits.manh & m); m >>= 1) in logbl()
Ds_ilogbl.c26 unsigned long m; in ilogbl() local
35 m = 1lu << (LDBL_MANL_SIZE - 1); in ilogbl()
36 for (b = LDBL_MANH_SIZE; !(u.bits.manl & m); m >>= 1) in ilogbl()
39 m = 1lu << (LDBL_MANH_SIZE - 1); in ilogbl()
40 for (b = 0; !(u.bits.manh & m); m >>= 1) in ilogbl()
De_atan2f.c36 int32_t k,m,hx,hy,ix,iy; in atan2f() local
46 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ in atan2f()
50 switch(m) { in atan2f()
63 switch(m) { in atan2f()
70 switch(m) { in atan2f()
85 m&=1; in atan2f()
89 switch (m) { in atan2f()
Ds_truncl.c52 uint64_t m = ((1llu << MANH_SIZE) - 1) >> (e + 1); in truncl() local
53 if (((u.bits.manh & m) | u.bits.manl) == 0) in truncl()
56 u.bits.manh &= ~m; in truncl()
61 uint64_t m = (uint64_t)-1 >> (64 - LDBL_MANT_DIG + e + 1); in truncl() local
62 if ((u.bits.manl & m) == 0) in truncl()
65 u.bits.manl &= ~m; in truncl()
De_atan2.c64 int32_t k,m,hx,hy,ix,iy; in atan2() local
75 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ in atan2()
79 switch(m) { in atan2()
92 switch(m) { in atan2()
99 switch(m) { in atan2()
114 m&=1; in atan2()
118 switch (m) { in atan2()
De_atan2l.c51 int32_t k,m; in atan2l() local
68 m = ((expsigny>>15)&1)|((expsignx>>14)&2); /* 2*sign(x)+sign(y) */ in atan2l()
72 switch(m) { in atan2l()
86 switch(m) { in atan2l()
93 switch(m) { in atan2l()
109 m&=1; in atan2l()
113 switch (m) { in atan2l()
Ds_ceill.c67 uint64_t m = ((1llu << MANH_SIZE) - 1) >> (e + 1); in ceill() local
68 if (((u.bits.manh & m) | u.bits.manl) == 0) in ceill()
79 u.bits.manh &= ~m; in ceill()
84 uint64_t m = (uint64_t)-1 >> (64 - LDBL_MANT_DIG + e + 1); in ceill() local
85 if ((u.bits.manl & m) == 0) in ceill()
98 u.bits.manl &= ~m; in ceill()
Ds_floorl.c67 uint64_t m = ((1llu << MANH_SIZE) - 1) >> (e + 1); in floorl() local
68 if (((u.bits.manh & m) | u.bits.manl) == 0) in floorl()
79 u.bits.manh &= ~m; in floorl()
84 uint64_t m = (uint64_t)-1 >> (64 - LDBL_MANT_DIG + e + 1); in floorl() local
85 if ((u.bits.manl & m) == 0) in floorl()
98 u.bits.manl &= ~m; in floorl()
/bionic/libm/upstream-freebsd/lib/msun/bsdsrc/
Db_log.c364 int m, j; in __log__D() local
372 g = frexp(x, &m); in __log__D()
374 m--; in __log__D()
375 if (m == -1022) { in __log__D()
377 m += j; in __log__D()
388 if (m | j) { in __log__D()
396 u1 += m * logF_head[N] + logF_head[j]; in __log__D()
400 u2 += logF_tail[N] * m; in __log__D()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dflags.c48 int ret, m, o; in __sflags() local
54 m = O_RDONLY; in __sflags()
60 m = O_WRONLY; in __sflags()
66 m = O_WRONLY; in __sflags()
81 m = O_RDWR; in __sflags()
103 *optr = m | o; in __sflags()
/bionic/libc/upstream-openbsd/lib/libc/crypt/
Dchacha_private.h89 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes) in chacha_encrypt_bytes() argument
118 for (i = 0;i < bytes;++i) tmp[i] = m[i]; in chacha_encrypt_bytes()
119 m = tmp; in chacha_encrypt_bytes()
167 x0 = XOR(x0,U8TO32_LITTLE(m + 0)); in chacha_encrypt_bytes()
168 x1 = XOR(x1,U8TO32_LITTLE(m + 4)); in chacha_encrypt_bytes()
169 x2 = XOR(x2,U8TO32_LITTLE(m + 8)); in chacha_encrypt_bytes()
170 x3 = XOR(x3,U8TO32_LITTLE(m + 12)); in chacha_encrypt_bytes()
171 x4 = XOR(x4,U8TO32_LITTLE(m + 16)); in chacha_encrypt_bytes()
172 x5 = XOR(x5,U8TO32_LITTLE(m + 20)); in chacha_encrypt_bytes()
173 x6 = XOR(x6,U8TO32_LITTLE(m + 24)); in chacha_encrypt_bytes()
[all …]
Darc4random.c135 size_t i, m; in _rs_rekey() local
137 m = minimum(datlen, KEYSZ + IVSZ); in _rs_rekey()
138 for (i = 0; i < m; i++) in _rs_rekey()
152 size_t m; in _rs_random_buf() local
157 m = minimum(n, rs->rs_have); in _rs_random_buf()
160 memcpy(buf, keystream, m); in _rs_random_buf()
161 memset(keystream, 0, m); in _rs_random_buf()
162 buf += m; in _rs_random_buf()
163 n -= m; in _rs_random_buf()
164 rs->rs_have -= m; in _rs_random_buf()
/bionic/benchmarks/linker_relocation/regen/
Ddump_relocs.py71 m = re.search(r'\(SONAME\)\s+Library soname: \[(.+)\]$', line)
72 if not m: continue
73 result = m.group(1)
85 m = re.search(r'\(NEEDED\)\s+Shared library: \[(.+)\]$', line)
86 if not m: continue
87 result.append(m.group(1))
117 m = kSymbolMatcher.match(line)
118 if not m:
125 num, kind, bind, ndx, name, ver_type, ver_name = m.groups()
156 m = kRelocationMatcher.match(line)
[all …]
/bionic/benchmarks/
Dpthread_benchmark.cpp122 PIMutex m(PTHREAD_MUTEX_NORMAL); in BM_pthread_mutex_lock_PI() local
125 pthread_mutex_lock(&m.mutex); in BM_pthread_mutex_lock_PI()
126 pthread_mutex_unlock(&m.mutex); in BM_pthread_mutex_lock_PI()
132 PIMutex m(PTHREAD_MUTEX_ERRORCHECK); in BM_pthread_mutex_lock_ERRORCHECK_PI() local
135 pthread_mutex_lock(&m.mutex); in BM_pthread_mutex_lock_ERRORCHECK_PI()
136 pthread_mutex_unlock(&m.mutex); in BM_pthread_mutex_lock_ERRORCHECK_PI()
142 PIMutex m(PTHREAD_MUTEX_RECURSIVE); in BM_pthread_mutex_lock_RECURSIVE_PI() local
145 pthread_mutex_lock(&m.mutex); in BM_pthread_mutex_lock_RECURSIVE_PI()
146 pthread_mutex_unlock(&m.mutex); in BM_pthread_mutex_lock_RECURSIVE_PI()
/bionic/libc/bionic/
Dtime64.c149 #define WRAP(a,b,m) ((a) = ((a) < 0 ) ? ((b)--, (a) + (m)) : (a)) argument
526 Time64_T m; in gmtime64_r() local
569 m = v_tm_tday; in gmtime64_r()
571 if (m >= CHEAT_DAYS) { in gmtime64_r()
573 m -= CHEAT_DAYS; in gmtime64_r()
576 if (m >= 0) { in gmtime64_r()
578 cycles = (int)(m / (Time64_T) days_in_gregorian_cycle); in gmtime64_r()
580 m -= (cycles * (Time64_T) days_in_gregorian_cycle); in gmtime64_r()
586 while (m >= (Time64_T) length_of_year[leap]) { in gmtime64_r()
587 m -= (Time64_T) length_of_year[leap]; in gmtime64_r()
[all …]
/bionic/tests/libs/
Dtestbinary_is_stack_mte_after_dlopen.cpp94 std::mutex m; in main() local
101 std::lock_guard lk(m); in main()
106 std::unique_lock lk(m); in main()
112 std::unique_lock lk(m); in main()
117 std::lock_guard lk(m); in main()
/bionic/libc/kernel/tools/
Dkernel.py79 m = HeaderScanner.re_combined.match(line)
80 if kernel_root and not m:
81 m = HeaderScanner.re_rel_dir.match(line)
83 if not m: return
85 header = m.group(1)
309 m = ConfigParser.re_CONFIG_.match(line)
310 if not m: return
312 name = m.group(1)
313 value = m.group(2)

123