/external/qemu/ |
D | host-utils.h | 52 static inline int clz32(uint32_t val) in clz32() argument 55 if (val) in clz32() 56 return __builtin_clz(val); in clz32() 62 if (!(val & 0xFFFF0000U)) { in clz32() 64 val <<= 16; in clz32() 66 if (!(val & 0xFF000000U)) { in clz32() 68 val <<= 8; in clz32() 70 if (!(val & 0xF0000000U)) { in clz32() 72 val <<= 4; in clz32() 74 if (!(val & 0xC0000000U)) { in clz32() [all …]
|
D | ioport.c | 195 void cpu_outb(pio_addr_t addr, uint8_t val) in cpu_outb() argument 197 LOG_IOPORT("outb: %04"FMT_pioaddr" %02"PRIx8"\n", addr, val); in cpu_outb() 198 ioport_write(0, addr, val); in cpu_outb() 201 void cpu_outw(pio_addr_t addr, uint16_t val) in cpu_outw() argument 203 LOG_IOPORT("outw: %04"FMT_pioaddr" %04"PRIx16"\n", addr, val); in cpu_outw() 204 ioport_write(1, addr, val); in cpu_outw() 207 void cpu_outl(pio_addr_t addr, uint32_t val) in cpu_outl() argument 209 LOG_IOPORT("outl: %04"FMT_pioaddr" %08"PRIx32"\n", addr, val); in cpu_outl() 210 ioport_write(2, addr, val); in cpu_outl() 215 uint8_t val; in cpu_inb() local [all …]
|
/external/dbus/dbus/ |
D | dbus-marshal-basic.h | 44 #define DBUS_UINT16_SWAP_LE_BE_CONSTANT(val) ((dbus_uint16_t) ( \ argument 45 (dbus_uint16_t) ((dbus_uint16_t) (val) >> 8) | \ 46 (dbus_uint16_t) ((dbus_uint16_t) (val) << 8))) 48 #define DBUS_UINT32_SWAP_LE_BE_CONSTANT(val) ((dbus_uint32_t) ( \ argument 49 (((dbus_uint32_t) (val) & (dbus_uint32_t) 0x000000ffU) << 24) | \ 50 (((dbus_uint32_t) (val) & (dbus_uint32_t) 0x0000ff00U) << 8) | \ 51 (((dbus_uint32_t) (val) & (dbus_uint32_t) 0x00ff0000U) >> 8) | \ 52 (((dbus_uint32_t) (val) & (dbus_uint32_t) 0xff000000U) >> 24))) 56 #define DBUS_UINT64_SWAP_LE_BE_CONSTANT(val) ((dbus_uint64_t) ( \ argument 57 (((dbus_uint64_t) (val) & \ [all …]
|
/external/bluetooth/glib/glib/ |
D | gtypes.h | 129 #define GUINT16_SWAP_LE_BE_CONSTANT(val) ((guint16) ( \ argument 130 (guint16) ((guint16) (val) >> 8) | \ 131 (guint16) ((guint16) (val) << 8))) 133 #define GUINT32_SWAP_LE_BE_CONSTANT(val) ((guint32) ( \ argument 134 (((guint32) (val) & (guint32) 0x000000ffU) << 24) | \ 135 (((guint32) (val) & (guint32) 0x0000ff00U) << 8) | \ 136 (((guint32) (val) & (guint32) 0x00ff0000U) >> 8) | \ 137 (((guint32) (val) & (guint32) 0xff000000U) >> 24))) 139 #define GUINT64_SWAP_LE_BE_CONSTANT(val) ((guint64) ( \ argument 140 (((guint64) (val) & \ [all …]
|
D | gatomic.c | 40 gint val) in g_atomic_int_exchange_and_add() argument 46 : "0" (val), "m" (*atomic)); in g_atomic_int_exchange_and_add() 52 gint val) in g_atomic_int_add() argument 56 : "ir" (val), "m" (*atomic)); in g_atomic_int_add() 224 gint val) in g_atomic_int_exchange_and_add() argument 230 : "0" (val), "m" (*atomic)); in g_atomic_int_exchange_and_add() 236 gint val) in g_atomic_int_add() argument 240 : "ir" (val), "m" (*atomic)); in g_atomic_int_add() 281 gint val) in g_atomic_int_exchange_and_add() argument 290 : "b" (atomic), "r" (val), "m" (*atomic) in g_atomic_int_exchange_and_add() [all …]
|
/external/libvpx/vpx_ports/ |
D | mem_ops.h | 65 unsigned MEM_VALUE_T val; in mem_get_be16() local 68 val = mem[0] << 8; in mem_get_be16() 69 val |= mem[1]; in mem_get_be16() 70 return val; in mem_get_be16() 77 unsigned MEM_VALUE_T val; in mem_get_be24() local 80 val = mem[0] << 16; in mem_get_be24() 81 val |= mem[1] << 8; in mem_get_be24() 82 val |= mem[2]; in mem_get_be24() 83 return val; in mem_get_be24() 90 unsigned MEM_VALUE_T val; in mem_get_be32() local [all …]
|
D | mem_ops_aligned.h | 26 #define swap_endian_16(val,raw) do {\ argument 27 val = ((raw>>8) & 0x00ff) \ 30 #define swap_endian_32(val,raw) do {\ argument 31 val = ((raw>>24) & 0x000000ff) \ 36 #define swap_endian_16_se(val,raw) do {\ argument 37 swap_endian_16(val,raw);\ 38 val = ((val << 16) >> 16);\ 40 #define swap_endian_32_se(val,raw) swap_endian_32(val,raw) argument 57 unsigned MEM_VALUE_T val, raw = *mem;\ 58 swap_endian_##sz(val,raw);\ [all …]
|
/external/qemu/elff/ |
D | elf_file.h | 145 uint8_t pull_val(const uint8_t* val) const { in pull_val() argument 146 return *val; in pull_val() 148 uint8_t pull_val(const uint8_t& val) const { in pull_val() argument 149 return val; in pull_val() 151 int8_t pull_val(const int8_t* val) const { in pull_val() argument 152 return *val; in pull_val() 154 int8_t pull_val(const int8_t& val) const { in pull_val() argument 155 return val; in pull_val() 165 uint16_t pull_val(const uint16_t* val) const { in pull_val() argument 167 return *val; in pull_val() [all …]
|
/external/bluetooth/glib/ |
D | glibconfig.h | 55 #define G_GINT64_CONSTANT(val) (val##L) argument 56 #define G_GUINT64_CONSTANT(val) (val##UL) argument 81 #define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val) argument 184 #define GINT16_TO_LE(val) ((gint16) (val)) argument 185 #define GUINT16_TO_LE(val) ((guint16) (val)) argument 186 #define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val)) argument 187 #define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val)) argument 188 #define GINT32_TO_LE(val) ((gint32) (val)) argument 189 #define GUINT32_TO_LE(val) ((guint32) (val)) argument 190 #define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val)) argument [all …]
|
D | glibconfig.h.win32.in | 54 #define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL)) 56 #define G_GINT64_CONSTANT(val) (val##i64) 59 #define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL)) 61 #define G_GUINT64_CONSTANT(val) (val##Ui64) 213 #define GINT16_TO_LE(val) ((gint16) (val)) 214 #define GUINT16_TO_LE(val) ((guint16) (val)) 215 #define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val)) 216 #define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val)) 217 #define GINT32_TO_LE(val) ((gint32) (val)) 218 #define GUINT32_TO_LE(val) ((guint32) (val)) [all …]
|
/external/openssl/include/openssl/ |
D | safestack.h | 146 #define SKM_sk_set(type, st,i,val) \ argument 147 sk_set(CHECKED_STACK_OF(type, st), i, CHECKED_PTR_OF(type, val)) 150 #define SKM_sk_push(type, st, val) \ argument 151 sk_push(CHECKED_STACK_OF(type, st), CHECKED_PTR_OF(type, val)) 152 #define SKM_sk_unshift(type, st, val) \ argument 153 sk_unshift(CHECKED_STACK_OF(type, st), CHECKED_PTR_OF(type, val)) 154 #define SKM_sk_find(type, st, val) \ argument 155 sk_find(CHECKED_STACK_OF(type, st), CHECKED_PTR_OF(type, val)) 156 #define SKM_sk_find_ex(type, st, val) \ argument 158 CHECKED_PTR_OF(type, val)) [all …]
|
/external/openssl/crypto/stack/ |
D | safestack.h | 146 #define SKM_sk_set(type, st,i,val) \ argument 147 sk_set(CHECKED_STACK_OF(type, st), i, CHECKED_PTR_OF(type, val)) 150 #define SKM_sk_push(type, st, val) \ argument 151 sk_push(CHECKED_STACK_OF(type, st), CHECKED_PTR_OF(type, val)) 152 #define SKM_sk_unshift(type, st, val) \ argument 153 sk_unshift(CHECKED_STACK_OF(type, st), CHECKED_PTR_OF(type, val)) 154 #define SKM_sk_find(type, st, val) \ argument 155 sk_find(CHECKED_STACK_OF(type, st), CHECKED_PTR_OF(type, val)) 156 #define SKM_sk_find_ex(type, st, val) \ argument 158 CHECKED_PTR_OF(type, val)) [all …]
|
/external/dbus/tools/ |
D | dbus-print-message.c | 66 char *val; in print_iter() local 67 dbus_message_iter_get_basic (iter, &val); in print_iter() 70 printf ("%s", val); in print_iter() 78 char *val; in print_iter() local 79 dbus_message_iter_get_basic (iter, &val); in print_iter() 82 printf ("%s", val); in print_iter() 90 char *val; in print_iter() local 91 dbus_message_iter_get_basic (iter, &val); in print_iter() 94 printf ("%s", val); in print_iter() 102 dbus_int16_t val; in print_iter() local [all …]
|
/external/qemu/hw/ |
D | pci_host.h | 43 static void pci_host_data_writeb(void* opaque, pci_addr_t addr, uint32_t val) in pci_host_data_writeb() argument 48 (target_phys_addr_t)addr, val); in pci_host_data_writeb() 50 pci_data_write(s->bus, s->config_reg | (addr & 3), val, 1); in pci_host_data_writeb() 53 static void pci_host_data_writew(void* opaque, pci_addr_t addr, uint32_t val) in pci_host_data_writew() argument 57 val = bswap16(val); in pci_host_data_writew() 60 (target_phys_addr_t)addr, val); in pci_host_data_writew() 62 pci_data_write(s->bus, s->config_reg | (addr & 3), val, 2); in pci_host_data_writew() 65 static void pci_host_data_writel(void* opaque, pci_addr_t addr, uint32_t val) in pci_host_data_writel() argument 69 val = bswap32(val); in pci_host_data_writel() 72 (target_phys_addr_t)addr, val); in pci_host_data_writel() [all …]
|
D | armv7m_nvic.c | 122 uint32_t val; in nvic_readl() local 129 val = s->systick.control; in nvic_readl() 131 return val; in nvic_readl() 142 val = ((s->systick.tick - (t + 1)) / systick_scale(s)) + 1; in nvic_readl() 146 if (val > s->systick.reload) in nvic_readl() 147 val = 0; in nvic_readl() 148 return val; in nvic_readl() 156 val = s->gic.running_irq[0]; in nvic_readl() 157 if (val == 1023) { in nvic_readl() 158 val = 0; in nvic_readl() [all …]
|
/external/bluetooth/bluez/src/ |
D | sdp-xml.c | 78 appender(data, value->val.uint8 ? "true" : "false"); in convert_raw_data_to_xml() 85 snprintf(buf, STRBUFSIZE - 1, "0x%02x", value->val.uint8); in convert_raw_data_to_xml() 93 snprintf(buf, STRBUFSIZE - 1, "0x%04x", value->val.uint16); in convert_raw_data_to_xml() 101 snprintf(buf, STRBUFSIZE - 1, "0x%08x", value->val.uint32); in convert_raw_data_to_xml() 109 snprintf(buf, STRBUFSIZE - 1, "0x%016jx", value->val.uint64); in convert_raw_data_to_xml() 120 (unsigned char) value->val.uint128.data[i]); in convert_raw_data_to_xml() 130 snprintf(buf, STRBUFSIZE - 1, "%d", value->val.int8); in convert_raw_data_to_xml() 138 snprintf(buf, STRBUFSIZE - 1, "%d", value->val.int16); in convert_raw_data_to_xml() 146 snprintf(buf, STRBUFSIZE - 1, "%d", value->val.int32); in convert_raw_data_to_xml() 154 snprintf(buf, STRBUFSIZE - 1, "%jd", value->val.int64); in convert_raw_data_to_xml() [all …]
|
/external/kernel-headers/original/asm-x86/ |
D | msr.h | 19 unsigned long long val; in native_read_msr() local 21 asm volatile("rdmsr" : "=A" (val) : "c" (msr)); in native_read_msr() 22 return val; in native_read_msr() 28 unsigned long long val; in native_read_msr_safe() local 39 : "=r" (*err), "=A" (val) in native_read_msr_safe() 42 return val; in native_read_msr_safe() 45 static inline void native_write_msr(unsigned int msr, unsigned long long val) in native_write_msr() argument 47 asm volatile("wrmsr" : : "c" (msr), "A"(val)); in native_write_msr() 51 unsigned long long val) in native_write_msr_safe() argument 64 : "c" (msr), "0" ((u32)val), "d" ((u32)(val>>32)), in native_write_msr_safe() [all …]
|
D | system_32.h | 100 unsigned long val; in native_read_cr0() local 101 asm volatile("movl %%cr0,%0\n\t" :"=r" (val)); in native_read_cr0() 102 return val; in native_read_cr0() 105 static inline void native_write_cr0(unsigned long val) in native_write_cr0() argument 107 asm volatile("movl %0,%%cr0": :"r" (val)); in native_write_cr0() 112 unsigned long val; in native_read_cr2() local 113 asm volatile("movl %%cr2,%0\n\t" :"=r" (val)); in native_read_cr2() 114 return val; in native_read_cr2() 117 static inline void native_write_cr2(unsigned long val) in native_write_cr2() argument 119 asm volatile("movl %0,%%cr2": :"r" (val)); in native_write_cr2() [all …]
|
/external/blktrace/btt/ |
D | args.c | 38 .val = 'a' 44 .val = 'A' 50 .val = 'B' 56 .val = 'd' 62 .val = 'D' 68 .val = 'e' 74 .val = 'h' 80 .val = 'i' 86 .val = 'I' 92 .val = 'l' [all …]
|
/external/jpeg/ |
D | rdswitch.c | 43 register long val; in read_text_integer() local 59 val = ch - '0'; in read_text_integer() 63 val *= 10; in read_text_integer() 64 val += ch - '0'; in read_text_integer() 66 *result = val; in read_text_integer() 87 long val; in read_quant_tables() local 96 while (read_text_integer(fp, &val, &termchar)) { /* read 1st element of table */ in read_quant_tables() 102 table[0] = (unsigned int) val; in read_quant_tables() 104 if (! read_text_integer(fp, &val, &termchar)) { in read_quant_tables() 109 table[i] = (unsigned int) val; in read_quant_tables() [all …]
|
/external/libgsm/src/ |
D | gsm_option.c | 14 int gsm_option P3((r, opt, val), gsm r, int opt, int * val) 22 if (val) r->ltp_cut = *val; 29 if (val) r->verbose = *val; 37 if (val) r->fast = !!*val; 45 if (val) r->frame_chain = *val; 53 if (val) r->frame_index = *val; 61 if (val) r->wav_fmt = !!*val;
|
/external/libxml2/ |
D | xmlschemastypes.c | 244 ret->val = xmlSchemaNewValue(XML_SCHEMAS_NNINTEGER); in xmlSchemaNewMinLengthFacet() 245 ret->val->value.decimal.lo = value; in xmlSchemaNewMinLengthFacet() 882 xmlSchemaValueGetAsString(xmlSchemaValPtr val) in xmlSchemaValueGetAsString() argument 884 if (val == NULL) in xmlSchemaValueGetAsString() 886 switch (val->type) { in xmlSchemaValueGetAsString() 899 return (BAD_CAST val->value.str); in xmlSchemaValueGetAsString() 915 xmlSchemaValueGetAsBoolean(xmlSchemaValPtr val) in xmlSchemaValueGetAsBoolean() argument 917 if ((val == NULL) || (val->type != XML_SCHEMAS_BOOLEAN)) in xmlSchemaValueGetAsBoolean() 919 return (val->value.b); in xmlSchemaValueGetAsBoolean() 939 xmlSchemaValPtr val; in xmlSchemaNewStringValue() local [all …]
|
/external/astl/src/ |
D | ostream.cpp | 53 ostream& ostream::operator<<(bool val) { in operator <<() argument 55 return put(val?'1':'0'); in operator <<() 62 ostream& ostream::operator<<(int val) { in operator <<() argument 65 int size = snprintf(buf, kNumSize, fmt, val); in operator <<() 69 ostream& ostream::operator<<(unsigned int val) { in operator <<() argument 72 int size = snprintf(buf, kNumSize, fmt, val); in operator <<() 76 ostream& ostream::operator<<(long int val) { in operator <<() argument 79 int size = snprintf(buf, kNumSize, fmt, val); in operator <<() 83 ostream& ostream::operator<<(unsigned long int val) { in operator <<() argument 86 int size = snprintf(buf, kNumSize, fmt, val); in operator <<() [all …]
|
/external/skia/src/core/ |
D | SkCordic.cpp | 215 float val; local 240 for (val = -1; val <= 1; val += .1f) { 241 SkFixed f_val = (int) (val * 65536.0f); 243 float arcsine = asinf(val); 248 SkDebugf("asin error : val = %g ; asin = %g ; cordic = %g\n", val, arcsine, arcsine2); 251 for (val = -1; val <= 1; val += .1f) { 253 val = .5; { 255 SkFixed f_val = (int) (val * 65536.0f); 257 float arccos = acosf(val); 262 SkDebugf("acos error : val = %g ; acos = %g ; cordic = %g\n", val, arccos, arccos2); [all …]
|
/external/openssl/crypto/x509v3/ |
D | v3_pci.c | 75 static int process_pci_value(CONF_VALUE *val, in process_pci_value() argument 81 if (strcmp(val->name, "language") == 0) in process_pci_value() 86 X509V3_conf_err(val); in process_pci_value() 89 if (!(*language = OBJ_txt2obj(val->value, 0))) in process_pci_value() 92 X509V3_conf_err(val); in process_pci_value() 96 else if (strcmp(val->name, "pathlen") == 0) in process_pci_value() 101 X509V3_conf_err(val); in process_pci_value() 104 if (!X509V3_get_value_int(val, pathlen)) in process_pci_value() 107 X509V3_conf_err(val); in process_pci_value() 111 else if (strcmp(val->name, "policy") == 0) in process_pci_value() [all …]
|