/bionic/libc/upstream-netbsd/lib/libc/regex/ |
D | engine.c | 130 static const char *dissect(struct match *m, const char *start, const char *stop, sopno startst, sop… 131 static const char *backref(struct match *m, const char *start, const char *stop, sopno startst, sop… 132 static const char *fast(struct match *m, const char *start, const char *stop, sopno startst, sopno … 133 static const char *slow(struct match *m, const char *start, const char *stop, sopno startst, sopno … 145 static void print(struct match *m, char *caption, states st, int ch, FILE *d); 148 static void at(struct match *m, char *title, char *start, char *stop, sopno startst, sopno stopst); 160 #define SP(t, s, c) print(m, t, s, c, stdout) 161 #define AT(t, p1, p2, s1, s2) at(m, t, p1, p2, s1, s2) 162 #define NOTE(str) { if (m->eflags®_TRACE) printf("=%s\n", (str)); } 186 struct match *m = &mv; in matcher() local [all …]
|
D | regexec.c | 118 #define STATESETUP(m, n) /* nothing */ in __weak_alias() argument 119 #define STATETEARDOWN(m) /* nothing */ in __weak_alias() argument 158 #define CLEAR(v) memset(v, 0, (size_t)m->g->nstates) in __weak_alias() 162 #define ASSIGN(d, s) memcpy(d, s, (size_t)m->g->nstates) in __weak_alias() 163 #define EQ(a, b) (memcmp(a, b, (size_t)m->g->nstates) == 0) in __weak_alias() 165 #define STATESETUP(m, nv) \ argument 166 if (((m)->space = malloc((size_t)((nv)*(m)->g->nstates))) == NULL) \ 169 (m)->vn = 0 171 #define STATETEARDOWN(m) { free((m)->space); m->space = NULL; } argument 172 #define SETUP(v) ((v) = &m->space[(size_t)(m->vn++ * m->g->nstates)])
|
/bionic/libc/kernel/uapi/linux/ |
D | stat.h | 34 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) argument 35 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) argument 36 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) argument 37 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) argument 38 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) argument 39 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) argument 40 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) argument
|
D | mroute.h | 45 #define VIFM_SET(n,m) ((m) |= (1 << (n))) argument 46 #define VIFM_CLR(n,m) ((m) &= ~(1 << (n))) argument 47 #define VIFM_ISSET(n,m) ((m) & (1 << (n))) argument 48 #define VIFM_CLRALL(m) ((m) = 0) argument
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | s_logbl.c | 26 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()
|
D | s_ilogbl.c | 26 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()
|
D | e_sqrtf.c | 30 int32_t ix,s,q,m,t,i; in __ieee754_sqrtf() local 47 m = (ix>>23); in __ieee754_sqrtf() 48 if(m==0) { /* subnormal x */ in __ieee754_sqrtf() 50 m -= i-1; in __ieee754_sqrtf() 52 m -= 127; /* unbias exponent */ in __ieee754_sqrtf() 54 if(m&1) /* odd m, double x to make it even */ in __ieee754_sqrtf() 56 m >>= 1; /* m = [m/2] */ in __ieee754_sqrtf() 86 ix += (m <<23); in __ieee754_sqrtf()
|
D | s_truncl.c | 52 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()
|
D | e_atan2f.c | 36 int32_t k,m,hx,hy,ix,iy; in __ieee754_atan2f() local 46 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ in __ieee754_atan2f() 50 switch(m) { in __ieee754_atan2f() 63 switch(m) { in __ieee754_atan2f() 70 switch(m) { in __ieee754_atan2f() 85 m&=1; in __ieee754_atan2f() 89 switch (m) { in __ieee754_atan2f()
|
D | e_atan2.c | 64 int32_t k,m,hx,hy,ix,iy; in __ieee754_atan2() local 75 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ in __ieee754_atan2() 79 switch(m) { in __ieee754_atan2() 92 switch(m) { in __ieee754_atan2() 99 switch(m) { in __ieee754_atan2() 114 m&=1; in __ieee754_atan2() 118 switch (m) { in __ieee754_atan2()
|
D | e_sqrt.c | 99 int32_t ix0,s0,q,m,t,i; in __ieee754_sqrt() local 116 m = (ix0>>20); in __ieee754_sqrt() 117 if(m==0) { /* subnormal x */ in __ieee754_sqrt() 119 m -= 21; in __ieee754_sqrt() 123 m -= i-1; in __ieee754_sqrt() 127 m -= 1023; /* unbias exponent */ in __ieee754_sqrt() 129 if(m&1){ /* odd m, double x to make it even */ in __ieee754_sqrt() 133 m >>= 1; /* m = [m/2] */ in __ieee754_sqrt() 186 ix0 += (m <<20); in __ieee754_sqrt()
|
D | e_atan2l.c | 51 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()
|
D | s_ceill.c | 67 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()
|
D | s_floorl.c | 67 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/libc/upstream-openbsd/lib/libc/stdio/ |
D | flags.c | 48 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/libm/upstream-freebsd/lib/msun/bsdsrc/ |
D | b_log.c | 367 int m, j; 383 m = logb(x); 384 g = ldexp(x, -m); 385 if (m == -1022) { 386 j = logb(g), m += j; 403 if (m | j) 418 u1 += m*logF_head[N] + logF_head[j]; /* exact */ 420 u2 += logF_tail[N]*m; 436 int m, j; local 444 m = logb(x); [all …]
|
/bionic/libc/bionic/ |
D | memmem.cpp | 31 void* memmem(const void* void_haystack, size_t n, const void* void_needle, size_t m) { in memmem() argument 35 if (n < m) return nullptr; in memmem() 37 if (m == 0) return const_cast<void*>(void_haystack); in memmem() 38 if (m == 1) return const_cast<void*>(memchr(haystack, needle[0], n)); in memmem() 51 while (j <= n-m) { in memmem() 55 if (!memcmp(x+2, y+j+2, m-2) && x[0] == y[j]) return const_cast<unsigned char*>(&y[j]); in memmem()
|
D | time64.c | 149 #define WRAP(a,b,m) ((a) = ((a) < 0 ) ? ((b)--, (a) + (m)) : (a)) argument 521 Time64_T m; in gmtime64_r() local 564 m = v_tm_tday; in gmtime64_r() 566 if (m >= CHEAT_DAYS) { in gmtime64_r() 568 m -= CHEAT_DAYS; in gmtime64_r() 571 if (m >= 0) { in gmtime64_r() 573 cycles = (int)(m / (Time64_T) days_in_gregorian_cycle); in gmtime64_r() 575 m -= (cycles * (Time64_T) days_in_gregorian_cycle); in gmtime64_r() 581 while (m >= (Time64_T) length_of_year[leap]) { in gmtime64_r() 582 m -= (Time64_T) length_of_year[leap]; in gmtime64_r() [all …]
|
/bionic/libc/tools/ |
D | genserv.py | 53 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))
|
D | check-symbols.py | 58 m = r.match(line) 59 if m: 60 symbol = string.split(m.group(2), '@')[0] 61 if m.group(1) == 'FUNC' and functions_or_variables == 'functions': 63 elif m.group(1) == 'OBJECT' and functions_or_variables == 'variables':
|
/bionic/libc/upstream-freebsd/lib/libc/stdlib/ |
D | realpath.c | 57 int m, slen; in realpath() local 72 m = 1; in realpath() 74 m = 0; in realpath() 85 if (m) in realpath() 97 if (m) in realpath() 114 if (m) in realpath() 126 if (m) in realpath() 159 if (m) in realpath() 165 if (m) in realpath() 171 if (m) in realpath() [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/crypt/ |
D | arc4random.c | 129 size_t i, m; in _rs_rekey() local 131 m = minimum(datlen, KEYSZ + IVSZ); in _rs_rekey() 132 for (i = 0; i < m; i++) in _rs_rekey() 146 size_t m; in _rs_random_buf() local 151 m = minimum(n, rs->rs_have); in _rs_random_buf() 154 memcpy(buf, keystream, m); in _rs_random_buf() 155 memset(keystream, 0, m); in _rs_random_buf() 156 buf += m; in _rs_random_buf() 157 n -= m; in _rs_random_buf() 158 rs->rs_have -= m; in _rs_random_buf()
|
D | chacha_private.h | 89 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 …]
|
/bionic/benchmarks/ |
D | pthread_benchmark.cpp | 119 PIMutex m(PTHREAD_MUTEX_NORMAL); in BM_pthread_mutex_lock_PI() local 122 pthread_mutex_lock(&m.mutex); in BM_pthread_mutex_lock_PI() 123 pthread_mutex_unlock(&m.mutex); in BM_pthread_mutex_lock_PI() 129 PIMutex m(PTHREAD_MUTEX_ERRORCHECK); in BM_pthread_mutex_lock_ERRORCHECK_PI() local 132 pthread_mutex_lock(&m.mutex); in BM_pthread_mutex_lock_ERRORCHECK_PI() 133 pthread_mutex_unlock(&m.mutex); in BM_pthread_mutex_lock_ERRORCHECK_PI() 139 PIMutex m(PTHREAD_MUTEX_RECURSIVE); in BM_pthread_mutex_lock_RECURSIVE_PI() local 142 pthread_mutex_lock(&m.mutex); in BM_pthread_mutex_lock_RECURSIVE_PI() 143 pthread_mutex_unlock(&m.mutex); in BM_pthread_mutex_lock_RECURSIVE_PI()
|
/bionic/libc/kernel/tools/ |
D | kernel.py | 79 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) 310 m = ConfigParser.re_CONFIG_.match(line) 311 if not m: return 313 name = m.group(1) 314 value = m.group(2)
|