/system/core/include/utils/ |
D | ByteOrder.h | 55 #define dtohl(x) (x) argument 56 #define dtohs(x) (x) argument 57 #define htodl(x) (x) argument 58 #define htods(x) (x) argument 62 #define dtohl(x) (android_swap_long(x)) argument 63 #define dtohs(x) (android_swap_short(x)) argument 64 #define htodl(x) (android_swap_long(x)) argument 65 #define htods(x) (android_swap_short(x)) argument 70 #define fromlel(x) (x) argument 71 #define fromles(x) (x) argument [all …]
|
/system/core/libnetutils/ |
D | dhcpmsg.c | 26 uint8_t *x; in init_dhcp_msg() local 41 x = msg->options; in init_dhcp_msg() 43 *x++ = OPT_COOKIE1; in init_dhcp_msg() 44 *x++ = OPT_COOKIE2; in init_dhcp_msg() 45 *x++ = OPT_COOKIE3; in init_dhcp_msg() 46 *x++ = OPT_COOKIE4; in init_dhcp_msg() 48 *x++ = OPT_MESSAGE_TYPE; in init_dhcp_msg() 49 *x++ = 1; in init_dhcp_msg() 50 *x++ = type; in init_dhcp_msg() 52 return x; in init_dhcp_msg() [all …]
|
D | dhcpclient.c | 168 uint8_t *x; in decode_dhcp_msg() local 182 x = msg->options + 4; in decode_dhcp_msg() 185 opt = *x++; in decode_dhcp_msg() 193 optlen = *x++; in decode_dhcp_msg() 202 memcpy(&mask, x, 4); in decode_dhcp_msg() 207 if (optlen >= 4) memcpy(&info->gateway, x, 4); in decode_dhcp_msg() 210 if (optlen >= 4) memcpy(&info->dns1, x + 0, 4); in decode_dhcp_msg() 211 if (optlen >= 8) memcpy(&info->dns2, x + 4, 4); in decode_dhcp_msg() 215 memcpy(&info->lease, x, 4); in decode_dhcp_msg() 220 if (optlen >= 4) memcpy(&info->serveraddr, x, 4); in decode_dhcp_msg() [all …]
|
/system/core/init/ |
D | parser.c | 8 #define RAW(x...) log_write(6, x) argument 70 char *x = state->ptr; in next_token() local 80 switch (*x) { in next_token() 82 state->ptr = x; in next_token() 85 x++; in next_token() 86 state->ptr = x; in next_token() 91 x++; in next_token() 94 while (*x && (*x != '\n')) x++; in next_token() 95 if (*x == '\n') { in next_token() 96 state->ptr = x+1; in next_token() [all …]
|
D | log.h | 22 #define ERROR(x...) KLOG_ERROR("init", x) argument 23 #define NOTICE(x...) KLOG_NOTICE("init", x) argument 24 #define INFO(x...) KLOG_INFO("init", x) argument
|
D | util.c | 225 char *x = strchr(mtdname + 1, '"'); in find_mtd_partitions() local 226 if (x) { in find_mtd_partitions() 227 *x = 0; in find_mtd_partitions() 413 char *x, *hw, *rev; in get_hardware_name() local 423 x = realloc(data, limit); in get_hardware_name() 424 if (!x) { in get_hardware_name() 428 data = x; in get_hardware_name() 449 x = strstr(hw, ": "); in get_hardware_name() 450 if (x) { in get_hardware_name() 451 x += 2; in get_hardware_name() [all …]
|
/system/core/libpixelflinger/codeflinger/ |
D | armreg.h | 70 #define CPU_ID_ISOLD(x) (((x) & 0x0000f000) == 0x00000000) argument 71 #define CPU_ID_IS7(x) (((x) & 0x0000f000) == 0x00007000) argument 72 #define CPU_ID_ISNEW(x) (!CPU_ID_ISOLD(x) && !CPU_ID_IS7(x)) argument 239 #define CPU_CT_ISIZE(x) ((x) & 0xfff) /* I$ info */ argument 240 #define CPU_CT_DSIZE(x) (((x) >> 12) & 0xfff) /* D$ info */ argument 242 #define CPU_CT_CTYPE(x) (((x) >> 25) & 0xf) /* cache type */ argument 250 #define CPU_CT_xSIZE_LEN(x) ((x) & 0x3) /* line size */ argument 252 #define CPU_CT_xSIZE_ASSOC(x) (((x) >> 3) & 0x7) /* associativity */ argument 253 #define CPU_CT_xSIZE_SIZE(x) (((x) >> 6) & 0x7) /* size */ argument
|
D | disassem.c | 282 #define insn_condition(x) arm32_insn_conditions[(x >> 28) & 0x0f] argument 283 #define insn_blktrans(x) insn_block_transfers[(x >> 23) & 3] argument 284 #define insn_stkblktrans(x) insn_stack_block_transfers[(3*((x >> 20)&1))^((x >> 23)&3)] argument 285 #define op2_shift(x) op_shifts[(x >> 5) & 3] argument 286 #define insn_fparnd(x) insn_fpa_rounding[(x >> 5) & 0x03] argument 287 #define insn_fpaprec(x) insn_fpa_precision[(((x >> 18) & 2)|(x >> 7)) & 1] argument 288 #define insn_fpaprect(x) insn_fpa_precision[(((x >> 21) & 2)|(x >> 15)) & 1] argument 289 #define insn_fpaimm(x) insn_fpaconstants[x & 0x07] argument
|
/system/core/include/cutils/ |
D | bitops.h | 49 #define BITS_TO_WORDS(x) (((x) + BITS_PER_WORD - 1) / BITS_PER_WORD) argument 50 #define BIT_IN_WORD(x) ((x) % BITS_PER_WORD) argument 51 #define BIT_WORD(x) ((x) / BITS_PER_WORD) argument 52 #define BIT_MASK(x) (1 << BIT_IN_WORD(x)) argument 103 static inline int popcount(unsigned int x) in popcount() argument 105 return __builtin_popcount(x); in popcount() 108 static inline int popcountl(unsigned long x) in popcountl() argument 110 return __builtin_popcountl(x); in popcountl() 113 static inline int popcountll(unsigned long long x) in popcountll() argument 115 return __builtin_popcountll(x); in popcountll()
|
D | klog.h | 41 #define KLOG_ERROR(tag,x...) klog_write(KLOG_ERROR_LEVEL, "<3>" tag ": " x) argument 42 #define KLOG_WARNING(tag,x...) klog_write(KLOG_WARNING_LEVEL, "<4>" tag ": " x) argument 43 #define KLOG_NOTICE(tag,x...) klog_write(KLOG_NOTICE_LEVEL, "<5>" tag ": " x) argument 44 #define KLOG_INFO(tag,x...) klog_write(KLOG_INFO_LEVEL, "<6>" tag ": " x) argument 45 #define KLOG_DEBUG(tag,x...) klog_write(KLOG_DEBUG_LEVEL, "<7>" tag ": " x) argument
|
/system/core/libpixelflinger/ |
D | fixed.cpp | 26 int32_t gglRecipQNormalized(int32_t x, int* exponent) in gglRecipQNormalized() argument 28 const int32_t s = x>>31; in gglRecipQNormalized() 29 uint32_t a = s ? -x : x; in gglRecipQNormalized() 60 int32_t gglRecipQ(GGLfixed x, int q) in gglRecipQ() argument 63 x = gglRecipQNormalized(x, &shift); in gglRecipQ() 66 x += 1L << (shift-1); // rounding in gglRecipQ() 67 x >>= shift; in gglRecipQ() 68 return x; in gglRecipQ() 89 GGLfixed gglSqrtRecipx(GGLfixed x) in gglSqrtRecipx() argument 91 if (x == 0) return FIXED_MAX; in gglSqrtRecipx() [all …]
|
/system/core/include/private/pixelflinger/ |
D | ggl_fixed.h | 86 GGLfixed gglPowx(GGLfixed x, GGLfixed y) CONST; 88 GGLfixed gglSqrtRecipx(GGLfixed x) CONST; 92 int32_t gglRecipQNormalized(int32_t x, int* exponent); 93 int32_t gglRecipQ(GGLfixed x, int q) CONST; 95 inline GGLfixed gglRecip(GGLfixed x) CONST; 96 inline GGLfixed gglRecip(GGLfixed x) { in gglRecip() argument 97 return gglRecipQ(x, 16); in gglRecip() 100 inline GGLfixed gglRecip28(GGLfixed x) CONST; 101 int32_t gglRecip28(GGLfixed x) { in gglRecip28() argument 102 return gglRecipQ(x, 28); in gglRecip28() [all …]
|
/system/core/libbacktrace/ |
D | GetPss.cpp | 28 #define _BITS(x, offset, bits) (((x) >> offset) & ((1LL << (bits)) - 1)) argument 30 #define PAGEMAP_PRESENT(x) (_BITS(x, 63, 1)) argument 31 #define PAGEMAP_SWAPPED(x) (_BITS(x, 62, 1)) argument 32 #define PAGEMAP_SHIFT(x) (_BITS(x, 55, 6)) argument 33 #define PAGEMAP_PFN(x) (_BITS(x, 0, 55)) argument 34 #define PAGEMAP_SWAP_OFFSET(x) (_BITS(x, 5, 50)) argument 35 #define PAGEMAP_SWAP_TYPE(x) (_BITS(x, 0, 5)) argument
|
/system/core/adb/ |
D | file_sync_service.h | 21 static inline unsigned __swap_uint32(unsigned x) in __swap_uint32() argument 23 return (((x) & 0xFF000000) >> 24) in __swap_uint32() 24 | (((x) & 0x00FF0000) >> 8) in __swap_uint32() 25 | (((x) & 0x0000FF00) << 8) in __swap_uint32() 26 | (((x) & 0x000000FF) << 24); in __swap_uint32() 28 #define htoll(x) __swap_uint32(x) argument 29 #define ltohl(x) __swap_uint32(x) argument 32 #define htoll(x) (x) argument 33 #define ltohl(x) (x) argument
|
/system/extras/libpagemap/include/pagemap/ |
D | pagemap.h | 159 #define _BITS(x, offset, bits) (((x) >> offset) & ((1LL << (bits)) - 1)) argument 161 #define PM_PAGEMAP_PRESENT(x) (_BITS(x, 63, 1)) argument 162 #define PM_PAGEMAP_SWAPPED(x) (_BITS(x, 62, 1)) argument 163 #define PM_PAGEMAP_SHIFT(x) (_BITS(x, 55, 6)) argument 164 #define PM_PAGEMAP_PFN(x) (_BITS(x, 0, 55)) argument 165 #define PM_PAGEMAP_SWAP_OFFSET(x) (_BITS(x, 5, 50)) argument 166 #define PM_PAGEMAP_SWAP_TYPE(x) (_BITS(x, 0, 5)) argument
|
/system/core/toolbox/ |
D | r.c | 80 uint32_t* x = (uint32_t*) (((uintptr_t) page) + (addr & 4095)); in r_main() local 81 if(set) *x = value; in r_main() 82 fprintf(stderr,"%08"PRIxPTR": %08x\n", addr, *x); in r_main() 86 uint16_t* x = (uint16_t*) (((uintptr_t) page) + (addr & 4095)); in r_main() local 87 if(set) *x = value; in r_main() 88 fprintf(stderr,"%08"PRIxPTR": %04x\n", addr, *x); in r_main() 92 uint8_t* x = (uint8_t*) (((uintptr_t) page) + (addr & 4095)); in r_main() local 93 if(set) *x = value; in r_main() 94 fprintf(stderr,"%08"PRIxPTR": %02x\n", addr, *x); in r_main()
|
D | newfs_msdos.c | 88 #define mk1(p, x) \ argument 89 (p) = (u_int8_t)(x) 91 #define mk2(p, x) \ argument 92 (p)[0] = (u_int8_t)(x), \ 93 (p)[1] = (u_int8_t)((x) >> 010) 95 #define mk4(p, x) \ argument 96 (p)[0] = (u_int8_t)(x), \ 97 (p)[1] = (u_int8_t)((x) >> 010), \ 98 (p)[2] = (u_int8_t)((x) >> 020), \ 99 (p)[3] = (u_int8_t)((x) >> 030) [all …]
|
/system/media/audio_utils/ |
D | fixedfft.cpp | 128 int32_t x = half(v[i]); in fixed_fft() local 130 v[i] = x + y; in fixed_fft() 131 v[i + p] = x - y; in fixed_fft() 139 int32_t x = half(v[i]); in fixed_fft() local 141 v[i] = x - y; in fixed_fft() 142 v[i + p] = x + y; in fixed_fft() 158 int32_t x = half(v[i]); in fixed_fft_real() local 160 int32_t y = z - (x ^ 0xFFFF); in fixed_fft_real() 161 x = half(x + (z ^ 0xFFFF)); in fixed_fft_real() 163 v[i] = x - y; in fixed_fft_real() [all …]
|
/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
D | queue.c | 60 enqueue(struct str *x) in enqueue() argument 65 item->data.dat = grep_malloc(sizeof(char) * x->len); in enqueue() 66 item->data.len = x->len; in enqueue() 67 item->data.line_no = x->line_no; in enqueue() 68 item->data.off = x->off; in enqueue() 69 memcpy(item->data.dat, x->dat, x->len); in enqueue() 70 item->data.file = x->file; in enqueue()
|
/system/vold/ |
D | hash.h | 62 cshift (u_int32_t x, unsigned int n) in cshift() argument 64 x = CRAYFIX(x); in cshift() 65 return CRAYFIX((x << n) | (x >> (32 - n))); in cshift()
|
/system/core/libsparse/ |
D | sparse_defs.h | 42 #define DIV_ROUND_UP(x, y) (((x) + (y) - 1)/(y)) argument 43 #define ALIGN(x, y) ((y) * DIV_ROUND_UP((x), (y))) argument 44 #define ALIGN_DOWN(x, y) ((y) * ((x) / (y))) argument
|
/system/core/libpixelflinger/tests/gglmul/ |
D | gglmul_test.cpp | 102 GGLfixed x; member 130 test->x, test->y, test->shift); in gglMulx_test() 131 actual = gglMulx(test->x, test->y, test->shift); in gglMulx_test() 133 ((int64_t)test->x * test->y + (1 << (test->shift-1))) >> test->shift; in gglMulx_test() 144 GGLfixed x; member 173 test->x, test->y, test->shift, test->a); in gglMulAddx_test() 174 actual = gglMulAddx(test->x, test->y,test->a, test->shift); in gglMulAddx_test() 175 expected = (((int64_t)test->x * test->y) >> test->shift) + test->a; in gglMulAddx_test() 187 GGLfixed x; member 216 test->x, test->y, test->shift, test->a); in gglMulSubx_test() [all …]
|
/system/extras/ext4_utils/ |
D | ext4_utils.h | 64 #define DIV_ROUND_UP(x, y) (((x) + (y) - 1)/(y)) argument 65 #define EXT4_ALIGN(x, y) ((y) * DIV_ROUND_UP((x), (y))) argument 68 #define cpu_to_le32(x) (x) argument 69 #define cpu_to_le16(x) (x) argument 70 #define le32_to_cpu(x) (x) argument 71 #define le16_to_cpu(x) (x) argument
|
/system/extras/tests/bionic/libc/common/ |
D | test_executable_destructor.c | 39 int x = 0; variable 47 x = 1; in on_load() 54 if (x == 1) in on_exit() 64 if (x != 1) { in main() 101 x = 2; in main()
|
/system/core/include/private/ |
D | android_filesystem_capability.h | 109 #define cap_valid(x) ((x) >= 0 && (x) <= CAP_LAST_CAP) argument 110 #define CAP_TO_INDEX(x) ((x) >> 5) argument 111 #define CAP_TO_MASK(x) (1 << ((x) & 31)) argument
|