Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 154) sorted by relevance

1234567

/system/extras/ext4_utils/
Dsha1.c71 void do_R01(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *);
72 void do_R2(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *);
73 void do_R3(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *);
74 void do_R4(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *);
83 do_R01(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *block) in do_R01() argument
85 nR0(a,b,c,d,e, 0); nR0(e,a,b,c,d, 1); nR0(d,e,a,b,c, 2); nR0(c,d,e,a,b, 3); in do_R01()
86 nR0(b,c,d,e,a, 4); nR0(a,b,c,d,e, 5); nR0(e,a,b,c,d, 6); nR0(d,e,a,b,c, 7); in do_R01()
87 nR0(c,d,e,a,b, 8); nR0(b,c,d,e,a, 9); nR0(a,b,c,d,e,10); nR0(e,a,b,c,d,11); in do_R01()
88 nR0(d,e,a,b,c,12); nR0(c,d,e,a,b,13); nR0(b,c,d,e,a,14); nR0(a,b,c,d,e,15); in do_R01()
89 nR1(e,a,b,c,d,16); nR1(d,e,a,b,c,17); nR1(c,d,e,a,b,18); nR1(b,c,d,e,a,19); in do_R01()
[all …]
/system/extras/ksmutils/
Dlookup3.c115 #define mix(a,b,c) \ argument
117 a -= c; a ^= rot(c, 4); c += b; \
118 b -= a; b ^= rot(a, 6); a += c; \
119 c -= b; c ^= rot(b, 8); b += a; \
120 a -= c; a ^= rot(c,16); c += b; \
121 b -= a; b ^= rot(a,19); a += c; \
122 c -= b; c ^= rot(b, 4); b += a; \
150 #define final(a,b,c) \ argument
152 c ^= b; c -= rot(b,14); \
154 b ^= a; b -= rot(a,25); \
[all …]
/system/extras/sane_schedstat/
Dsane_schedstat.c58 static const char *next_line(const char *b) { in next_line() argument
60 switch (*b) { in next_line()
62 return b + 1; in next_line()
66 b++; in next_line()
84 static int parse_cpu_v15(const char *b) { in parse_cpu_v15() argument
87 if (sscanf(b, "cpu%d %u %u %u %u %u %u %llu %llu %lu\n", in parse_cpu_v15()
92 printf("Could not parse %s\n", b); in parse_cpu_v15()
111 static int parse(const char *b) { in parse() argument
115 if (sscanf(b, "version %u\n", &version) != 1) { in parse()
121 b = next_line(b); in parse()
[all …]
/system/core/libcutils/arch-arm64/
Dandroid_memset.S69 b.eq .Lzero_mem
71 b .Lexpand_to_64
76 b.eq .Lzero_mem
81 b.ge .Lnot_short
84 b.le .Ltail15tiny
87 b.eq .Ltail15
90 b.eq 1f
91 b.lt 2f
124 b.eq 2f
133 b.le .Ltail63
[all …]
/system/core/libpixelflinger/include/private/pixelflinger/
Dggl_fixed.h90 int32_t gglMulDivi(int32_t a, int32_t b, int32_t c);
196 inline GGLfixed gglMulx(GGLfixed a, GGLfixed b, int shift) CONST;
197 inline GGLfixed gglMulx(GGLfixed a, GGLfixed b, int shift) { in gglMulx() argument
205 : [a]"r"(a),[b]"r"(b) in gglMulx()
221 : [a]"r"(a),[b]"r"(b),[shift]"I"(shift) in gglMulx()
239 : [a]"r"(a),[b]"r"(b),[lshift]"I"(32-shift),[rshift]"I"(shift),[shiftm1]"I"(shift-1) in gglMulx()
261 …: [a]"r"(a),[b]"r"(b),[norbits]"I"(~(shift)),[rshift]"I"(shift),[shiftm1] "I"(shift-1),[bit5]"I"(s… in gglMulx()
284 …: [a]"r"(a),[b]"r"(b),[norbits]"r"(~(shift)),[rshift] "r"(shift),[shiftm1]"r"(shift-1),[bit5] "r"(… in gglMulx()
292 inline GGLfixed gglMulAddx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) CONST;
293 inline GGLfixed gglMulAddx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) { in gglMulAddx() argument
[all …]
/system/core/libpixelflinger/tests/arch-arm64/assembler/
Dasm_test_jacket.S55 b.ne bt_aeq
57 b bt_end
63 b.ne bt_ane
65 b bt_end
71 b.ne bt_acs
73 b bt_end
79 b.ne bt_acc
81 b bt_end
87 b.ne bt_ami
89 b bt_end
[all …]
/system/extras/tests/timetest/
Dtimetest.c26 static struct timespec ts_sub(struct timespec a, struct timespec b) in ts_sub() argument
29 r.tv_sec = a.tv_sec - b.tv_sec; in ts_sub()
30 r.tv_nsec = a.tv_nsec - b.tv_nsec; in ts_sub()
42 static struct timespec ts_min(struct timespec a, struct timespec b) in ts_min() argument
44 if(a.tv_sec < b.tv_sec || (a.tv_sec == b.tv_sec && a.tv_nsec < b.tv_nsec)) in ts_min()
47 return b; in ts_min()
50 static struct timespec ts_max(struct timespec a, struct timespec b) in ts_max() argument
52 if(a.tv_sec < b.tv_sec || (a.tv_sec == b.tv_sec && a.tv_nsec < b.tv_nsec)) in ts_max()
53 return b; in ts_max()
/system/core/liblog/tests/
Dbenchmark_main.cpp80 bool ShouldRun(Benchmark* b, int argc, char* argv[]) { in ShouldRun() argument
92 int match = regexec(&re, b->Name(), 0, NULL, 0); in ShouldRun()
101 void BenchmarkRegister(Benchmark* b) { in BenchmarkRegister() argument
105 gBenchmarks->push_back(b); in BenchmarkRegister()
108 void RunRepeatedly(Benchmark* b, int iterations) { in RunRepeatedly() argument
112 b->RunFn(iterations); in RunRepeatedly()
121 void Run(Benchmark* b) { in Run() argument
125 RunRepeatedly(b, iterations); in Run()
137 RunRepeatedly(b, iterations); in Run()
150 snprintf(full_name, sizeof(full_name), "%s%s%s", b->Name(), in Run()
[all …]
/system/bt/stack/smp/
Dp_256_curvepara.c51 ec->b[7] = 0x5ac635d8; in p_256_init_curve()
52 ec->b[6] = 0xaa3a93e7; in p_256_init_curve()
53 ec->b[5] = 0xb3ebbd55; in p_256_init_curve()
54 ec->b[4] = 0x769886bc; in p_256_init_curve()
55 ec->b[3] = 0x651d06b0; in p_256_init_curve()
56 ec->b[2] = 0xcc53b0f6; in p_256_init_curve()
57 ec->b[1] = 0x3bce3c3e; in p_256_init_curve()
58 ec->b[0] = 0x27d2604b; in p_256_init_curve()
Dp_256_multprecision.h39 int multiprecision_compare(DWORD *a, DWORD *b, uint32_t keyLength);
47 DWORD multiprecision_add(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength); // c=a+b
48 void multiprecision_add_mod(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength);
49 DWORD multiprecision_sub(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength); // c=a-b
50 void multiprecision_sub_mod(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength);
54 void multiprecision_mult(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength); // c=a*b
55 void multiprecision_mersenns_mult_mod(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength);
58 void multiprecision_mult(DWORD *c, DWORD *a, DWORD *b, uint32_t keyLength);
/system/extras/libpagemap/
Dpm_memusage.c23 void pm_memusage_add(pm_memusage_t *a, pm_memusage_t *b) { in pm_memusage_add() argument
24 a->vss += b->vss; in pm_memusage_add()
25 a->rss += b->rss; in pm_memusage_add()
26 a->pss += b->pss; in pm_memusage_add()
27 a->uss += b->uss; in pm_memusage_add()
28 a->swap += b->swap; in pm_memusage_add()
/system/extras/showslab/
Dshowslab.c169 static struct slab_info *merge_objs(struct slab_info *a, struct slab_info *b) in merge_objs() argument
174 while (a && b) { in merge_objs()
175 if (sort_func(a, b)) { in merge_objs()
180 p->next = b; in merge_objs()
181 p = b; in merge_objs()
182 b = b->next; in merge_objs()
186 p->next = (a == NULL) ? b : a; in merge_objs()
195 struct slab_info *a, *b; in slabsort() local
201 b = list->next; in slabsort()
203 while (b && b->next) { in slabsort()
[all …]
/system/core/include/mincrypt/
Dp256.h71 p256_int* b);
78 const p256_int* b,
86 p256_int* b);
94 p256_int* b);
98 p256_digit p256_shl(const p256_int* a, int n, p256_int* b);
101 void p256_shr(const p256_int* a, int n, p256_int* b);
108 int p256_cmp(const p256_int* a, const p256_int *b);
112 int p256_sub(const p256_int* a, const p256_int* b, p256_int* c);
116 int p256_add(const p256_int* a, const p256_int* b, p256_int* c);
120 int p256_add_d(const p256_int* a, p256_digit b, p256_int* c);
/system/core/logwrapper/
Dlogwrap.c37 #define MIN(a,b) (((a)<(b))?(a):(b)) argument
309 int b = 0; // end index of unprocessed data in parent() local
358 sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b); in parent()
360 sz += b; in parent()
362 for (b = 0; b < sz; b++) { in parent()
363 if (buffer[b] == '\r') { in parent()
372 buffer[b] = '\n'; in parent()
374 buffer[b] = '\0'; in parent()
376 } else if (buffer[b] == '\n') { in parent()
377 buffer[b] = '\0'; in parent()
[all …]
/system/core/libmincrypt/
Dp256.c72 p256_digit b, in mulAdd() argument
80 carry += (p256_ddigit)P256_DIGIT(a, i) * b; in mulAdd()
146 const p256_int* b, in p256_modmul() argument
155 top = mulAdd(a, P256_DIGIT(b, i), 0, tmp + i); in p256_modmul()
194 p256_digit p256_shl(const p256_int* a, int n, p256_int* b) { in p256_shl() argument
202 P256_DIGIT(b, i) = accu; in p256_shl()
204 P256_DIGIT(b, i) = (P256_DIGIT(a, i) << n); in p256_shl()
211 void p256_shr(const p256_int* a, int n, p256_int* b) { in p256_shr() argument
218 P256_DIGIT(b, i) = accu; in p256_shr()
220 P256_DIGIT(b, i) = (P256_DIGIT(a, i) >> n); in p256_shr()
[all …]
/system/extras/f2fs_utils/
Df2fs_sparseblock.h28 #define ver_after(a, b) (typecheck(unsigned long long, a) && \ argument
29 typecheck(unsigned long long, b) && \
30 ((long long)((a) - (b)) > 0))
32 #define ver_equal(a, b) (typecheck(unsigned long long, a) && \ argument
33 typecheck(unsigned long long, b) && \
34 ((long long)((a) - (b)) == 0))
/system/core/libpixelflinger/
Dfixed.cpp248 static inline void swap(T& a, T& b) { in swap() argument
250 a = b; in swap()
251 b = t; in swap()
255 int32_t slow_muldiv(uint32_t a, uint32_t b, uint32_t c) in slow_muldiv() argument
259 uint64_t ab = uint64_t(a)*b; in slow_muldiv()
291 int32_t quick_muldiv(int32_t a, int32_t b, int32_t c) in quick_muldiv() argument
300 r += b; in quick_muldiv()
320 int32_t gglMulDivi(int32_t a, int32_t b, int32_t c) in gglMulDivi() argument
323 int32_t sign = a^b^c; in gglMulDivi()
326 if (b < 0) b = -b; in gglMulDivi()
[all …]
/system/core/libmincrypt/test/
Drsa_test.c756 int b; in parsehex() local
763 b = (*str - '0') << 4; break; in parsehex()
765 b = (*str - 'a' + 10) << 4; break; in parsehex()
767 b = (*str - 'A' + 10) << 4; break; in parsehex()
780 b |= *str - '0'; break; in parsehex()
782 b |= *str - 'a' + 10; break; in parsehex()
784 b |= *str - 'A' + 10; break; in parsehex()
790 *p++ = b; in parsehex()
Decdsa_test.c177 int b; in parsehex() local
184 b = (*str - '0') << 4; break; in parsehex()
186 b = (*str - 'a' + 10) << 4; break; in parsehex()
188 b = (*str - 'A' + 10) << 4; break; in parsehex()
201 b |= *str - '0'; break; in parsehex()
203 b |= *str - 'a' + 10; break; in parsehex()
205 b |= *str - 'A' + 10; break; in parsehex()
211 *p++ = b; in parsehex()
/system/core/libutils/
DLinearTransform.cpp214 T a, b; in reduce() local
221 b = *D; in reduce()
229 if (a < b) { in reduce()
231 a = b; in reduce()
232 b = tmp; in reduce()
237 const T remainder = a % b; in reduce()
239 *N /= b; in reduce()
240 *D /= b; in reduce()
245 a = b; in reduce()
246 b = remainder; in reduce()
/system/media/audio_utils/
Dfixedfft.cpp87 static inline int32_t mult(int32_t a, int32_t b) in mult() argument
90 int32_t t = b; in mult()
92 __asm__("smusdx %0, %0, %1" : "+r" (b) : "r" (a)); in mult()
93 __asm__("pkhtb %0, %0, %1, ASR #16" : "+r" (t) : "r" (b)); in mult()
96 return (((a >> 16) * (b >> 16) + (int16_t)a * (int16_t)b) & ~0xFFFF) | in mult()
97 ((((a >> 16) * (int16_t)b - (int16_t)a * (b >> 16)) >> 16) & 0xFFFF); in mult()
/system/bt/embdrv/sbc/decoder/include/
Doi_utils.h360 #define OI_MAX(a, b) (((a) < (b)) ? (b) : (a) ) argument
361 #define OI_MIN(a, b) (((a) > (b)) ? (b) : (a) ) argument
/system/extras/perfprofd/quipper/base/
Dport.h36 #define GG_VA_COPY(a, b) (va_copy(a, b)) argument
38 #define GG_VA_COPY(a, b) (a = b) argument
/system/core/libsparse/
Dbacked_block.c125 struct backed_block_list *b = calloc(sizeof(struct backed_block_list), 1); in backed_block_list_new() local
126 b->block_size = block_size; in backed_block_list_new()
127 return b; in backed_block_list_new()
192 struct backed_block *a, struct backed_block *b) in merge_bb() argument
197 if (!a || !b) { in merge_bb()
201 assert(a->block < b->block); in merge_bb()
204 if (a->type != b->type) { in merge_bb()
210 if (a->block + block_len != b->block) { in merge_bb()
219 if (a->fill.val != b->fill.val) { in merge_bb()
224 if (a->file.filename != b->file.filename || in merge_bb()
[all …]
/system/vold/
Dhash.h45 #define min(a,b) (((a)>(b))?(b):(a)) argument

1234567