/third_party/benchmark/src/ |
H A D | string_util.cc | 34 void ToExponentAndMantissa(double val, int precision, double one_k, in ToExponentAndMantissa() argument 38 if (val < 0) { in ToExponentAndMantissa() 40 val = -val; in ToExponentAndMantissa() 52 if (val > big_threshold) { in ToExponentAndMantissa() 54 double scaled = val; in ToExponentAndMantissa() 64 mantissa_stream << val; in ToExponentAndMantissa() local 66 } else if (val < small_threshold) { in ToExponentAndMantissa() 68 if (val < simple_threshold) { in ToExponentAndMantissa() 69 double scaled = val; in ToExponentAndMantissa() 80 mantissa_stream << val; ToExponentAndMantissa() local 83 mantissa_stream << val; ToExponentAndMantissa() local [all...] |
/third_party/cmsis/CMSIS/Core/Include/ |
H A D | cmsis_compiler.h | 140 #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void*)(addr))->v) = (val)) 148 #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val)) 213 #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val)) 221 #define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->v) = (val)) 285 #define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->v) = (val)) [all...] |
/third_party/libunwind/libunwind/src/ |
H A D | os-linux.h | 41 unw_ltoa (char *buf, long val) in unw_ltoa() argument 48 *cp++ = '0' + (val % 10); in unw_ltoa() 49 val /= 10; in unw_ltoa() 51 while (val); in unw_ltoa() 112 unsigned long num_digits = 0, digit, val = 0; in scan_hex() local 129 val = (val << 4) | digit; in scan_hex() 135 *valp = val; in scan_hex() 142 unsigned long num_digits = 0, digit, val = 0; in scan_dec() local 157 val in scan_dec() [all...] |
/third_party/mesa3d/src/freedreno/afuc/ |
H A D | util.c | 55 int val = find_reg(dom, name); in reg() local 56 if (val < 0) { in reg() 58 val = strtol(name, &endptr, 0); in reg() 64 return (unsigned)val; in reg() 140 int val = find_reg(dom[0], name); in afuc_gpu_reg() local 141 if (val < 0) in afuc_gpu_reg() 142 val = find_reg(dom[1], name); in afuc_gpu_reg() 143 if (val < 0) { in afuc_gpu_reg() 145 val = strtol(name, &endptr, 0); in afuc_gpu_reg() 151 return (unsigned)val; in afuc_gpu_reg() 202 unsigned val = strtol(name, &endptr, 16); afuc_gpr_reg() local [all...] |
/third_party/node/deps/v8/src/debug/wasm/gdb-server/ |
H A D | packet.cc | 64 void Packet::AddNumberSep(uint64_t val, char sep) { in AddNumberSep() argument 65 char out[sizeof(val) * 2]; in AddNumberSep() 69 if (val == static_cast<uint64_t>(-1)) { in AddNumberSep() 78 for (size_t a = 0; a < sizeof(val); a++) { in AddNumberSep() 79 uint8_t byte = static_cast<uint8_t>(val & 0xFF); in AddNumberSep() 89 val >>= 8; in AddNumberSep() 91 // Suppress leading zeros, so we are done when val hits zero in AddNumberSep() 92 if (val == 0) { in AddNumberSep() 111 bool Packet::GetNumberSep(uint64_t* val, char* sep) { in GetNumberSep() argument 128 *val in GetNumberSep() 313 SetSequence(int32_t val) SetSequence() argument [all...] |
/third_party/protobuf/python/google/protobuf/internal/ |
H A D | test_util.py | 735 def __init__(self, val, error_string_on_conversion=None): 736 assert isinstance(val, numbers.Integral) 737 if isinstance(val, NonStandardInteger): 738 val = val.val 739 self.val = val 745 return long(self.val) 748 return NonStandardInteger(operator.abs(self.val)) [all...] |
/base/security/device_auth/frameworks/deviceauth_lite/source/auth_info/ |
H A D | auth_info.c | 96 plain->val = (uint8_t *)MALLOC(HC_AUTH_DECRYPT_LEN); in decrypt_payload() 97 if (plain->val == NULL) { in decrypt_payload() 103 (void)memset_s(plain->val, plain->size, 0, plain->size); in decrypt_payload() 113 FREE(plain->val); in decrypt_payload() 114 plain->val = NULL; in decrypt_payload() 130 data->cipher.val = (uint8_t *)MALLOC(size); in malloc_auth_info_msg() 131 if (data->cipher.val == NULL) { in malloc_auth_info_msg() 132 LOGE("Malloc remove response val failed"); in malloc_auth_info_msg() 136 (void)memset_s(data->cipher.val, size, 0, size); in malloc_auth_info_msg() 144 FREE(data->cipher.val); in free_auth_info_msg() [all...] |
/third_party/node/src/ |
H A D | aliased_buffer.h | 79 inline Reference& operator=(const NativeT& val) { in operator =() argument 80 aliased_buffer_->SetValue(index_, val); in operator =() 84 inline Reference& operator=(const Reference& val) { in operator =() argument 85 return *this = static_cast<NativeT>(val); in operator =() 92 inline Reference& operator+=(const NativeT& val) { in operator +=() argument 94 aliased_buffer_->SetValue(index_, current + val); in operator +=() 98 inline Reference& operator+=(const Reference& val) { in operator +=() argument 99 return this->operator+=(static_cast<NativeT>(val)); in operator +=() 102 inline Reference& operator-=(const NativeT& val) { in operator -=() argument 104 aliased_buffer_->SetValue(index_, current - val); in operator -=() [all...] |
/third_party/node/deps/openssl/openssl/crypto/asn1/ |
H A D | bio_ndef.c | 33 ASN1_VALUE *val; member 58 BIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it) in BIO_new_NDEF() argument 99 if (aux->asn1_cb(ASN1_OP_STREAM_PRE, &val, it, &sarg) <= 0) { in BIO_new_NDEF() 113 ndef_aux->val = val; in BIO_new_NDEF() 140 derlen = ASN1_item_ndef_i2d(ndef_aux->val, NULL, ndef_aux->it); in ndef_prefix() 150 ASN1_item_ndef_i2d(ndef_aux->val, &p, ndef_aux->it); in ndef_prefix() 212 &ndef_aux->val, ndef_aux->it, &sarg) <= 0) in ndef_suffix() 215 derlen = ASN1_item_ndef_i2d(ndef_aux->val, NULL, ndef_aux->it); in ndef_suffix() 225 derlen = ASN1_item_ndef_i2d(ndef_aux->val, in ndef_suffix() [all...] |
/third_party/pulseaudio/src/modules/raop/ |
H A D | raop-util.c | 71 unsigned int val = 0; in token_decode() local 78 val *= 64; in token_decode() 87 val += lpos; in token_decode() 94 return (marker << 24) | val; in token_decode() 142 unsigned int val = token_decode(p); in pa_raop_base64_decode() local 143 unsigned int marker = (val >> 24) & 0xff; in pa_raop_base64_decode() 144 if (val == BASE64_DECODE_ERROR) in pa_raop_base64_decode() 146 *q++ = (val >> 16) & 0xff; in pa_raop_base64_decode() 148 *q++ = (val >> 8) & 0xff; in pa_raop_base64_decode() 150 *q++ = val in pa_raop_base64_decode() [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
H A D | strength_reduction_pass.cpp | 45 // Return true if |val| is a power of 2. 46 bool IsPowerOf2(uint32_t val) { in IsPowerOf2() argument 50 if (val == 0) return false; in IsPowerOf2() 51 return ((val - 1) & val) == 0; in IsPowerOf2() 148 uint32_t StrengthReductionPass::GetConstantId(uint32_t val) { in GetConstantId() argument 149 assert(val <= 32 && in GetConstantId() 152 if (constant_ids_[val] == 0) { in GetConstantId() 161 {val}); in GetConstantId() 172 constant_ids_[val] in GetConstantId() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
H A D | strength_reduction_pass.cpp | 45 // Return true if |val| is a power of 2. 46 bool IsPowerOf2(uint32_t val) { in IsPowerOf2() argument 50 if (val == 0) return false; in IsPowerOf2() 51 return ((val - 1) & val) == 0; in IsPowerOf2() 148 uint32_t StrengthReductionPass::GetConstantId(uint32_t val) { in GetConstantId() argument 149 assert(val <= 32 && in GetConstantId() 152 if (constant_ids_[val] == 0) { in GetConstantId() 161 {val}); in GetConstantId() 172 constant_ids_[val] in GetConstantId() [all...] |
/third_party/openssl/crypto/asn1/ |
H A D | bio_ndef.c | 33 ASN1_VALUE *val; member 58 BIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it) in BIO_new_NDEF() argument 99 if (aux->asn1_cb(ASN1_OP_STREAM_PRE, &val, it, &sarg) <= 0) { in BIO_new_NDEF() 113 ndef_aux->val = val; in BIO_new_NDEF() 140 derlen = ASN1_item_ndef_i2d(ndef_aux->val, NULL, ndef_aux->it); in ndef_prefix() 150 ASN1_item_ndef_i2d(ndef_aux->val, &p, ndef_aux->it); in ndef_prefix() 212 &ndef_aux->val, ndef_aux->it, &sarg) <= 0) in ndef_suffix() 215 derlen = ASN1_item_ndef_i2d(ndef_aux->val, NULL, ndef_aux->it); in ndef_suffix() 225 derlen = ASN1_item_ndef_i2d(ndef_aux->val, in ndef_suffix() [all...] |
/third_party/spirv-tools/source/opt/ |
H A D | strength_reduction_pass.cpp | 43 // Return true if |val| is a power of 2. 44 bool IsPowerOf2(uint32_t val) { in IsPowerOf2() argument 48 if (val == 0) return false; in IsPowerOf2() 49 return ((val - 1) & val) == 0; in IsPowerOf2() 143 uint32_t StrengthReductionPass::GetConstantId(uint32_t val) { in GetConstantId() argument 144 assert(val <= 32 && in GetConstantId() 147 if (constant_ids_[val] == 0) { in GetConstantId() 156 {val}); in GetConstantId() 166 constant_ids_[val] in GetConstantId() [all...] |
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuInterval.cpp | 38 TCU_INTERVAL_APPLY_MONOTONE1(ret, x, arg0, val, in applyMonotone() 39 TCU_SET_INTERVAL(val, point, point = func(x))); in applyMonotone() 52 TCU_INTERVAL_APPLY_MONOTONE2(ret, x, arg0, y, arg1, val, in applyMonotone() 53 TCU_SET_INTERVAL(val, point, point = func(x, y))); in applyMonotone() 81 TCU_INTERVAL_APPLY_MONOTONE2(ret, xp, x, yp, y, val, in operator -() 82 TCU_SET_INTERVAL(val, point, point = xp - yp)); in operator -() 90 TCU_INTERVAL_APPLY_MONOTONE2(ret, xp, x, yp, y, val, in operator *() 91 TCU_SET_INTERVAL(val, point, point = xp * yp)); in operator *() 107 TCU_INTERVAL_APPLY_MONOTONE2(ret, nomp, nom, denp, den, val, in operator /() 108 TCU_SET_INTERVAL(val, poin in operator /() [all...] |
/third_party/backends/backend/ |
H A D | epson.c | 1064 set_cmd (Epson_Scanner * s, u_char cmd, int val) in set_cmd() argument 1079 params[0] = val; in set_cmd() 1274 cct[0] = s->val[OPT_CCT_1].w; in set_color_correction_coefficients() 1275 cct[1] = s->val[OPT_CCT_2].w; in set_color_correction_coefficients() 1276 cct[2] = s->val[OPT_CCT_3].w; in set_color_correction_coefficients() 1277 cct[3] = s->val[OPT_CCT_4].w; in set_color_correction_coefficients() 1278 cct[4] = s->val[OPT_CCT_5].w; in set_color_correction_coefficients() 1279 cct[5] = s->val[OPT_CCT_6].w; in set_color_correction_coefficients() 1280 cct[6] = s->val[OPT_CCT_7].w; in set_color_correction_coefficients() 1281 cct[7] = s->val[OPT_CCT_ in set_color_correction_coefficients() 4638 int val; sane_start() local 4693 int val = color_params[s->val[OPT_COLOR_CORRECTION].w]; sane_start() local 5982 int val = buf[2] << 8 | buf[1]; get_identity_information() local 6032 int val = 0x12 << 8 | 0xC0; get_identity_information() local [all...] |
H A D | umax.c | 299 #define inrange(minimum, val, maximum) (min(maximum, max(val, minimum))) 1084 if ( (scanner->val[OPT_RGB_BIND].w == SANE_FALSE) && in umax_set_rgb_bind() 1085 (strcmp(scanner->val[OPT_MODE].s, COLOR_STR) == 0) ) /* enable rgb options */ in umax_set_rgb_bind() 1134 if ( (scanner->device->inquiry_exposure_adj) && (scanner->val[OPT_SELECT_EXPOSURE_TIME].w) ) in umax_set_rgb_bind() 1136 if ( (scanner->val[OPT_RGB_BIND].w == SANE_FALSE) && in umax_set_rgb_bind() 1138 (strcmp(scanner->val[OPT_MODE].s, COLOR_STR) == 0) ) /* enable rgb exposure time options */ in umax_set_rgb_bind() 1140 if (scanner->val[OPT_SELECT_CAL_EXPOSURE_TIME].w) /* exposure time setting for calibration enabled */ in umax_set_rgb_bind() 1162 if (scanner->val[OPT_SELECT_CAL_EXPOSURE_TIME].w) /* exposure time setting for calibration enabled */ in umax_set_rgb_bind() 5036 memset(scanner->val, in init_options() 6435 sane_control_option(SANE_Handle handle, SANE_Int option, SANE_Action action, void *val, SANE_Int *info) sane_control_option() argument [all...] |
/drivers/peripheral/audio/test/sample/ |
H A D | idl_render.c | 102 static int32_t CheckInputName(int type, void *val) in CheckInputName() argument 104 if (val == NULL) { in CheckInputName() 126 *(int *)val = inputInt; in CheckInputName() 131 *(float *)val = inputFloat; in CheckInputName() 139 *(uint32_t *)val = inputUint; in CheckInputName() 754 int32_t val; in SetRenderMute() local 764 ret = CheckInputName(INPUT_INT, (void *)&val); in SetRenderMute() 774 if (val == 1) { in SetRenderMute() 788 float val = 0.0; in SetRenderVolume() local 790 ret = g_render->GetVolume((void *)g_render, &val); in SetRenderVolume() 831 float val = 1.0; GetRenderGain() local 910 int val = 0; SelectAttributesFomat() local 1010 int32_t val = 0; PrintRenderSelectPinFirst() local 1037 int32_t val = 0; PrintRenderSelectPinSecond() local 1065 int32_t val = 0; PrintRenderSelectPinThird() local 1097 int32_t val = 0; SelectRenderScene() local [all...] |
/applications/standard/app_samples/code/BasicFeature/Native/NdkNativeWindow/entry/src/main/cpp/ |
H A D | NativeImageAdaptor.cpp | 488 napi_value val = nullptr; in GetAvailableCount() local 490 (void)napi_create_int32(env, count, &val); in GetAvailableCount() 491 return val; in GetAvailableCount() 496 napi_value val = nullptr; in NapiOnGetBufferQueueSize() local 498 (void)napi_create_int32(env, count, &val); in NapiOnGetBufferQueueSize() 499 return val; in NapiOnGetBufferQueueSize() 504 napi_value val = nullptr; in NapiOnGetAttachBufferCount() local 506 (void)napi_create_int32(env, count, &val); in NapiOnGetAttachBufferCount() 507 return val; in NapiOnGetAttachBufferCount() 512 napi_value val in NapiOnGetCacheBufferCount() local 520 napi_value val = nullptr; NapiOnChangeIsAutoConsumer() local 528 napi_value val = nullptr; NapiOnProduceBuffer() local 537 napi_value val = nullptr; NapiOnConsumerBuffer() local [all...] |
/third_party/cups-filters/filter/ |
H A D | sys5ippprinter.c | 98 const char *val; /* Option value */ in main() local 239 if (filter_present("rastertopdf") && (val = getenv("CONTENT_TYPE")) != NULL && in main() 240 strcasestr(val, "pwg-raster") != NULL) { in main() 243 (val = getenv("CONTENT_TYPE")) != NULL && in main() 244 strcasestr(val, "jpeg") != NULL) { in main() 262 if ((val = cupsGetOption("output-format", num_options, options)) != NULL) in main() 264 if (strcasestr(val, "raster")) in main() 278 "DEBUG: Filter gstoraster or Ghostscript (%s) missing for \"output-format=%s\", using pdftoraster.\n", CUPS_GHOSTSCRIPT, val); in main() 284 "ERROR: Filter pdftoraster missing for \"output-format=%s\"\n", val); in main() 290 else if (strcasestr(val, "pd in main() [all...] |
/third_party/mesa3d/src/egl/main/ |
H A D | eglcontext.c | 101 EGLint val = attrib_list[i]; in _eglParseContextAttribList() local 127 ctx->ClientMajorVersion = val; in _eglParseContextAttribList() 145 ctx->ClientMinorVersion = val; in _eglParseContextAttribList() 163 if ((val & EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR) && in _eglParseContextAttribList() 185 if ((val & EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR) && in _eglParseContextAttribList() 191 if ((val & EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR) && in _eglParseContextAttribList() 222 ctx->Flags |= val; in _eglParseContextAttribList() 243 ctx->Profile = val; in _eglParseContextAttribList() 268 ctx->ResetNotificationStrategy = val; in _eglParseContextAttribList() 284 ctx->ResetNotificationStrategy = val; in _eglParseContextAttribList() [all...] |
/third_party/mesa3d/src/nouveau/codegen/ |
H A D | nv50_ir_emit_gv100.h | 200 inline void emitSYS(int pos, const Value *val) { in emitSYS() argument 201 int id = val ? val->reg.data.id : -1; in emitSYS() 210 case SV_TID : id = 0x21 + val->reg.data.sv.index; break; in emitSYS() 211 case SV_CTAID : id = 0x25 + val->reg.data.sv.index; break; in emitSYS() 217 case SV_CLOCK : id = 0x50 + val->reg.data.sv.index; break; in emitSYS() 231 inline void emitBTS(int pos, const Value *val) { in emitBTS() argument 232 if (val->inFile(FILE_THREAD_STATE)) { in emitBTS() 233 TSSemantic ts = val->reg.data.ts == TS_PQUAD_MACTIVE ? TS_MACTIVE : val in emitBTS() 248 emitGPR(int pos, const Value *val, int off) emitGPR() argument 277 emitPRED(int pos, const Value *val) emitPRED() argument 308 uint32_t val = imm->reg.data.u32; emitIMMD() local [all...] |
/third_party/skia/third_party/externals/libjpeg-turbo/simd/arm/aarch64/ |
H A D | jchuff-neon.c | 114 tbl_rows_0123.val[2], tbl_rows_0123.val[3], in jsimd_huff_encode_one_block_neon() 115 tbl_rows_4567.val[0], tbl_rows_4567.val[1] in jsimd_huff_encode_one_block_neon() 118 { { tbl_rows_4567.val[1], tbl_rows_4567.val[2], tbl_rows_4567.val[3] } }; in jsimd_huff_encode_one_block_neon() 122 vreinterpretq_s16_s8(vqtbl4q_s8(tbl_rows_0123, idx_rows_0123.val[0])); in jsimd_huff_encode_one_block_neon() 124 vreinterpretq_s16_s8(vqtbl4q_s8(tbl_rows_0123, idx_rows_0123.val[1])); in jsimd_huff_encode_one_block_neon() 126 vreinterpretq_s16_s8(vqtbl4q_s8(tbl_rows_2345, idx_rows_0123.val[ in jsimd_huff_encode_one_block_neon() [all...] |
/third_party/skia/third_party/externals/libjpeg-turbo/simd/arm/ |
H A D | jdcolext-neon.c | 141 rgba.val[RGB_RED] = vcombine_u8(vqmovun_s16(r_l), vqmovun_s16(r_h)); in jsimd_ycc_rgb_convert_neon() 142 rgba.val[RGB_GREEN] = vcombine_u8(vqmovun_s16(g_l), vqmovun_s16(g_h)); in jsimd_ycc_rgb_convert_neon() 143 rgba.val[RGB_BLUE] = vcombine_u8(vqmovun_s16(b_l), vqmovun_s16(b_h)); in jsimd_ycc_rgb_convert_neon() 145 rgba.val[RGB_ALPHA] = vdupq_n_u8(0xFF); in jsimd_ycc_rgb_convert_neon() 151 rgb.val[RGB_RED] = vcombine_u8(vqmovun_s16(r_l), vqmovun_s16(r_h)); in jsimd_ycc_rgb_convert_neon() 152 rgb.val[RGB_GREEN] = vcombine_u8(vqmovun_s16(g_l), vqmovun_s16(g_h)); in jsimd_ycc_rgb_convert_neon() 153 rgb.val[RGB_BLUE] = vcombine_u8(vqmovun_s16(b_l), vqmovun_s16(b_h)); in jsimd_ycc_rgb_convert_neon() 210 rgba.val[RGB_RED] = vqmovun_s16(r); in jsimd_ycc_rgb_convert_neon() 211 rgba.val[RGB_GREEN] = vqmovun_s16(g); in jsimd_ycc_rgb_convert_neon() 212 rgba.val[RGB_BLU in jsimd_ycc_rgb_convert_neon() [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_search_helpers.h | 48 int64_t val = nir_src_comp_as_int(instr->src[src].src, swizzle[i]); in is_pos_power_of_two() local 49 if (val <= 0 || !util_is_power_of_two_or_zero64(val)) in is_pos_power_of_two() 54 uint64_t val = nir_src_comp_as_uint(instr->src[src].src, swizzle[i]); in is_pos_power_of_two() local 55 if (val == 0 || !util_is_power_of_two_or_zero64(val)) in is_pos_power_of_two() 82 int64_t val = nir_src_comp_as_int(instr->src[src].src, swizzle[i]); in is_neg_power_of_two() local 84 if (val == int_min || val >= 0 || !util_is_power_of_two_or_zero64(-val)) in is_neg_power_of_two() 106 uint64_t val = nir_src_comp_as_uint(instr->src[src].src, swizzle[i]); is_bitcount2() local 154 double val = nir_src_comp_as_float(instr->src[src].src, swizzle[i]); is_zero_to_one() local 186 double val = nir_src_comp_as_float(instr->src[src].src, swizzle[i]); is_gt_0_and_lt_1() local 239 const unsigned val = is_ult_0xfffc07fc() local 260 const unsigned val = is_first_5_bits_uge_2() local [all...] |