Home
last modified time | relevance | path

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

12

/bionic/libc/kernel/common/linux/
Dstat.h29 #define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK) argument
30 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) argument
31 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) argument
32 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) argument
33 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) argument
34 #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) argument
35 #define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK) argument
Dcpumask.h42 …umask_arg_) m; if (sizeof(m) == sizeof(unsigned long)) { m.bits[0] = 1UL<<(cpu); } else { …
Dnodemask.h43 …ask_arg_) m; if (sizeof(m) == sizeof(unsigned long)) { m.bits[0] = 1UL<<(node); } else { n…
/bionic/libc/regex/
Dengine.c114 #define SP(t, s, c) print(m, t, s, c, stdout)
115 #define AT(t, p1, p2, s1, s2) at(m, t, p1, p2, s1, s2)
116 #define NOTE(str) { if (m->eflags&REG_TRACE) (void)printf("=%s\n", (str)); }
134 struct match *m = &mv; in matcher() local
165 m->g = g; in matcher()
166 m->eflags = eflags; in matcher()
167 m->pmatch = NULL; in matcher()
168 m->lastpos = NULL; in matcher()
169 m->offp = string; in matcher()
170 m->beginp = start; in matcher()
[all …]
Dregexec.c65 #define STATESETUP(m, n) /* nothing */ argument
66 #define STATETEARDOWN(m) /* nothing */ argument
105 #define CLEAR(v) memset(v, 0, m->g->nstates)
109 #define ASSIGN(d, s) memcpy(d, s, m->g->nstates)
110 #define EQ(a, b) (memcmp(a, b, m->g->nstates) == 0)
112 #define STATESETUP(m, nv) { (m)->space = malloc((nv)*(m)->g->nstates); \ argument
113 if ((m)->space == NULL) return(REG_ESPACE); \
114 (m)->vn = 0; }
115 #define STATETEARDOWN(m) { free((m)->space); } argument
116 #define SETUP(v) ((v) = &m->space[m->vn++ * m->g->nstates])
/bionic/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()
78 m = O_RDWR; in __sflags()
80 *optr = m | o; in __sflags()
/bionic/libm/src/
Ds_ilogbl.c27 unsigned long m; in ilogbl() local
36 m = 1lu << (LDBL_MANL_SIZE - 1); in ilogbl()
37 for (b = LDBL_MANH_SIZE; !(u.bits.manl & m); m >>= 1) in ilogbl()
40 m = 1lu << (LDBL_MANH_SIZE - 1); in ilogbl()
41 for (b = 0; !(u.bits.manh & m); m >>= 1) in ilogbl()
De_sqrtf.c30 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()
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_sqrt.c98 int32_t ix0,s0,q,m,t,i; in __ieee754_sqrt() local
115 m = (ix0>>20); in __ieee754_sqrt()
116 if(m==0) { /* subnormal x */ in __ieee754_sqrt()
118 m -= 21; in __ieee754_sqrt()
122 m -= i-1; in __ieee754_sqrt()
126 m -= 1023; /* unbias exponent */ in __ieee754_sqrt()
128 if(m&1){ /* odd m, double x to make it even */ in __ieee754_sqrt()
132 m >>= 1; /* m = [m/2] */ in __ieee754_sqrt()
185 ix0 += (m <<20); in __ieee754_sqrt()
De_atan2f.c35 int32_t k,m,hx,hy,ix,iy; in __ieee754_atan2f() local
45 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ in __ieee754_atan2f()
49 switch(m) { in __ieee754_atan2f()
62 switch(m) { in __ieee754_atan2f()
69 switch(m) { in __ieee754_atan2f()
85 switch (m) { in __ieee754_atan2f()
De_atan2.c61 int32_t k,m,hx,hy,ix,iy; in __ieee754_atan2() local
72 m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ in __ieee754_atan2()
76 switch(m) { in __ieee754_atan2()
89 switch(m) { in __ieee754_atan2()
96 switch(m) { in __ieee754_atan2()
112 switch (m) { in __ieee754_atan2()
Ds_ceill.c68 uint64_t m = ((1llu << MANH_SIZE) - 1) >> (e + 1); in ceill() local
69 if (((u.bits.manh & m) | u.bits.manl) == 0) in ceill()
80 u.bits.manh &= ~m; in ceill()
85 uint64_t m = (uint64_t)-1 >> (64 - LDBL_MANT_DIG + e + 1); in ceill() local
86 if ((u.bits.manl & m) == 0) in ceill()
99 u.bits.manl &= ~m; in ceill()
Ds_floorl.c68 uint64_t m = ((1llu << MANH_SIZE) - 1) >> (e + 1); in floorl() local
69 if (((u.bits.manh & m) | u.bits.manl) == 0) in floorl()
80 u.bits.manh &= ~m; in floorl()
85 uint64_t m = (uint64_t)-1 >> (64 - LDBL_MANT_DIG + e + 1); in floorl() local
86 if ((u.bits.manl & m) == 0) in floorl()
99 u.bits.manl &= ~m; in floorl()
/bionic/libc/string/
Dmemmem.c35 void *memmem(const void *haystack, size_t n, const void *needle, size_t m) in memmem() argument
37 if (m > n || !m || !n) in memmem()
40 if (__builtin_expect((m > 1), 1)) { in memmem()
50 while (j <= n-m) { in memmem()
54 if (!memcmp(x+2, y+j+2, m-2) && x[0] == y[j]) in memmem()
/bionic/libm/bsdsrc/
Db_log.c368 int m, j;
384 m = logb(x);
385 g = ldexp(x, -m);
386 if (m == -1022) {
387 j = logb(g), m += j;
404 if (m | j)
419 u1 += m*logF_head[N] + logF_head[j]; /* exact */
421 u2 += logF_tail[N]*m;
437 int m, j; local
445 m = logb(x);
[all …]
/bionic/libc/tools/
Dchecksyscalls.py77 m = re_nr_line.match(line)
78 if m:
79 dict[m.group(1)] = int(m.group(2))
82 m = re_nr_clock_line.match(line)
83 if m:
84 dict[m.group(1)] = int(m.group(2)) + 259
87 m = re_arm_nr_line.match(line)
88 if m:
90 dict["ARM_"+m.group(1)] = int(m.group(2)) + 0x0f0000
93 m = re_x86_line.match(line)
[all …]
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/libc/bionic/
Ddlmalloc.c2184 static msegmentptr segment_holding(mstate m, char* addr) { in segment_holding() argument
2185 msegmentptr sp = &m->seg; in segment_holding()
2195 static int has_segment_link(mstate m, msegmentptr ss) { in has_segment_link() argument
2196 msegmentptr sp = &m->seg; in has_segment_link()
2261 static void reset_on_error(mstate m);
2263 #define CORRUPTION_ERROR_ACTION(m) reset_on_error(m) argument
2264 #define USAGE_ERROR_ACTION(m, p) argument
2269 #define CORRUPTION_ERROR_ACTION(m) ABORT argument
2273 #define USAGE_ERROR_ACTION(m,p) ABORT argument
2297 static void do_check_any_chunk(mstate m, mchunkptr p);
[all …]
Dmd5.h48 void MD5_Init (struct md5 *m);
49 void MD5_Update (struct md5 *m, const void *p, size_t len);
50 void MD5_Final (void *res, struct md5 *m); /* u_int32_t res[4] */
Dmd5.c44 #define A m->counter[0]
45 #define B m->counter[1]
46 #define C m->counter[2]
47 #define D m->counter[3]
51 MD5_Init (struct md5 *m) in MD5_Init() argument
53 m->sz[0] = 0; in MD5_Init()
54 m->sz[1] = 0; in MD5_Init()
75 calc (struct md5 *m, u_int32_t *data) in calc() argument
203 MD5_Update (struct md5 *m, const void *v, size_t len) in MD5_Update() argument
206 size_t old_sz = m->sz[0]; in MD5_Update()
[all …]
Dtime64.c156 #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/libc/netbsd/net/
Dreentrant.h148 #define mutex_init(m, a) __libc_mutex_init((m), (a)) argument
149 #define mutex_lock(m) __libc_mutex_lock((m)) argument
150 #define mutex_trylock(m) __libc_mutex_trylock((m)) argument
151 #define mutex_unlock(m) __libc_mutex_unlock((m)) argument
152 #define mutex_destroy(m) __libc_mutex_destroy((m)) argument
170 #define cond_wait(c, m) __libc_cond_wait((c), (m)) argument
171 #define cond_timedwait(c, m, t) __libc_cond_timedwait((c), (m), (t)) argument
234 #define mutex_init(m, a)
235 #define mutex_lock(m)
236 #define mutex_trylock(m)
[all …]
/bionic/libc/kernel/tools/
Dclean_header.py48 m = re_asm_arch.match(src_path)
50 if m and m.group(1) != 'generic':
51 dst_path = "arch-%s/asm/%s" % m.groups()
52 arch = m.group(1)
Dkernel.py76 m = HeaderScanner.re_combined.match(line)
77 if kernel_root and not m:
78 m = HeaderScanner.re_rel_dir.match(line)
80 if not m: return
82 header = m.group(1)
308 m = ConfigParser.re_CONFIG_.match(line)
309 if not m: return
311 name = m.group(1)
312 value = m.group(2)

12