/system/core/libacc/tests/data/ |
D | flops.c | 42 void comparisonTestdd(double a, double b) { in comparisonTestdd() argument 44 a, b, a < b, a <= b, a == b, a >= b, a > b, a != b); in comparisonTestdd() 55 void comparisonTestdf(double a, float b) { in comparisonTestdf() argument 57 a, b, a < b, a <= b, a == b, a >= b, a > b, a != b); in comparisonTestdf() 67 void comparisonTestff(float a, float b) { in comparisonTestff() argument 69 a, b, a < b, a <= b, a == b, a >= b, a > b, a != b); in comparisonTestff() 79 void comparisonTestid(int a, double b) { in comparisonTestid() argument 81 a, b, a < b, a <= b, a == b, a >= b, a > b, a != b); in comparisonTestid() 90 void comparisonTestdi(double a, int b) { in comparisonTestdi() argument 92 a, b, a < b, a <= b, a == b, a >= b, a > b, a != b); in comparisonTestdi() [all …]
|
D | comma.c | 17 int b = 0; in testComma() local 19 while(b++,a--) {} in testComma() 20 printf("while: b = %d\n", b); in testComma() 21 b = 0; in testComma() 22 for(b++,a = 0;b++, a < 10; b++, a++) {} in testComma() 23 printf("for: b = %d\n", b); in testComma() 24 b = testReturn(); in testComma() 25 printf("return: %d\n", b); in testComma() 26 b = testArg((a,12)); in testComma() 27 printf("arg: %d\n", b); in testComma()
|
D | structs.c | 4 int b; member 19 struct b; 22 struct b {int a; int b; }; struct 28 struct c {struct b g; }; 33 struct a {int a[10]; char c;} a, b; in testCopying() local 35 b.c = 38; in testCopying() 36 b = a; in testCopying() 37 printf("testCopying: %d == %d\n", a.c, b.c); in testCopying() 49 void add(struct v* result, struct v* a, struct v* b) { in add() argument 50 result->x = a->x + b->x; in add() [all …]
|
D | expr-ansi.c | 3 void testInc() { int a, b; a = 3; b = a++; printf("3++ = %d %d\n", b, a); } in testInc() local 4 void testDec() { int a, b; a = 3; b = a--; printf("3-- = %d %d\n", b, a); } in testDec() local 21 void testAssignment(){ int a, b; a = 3; b = a; printf("b == %d\n", b); } in testAssignment() local 25 void testPointerIndirection(){ int a, b; a = &b; b = 17; printf("*%d = %d =?= %d\n", a, * (int*) a… in testPointerIndirection() local 31 int main(int a, char** b) { in main() argument
|
D | expr.c | 3 testInc() { int a, b; a = 3; b = a++; printf("3++ = %d %d\n", b, a); } in testInc() local 4 testDec() { int a, b; a = 3; b = a--; printf("3-- = %d %d\n", b, a); } in testDec() local 21 testAssignment(){ int a, b; a = 3; b = a; printf("b == %d\n", b); } in testAssignment() local 25 testPointerIndirection(){ int a, b; a = &b; b = 17; printf("*%d = %d =?= %d\n", a, * (int*) a, b);… in testPointerIndirection() local 31 main(a,b) { in main() argument
|
D | otcc-noinclude.c | 8 #define b == macro 26 a h b 2){ 34 J isalnum(h)|h b 95; 37 a h b 92){ 39 a h b 110)h=10; 44 p isspace(h)|h b 35){ 45 a h b 35){ 48 a d b 536){ 83 a k d b 1){ 94 a d b 39){ [all …]
|
D | otcc.c | 8 #define b == macro 26 a h b 2){ 34 J isalnum(h)|h b 95; 37 a h b 92){ 39 a h b 110)h=10; 44 p isspace(h)|h b 35){ 45 a h b 35){ 48 a d b 536){ 83 a k d b 1){ 94 a d b 39){ [all …]
|
D | film.c | 37 int b = test2(x,y); in main() local 38 if (a != b) { in main() 39 printf("Results differ: OR x=%d y=%d a=%d b=%d\n", x, y, a, b); in main() 43 b = test4(x,y); in main() 44 if (a != b) { in main() 45 printf("Results differ: AND x=%d y=%d a=%d b=%d\n", x, y, a, b); in main()
|
D | casts.c | 31 int b = * (char*) (px + 1); in test4() local 34 printf("Testing reading (char*): 0x%02x 0x%02x 0x%02x 0x%02x\n", a, b, c, d); in test4() 47 int f(int b) { in f() argument 48 printf("f(%d)\n", b); in f() 49 return 7 * b; in f()
|
D | short.c | 3 short* b = &a; in main() local 4 *b = *b - 5; in main()
|
/system/core/logwrapper/ |
D | logwrapper.c | 52 int b = 0; // end index of unprocessed data in parent() local 54 while ((sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b)) > 0) { in parent() 56 sz += b; in parent() 58 for (b = 0; b < sz; b++) { in parent() 59 if (buffer[b] == '\r') { in parent() 60 buffer[b] = '\0'; in parent() 61 } else if (buffer[b] == '\n') { in parent() 62 buffer[b] = '\0'; in parent() 64 a = b + 1; in parent() 68 if (a == 0 && b == sizeof(buffer) - 1) { in parent() [all …]
|
/system/core/vold/ |
D | logwrapper.c | 34 int b = 0; // end index of unprocessed data in parent() local 36 while ((sz = read(parent_read, &buffer[b], sizeof(buffer) - 1 - b)) > 0) { in parent() 38 sz += b; in parent() 40 for (b = 0; b < sz; b++) { in parent() 41 if (buffer[b] == '\r') { in parent() 42 buffer[b] = '\0'; in parent() 43 } else if (buffer[b] == '\n') { in parent() 44 buffer[b] = '\0'; in parent() 47 a = b + 1; in parent() 51 if (a == 0 && b == sizeof(buffer) - 1) { in parent() [all …]
|
/system/core/sh/ |
D | arith_lex.c | 282 void yy_delete_buffer (YY_BUFFER_STATE b ); 283 void yy_flush_buffer (YY_BUFFER_STATE b ); 289 static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); 1107 YY_BUFFER_STATE b = YY_CURRENT_BUFFER; in yy_get_next_buffer() local 1110 (int) ((yy_c_buf_p) - b->yy_ch_buf); in yy_get_next_buffer() 1112 if ( b->yy_is_our_buffer ) in yy_get_next_buffer() 1114 int new_size = b->yy_buf_size * 2; in yy_get_next_buffer() 1117 b->yy_buf_size += b->yy_buf_size / 8; in yy_get_next_buffer() 1119 b->yy_buf_size *= 2; in yy_get_next_buffer() 1121 b->yy_ch_buf = (char *) in yy_get_next_buffer() [all …]
|
/system/extras/tests/timetest/ |
D | timetest.c | 26 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/libcutils/ |
D | atomic-android-armv6.S | 65 b 1b 81 b 1b 98 b 1b 114 b 1b 131 b 1b
|
/system/core/toolbox/ |
D | netstat.c | 39 unsigned char b[4]; member 64 addr.b[0], addr.b[1], addr.b[2], addr.b[3], port); in addr2str() 67 addr.b[0], addr.b[1], addr.b[2], addr.b[3]); in addr2str()
|
/system/extras/showslab/ |
D | showslab.c | 169 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/bluetooth/brfpatch/ |
D | brfpatch.c | 66 char *b = *buf; in advance() local 67 while (*b && !isspace(*b)) in advance() 68 b++; in advance() 69 while (*b && isspace(*b)) in advance() 70 b++; in advance() 71 *buf = b; in advance() 72 if (!(*b)) in advance()
|
/system/extras/libpagemap/ |
D | pm_memusage.c | 23 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()
|
/system/core/libpixelflinger/ |
D | fixed.cpp | 247 static inline void swap(T& a, T& b) { in swap() argument 249 a = b; in swap() 250 b = t; in swap() 254 int32_t slow_muldiv(uint32_t a, uint32_t b, uint32_t c) in slow_muldiv() argument 258 uint64_t ab = uint64_t(a)*b; in slow_muldiv() 290 int32_t quick_muldiv(int32_t a, int32_t b, int32_t c) in quick_muldiv() argument 299 r += b; in quick_muldiv() 319 int32_t gglMulDivi(int32_t a, int32_t b, int32_t c) in gglMulDivi() argument 322 int32_t sign = a^b^c; in gglMulDivi() 325 if (b < 0) b = -b; in gglMulDivi() [all …]
|
/system/core/include/private/pixelflinger/ |
D | ggl_fixed.h | 90 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 198 return GGLfixed((int64_t(a)*b + (1<<(shift-1)))>>shift); in gglMulx() 200 inline GGLfixed gglMulAddx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) CONST; 201 inline GGLfixed gglMulAddx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) { in gglMulAddx() argument 202 return GGLfixed((int64_t(a)*b)>>shift) + c; in gglMulAddx() 204 inline GGLfixed gglMulSubx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) CONST; 205 inline GGLfixed gglMulSubx(GGLfixed a, GGLfixed b, GGLfixed c, int shift) { in gglMulSubx() argument 206 return GGLfixed((int64_t(a)*b)>>shift) - c; in gglMulSubx() [all …]
|
/system/wlan/ti/wilink_6_1/platforms/os/common/inc/ |
D | cli_cu_common.h | 96 # define min(a, b) (((a)<(b)) ? (a) : (b)) argument 100 # define max(a, b) (((a)>(b)) ? (a) : (b)) argument
|
/system/wlan/ti/sta_dk_4_0_4_32/pform/common/inc/ |
D | cli_cu_common.h | 93 # define min(a, b) (((a)<(b)) ? (a) : (b)) argument 97 # define max(a, b) (((a)>(b)) ? (a) : (b)) argument
|
/system/core/libacc/tests/ |
D | test.py | 94 def compare(a, b): argument 95 if a != b: 96 firstDiff = firstDifference(a, b) 98 firstDiff, a[0:firstDiff], safeAccess(a, firstDiff), safeAccess(b, firstDiff)) 106 def firstDifference(a, b): argument 107 commonLen = min(len(a), len(b)) 109 if a[i] != b[i]: 138 def matchCommon(a, b): argument 141 while len(a) > 0 and len(b) > 0 and a[0] == b[0]: 143 b = b[1:] [all …]
|
/system/core/include/ctest/ |
D | ctest.h | 49 #define assertSame(a, b) assertTrueWithSource(a == b, __FILE__, __LINE__, "Expected same value."); argument 54 #define assertNotSame(a, b) assertTrueWithSource(a != b, __FILE__, __LINE__,\ argument
|