/third_party/libevdev/test/ |
H A D | test-libevdev-has-event.c | 33 struct input_absinfo abs = { ABS_X, 0, 2, 0, 0, 0}; in START_TEST() local 35 1, &abs, in START_TEST() 69 struct input_absinfo abs = { ABS_X, 0, 2, 0, 0, 0}; in START_TEST() local 71 1, &abs, in START_TEST() 115 struct input_absinfo abs = { code, 0, 2, 0, 0, 0}; in START_TEST() local 117 1, &abs, in START_TEST() 158 struct input_absinfo abs = { ABS_X, 0, 2, 0, 0, 0}; in START_TEST() local 160 1, &abs, in START_TEST() 244 struct input_absinfo abs = { .value = 0, .minimum = 0, .maximum = 2}; in START_TEST() local 247 rc = uinput_device_set_abs_bit(uidev, ABS_X, &abs); in START_TEST() 277 struct input_absinfo abs = { .value = 0, .minimum = 0, .maximum = 2}; START_TEST() local 320 struct input_absinfo abs[] = { START_TEST() local 375 struct input_absinfo abs[] = { START_TEST() local 398 struct input_absinfo abs[] = { START_TEST() local 423 struct input_absinfo abs[] = { START_TEST() local 579 struct input_absinfo abs; START_TEST() local 680 struct input_absinfo abs[2]; START_TEST() local 742 struct input_absinfo abs = { .value = ABS_X, .minimum = 0, .maximum = 2 }; START_TEST() local 786 struct input_absinfo abs = { .value = ABS_X, .minimum = 0, .maximum = 1 }; START_TEST() local 812 struct input_absinfo abs[2] = { START_TEST() local 861 struct input_absinfo abs = { .value = ABS_X, .minimum = 0, .maximum = 1 }; START_TEST() local 883 struct input_absinfo abs; START_TEST() local 943 struct input_absinfo abs; START_TEST() local 976 struct input_absinfo abs[2]; START_TEST() local [all...] |
H A D | test-context.c | 56 const struct input_absinfo abs = { in START_TEST() local 66 data = &abs; in START_TEST() 80 struct input_absinfo abs = {0}; in START_TEST() local 82 abs.maximum = 5; in START_TEST() 83 libevdev_enable_event_code(d, EV_ABS, ABS_MT_SLOT, &abs); in START_TEST() 91 abs.maximum = 2; in START_TEST() 92 libevdev_enable_event_code(d, EV_ABS, ABS_MT_SLOT, &abs); in START_TEST() 103 struct input_absinfo abs = {0}; in START_TEST() local 105 abs.maximum = 5; in START_TEST() 106 libevdev_enable_event_code(d, EV_ABS, ABS_MT_SLOT, &abs); in START_TEST() 132 struct input_absinfo abs = { .maximum = 5 }; START_TEST() local [all...] |
/third_party/libwebsockets/lib/abstract/transports/ |
H A D | raw-skt.c | 29 struct lws_abs *abs; member 48 if (priv->abs->ap->heartbeat) in heartbeat_cb() 49 priv->abs->ap->heartbeat(priv->abs->api); in heartbeat_cb() 95 if (priv->abs->ap->accept) in callback_abs_client_raw_skt() 96 priv->abs->ap->accept(priv->abs->api); in callback_abs_client_raw_skt() 141 if (priv->abs && priv->abs->ap->closed) in callback_abs_client_raw_skt() 142 priv->abs in callback_abs_client_raw_skt() 218 lws_atcrs_client_conn(const lws_abs_t *abs) lws_atcrs_client_conn() argument [all...] |
H A D | unit-test.c | 32 /* this is the transport priv instantiated at abs->ati */ 36 struct lws_abs *abs; member 103 priv->expect->pre(priv->abs); in process_expect() 107 s = priv->abs->ap->rx(priv->abs->api, priv->expect->buffer, in process_expect() 155 if (priv->abs) in unit_test_sequencer_cb() 156 lws_abs_destroy_instance(&priv->abs); in unit_test_sequencer_cb() 183 if (priv->abs->ap->heartbeat) in unit_test_sequencer_cb() 184 priv->abs->ap->heartbeat(priv->abs in unit_test_sequencer_cb() 346 lws_atcut_client_conn(const lws_abs_t *abs) lws_atcut_client_conn() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | me_cmp.c | 156 s += abs(pix1[0] - pix2[0]); in pix_abs16_c() 157 s += abs(pix1[1] - pix2[1]); in pix_abs16_c() 158 s += abs(pix1[2] - pix2[2]); in pix_abs16_c() 159 s += abs(pix1[3] - pix2[3]); in pix_abs16_c() 160 s += abs(pix1[4] - pix2[4]); in pix_abs16_c() 161 s += abs(pix1[5] - pix2[5]); in pix_abs16_c() 162 s += abs(pix1[6] - pix2[6]); in pix_abs16_c() 163 s += abs(pix1[7] - pix2[7]); in pix_abs16_c() 164 s += abs(pix1[8] - pix2[8]); in pix_abs16_c() 165 s += abs(pix in pix_abs16_c() [all...] |
H A D | gsmdec_template.c | 65 int abs = FFABS(filtered); in get_rrp() local 66 if (abs < 11059) abs <<= 1; in get_rrp() 67 else if (abs < 20070) abs += 11059; in get_rrp() 68 else abs = (abs >> 2) + 26112; in get_rrp() 69 return filtered < 0 ? -abs : abs; in get_rrp()
|
/third_party/skia/third_party/externals/swiftshader/src/Common/ |
H A D | Half.cpp | 23 unsigned int abs = fp32i & 0x7FFFFFFF; in half() local 25 if(abs > 0x47FFEFFF) // Infinity in half() 29 else if(abs < 0x38800000) // Denormal in half() 31 unsigned int mantissa = (abs & 0x007FFFFF) | 0x00800000; in half() 32 int e = 113 - (abs >> 23); in half() 36 abs = mantissa >> e; in half() 40 abs = 0; in half() 43 fp16i = sign | (abs + 0x00000FFF + ((abs >> 13) & 1)) >> 13; in half() 47 fp16i = sign | (abs in half() [all...] |
/third_party/skia/third_party/externals/swiftshader/src/System/ |
H A D | Half.cpp | 23 unsigned int abs = fp32i & 0x7FFFFFFF; in half() local 25 if(abs > 0x47FFEFFF) // Infinity in half() 29 else if(abs < 0x38800000) // Denormal in half() 31 unsigned int mantissa = (abs & 0x007FFFFF) | 0x00800000; in half() 32 unsigned int e = 113 - (abs >> 23); in half() 36 abs = mantissa >> e; in half() 40 abs = 0; in half() 43 fp16i = sign | (abs + 0x00000FFF + ((abs >> 13) & 1)) >> 13; in half() 47 fp16i = sign | (abs in half() [all...] |
/third_party/libwebsockets/lib/abstract/ |
H A D | abstract.c | 153 lws_abs_bind_and_create_instance(const lws_abs_t *abs) in lws_abs_bind_and_create_instance() argument 155 size_t size = sizeof(lws_abs_t) + abs->ap->alloc + abs->at->alloc; in lws_abs_bind_and_create_instance() 164 ai = lws_malloc(size, "abs inst"); in lws_abs_bind_and_create_instance() 168 *ai = *abs; in lws_abs_bind_and_create_instance() 194 ai->ati = (char *)ai->api + abs->ap->alloc; in lws_abs_bind_and_create_instance() 217 * the bind if it's otherwise idle. We give the parent abs in lws_abs_bind_and_create_instance() 297 lws_abs_t *abs = lws_zalloc(sizeof(*abs), __func__); in lws_abstract_alloc() local 302 if (!abs) in lws_abstract_alloc() [all...] |
/third_party/libinput/tools/ |
H A D | libinput-debug-tablet.c | 73 } abs; member 143 const struct input_absinfo *abs; in normalize() local 148 abs = libevdev_get_abs_info(evdev, code); in normalize() 150 if (!abs) in normalize() 153 return 1.0 * (value - abs->minimum)/absinfo_range(abs); in normalize() 229 print_bar("ABS_X:", ctx->abs.x, normalize(ctx->evdev, ABS_X, ctx->abs.x)); in print_state() 230 print_bar("ABS_Y:", ctx->abs.y, normalize(ctx->evdev, ABS_Y, ctx->abs in print_state() [all...] |
/third_party/skia/third_party/externals/oboe/apps/fxlab/app/src/main/cpp/effects/ |
H A D | SingleFunctionEffects.h | 26 auto abs = std::abs(x); in _overdrive() local 27 if (abs <= third) { in _overdrive() 29 } else if (abs <= 2 * third) { in _overdrive() 30 x = std::copysign((3 - (2 - 3 * abs) * (2 - 3 * abs)) * third, x); in _overdrive() 45 x = std::copysign(-std::expm1(-std::abs(x)), x); in _distortion()
|
/third_party/toybox/porting/liteos_a/toys/lsb/ |
H A D | umount.c | 107 char *abs = xabspath(*optargs, 0); in umount_main() local 109 for (ml = abs ? mlrev : 0; ml; ml = ml->prev) { in umount_main() 110 if (!strcmp(ml->dir, abs)) break; in umount_main() 111 if (!strcmp(ml->device, abs)) { in umount_main() 112 free(abs); in umount_main() 113 abs = ml->dir; in umount_main() 118 do_umount(abs ? abs : *optargs, ml ? ml->device : 0, flags); in umount_main() 119 if (ml && abs != ml->dir) free(abs); in umount_main() [all...] |
/third_party/toybox/toys/lsb/ |
H A D | umount.c | 138 char *abs = xabspath(*optargs, 0); in umount_main() local 140 for (ml = abs ? mlrev : 0; ml; ml = ml->prev) { in umount_main() 141 if (!strcmp(ml->dir, abs)) break; in umount_main() 142 if (!strcmp(ml->device, abs)) { in umount_main() 143 free(abs); in umount_main() 144 abs = ml->dir; in umount_main() 149 do_umount(abs ? abs : *optargs, ml ? ml->device : 0, flags); in umount_main() 150 if (ml && abs != ml->dir) free(abs); in umount_main() [all...] |
/third_party/mesa3d/src/compiler/glsl/ |
H A D | gl_nir_link_atomics.c | 200 struct active_atomic_buffer *abs = in gl_nir_link_assign_atomic_counter_resources() local 214 if (abs[binding].size == 0) in gl_nir_link_assign_atomic_counter_resources() 217 struct active_atomic_buffer *ab = abs + binding; in gl_nir_link_assign_atomic_counter_resources() 302 ralloc_free(abs); in gl_nir_link_assign_atomic_counter_resources() 310 struct active_atomic_buffer *abs = in gl_nir_link_check_atomic_counter_resources() local 323 if (abs[i].size == 0) in gl_nir_link_check_atomic_counter_resources() 326 qsort(abs[i].uniforms, abs[i].num_uniforms, in gl_nir_link_check_atomic_counter_resources() 330 for (unsigned j = 1; j < abs[i].num_uniforms; j++) { in gl_nir_link_check_atomic_counter_resources() 334 if (check_atomic_counters_overlap(abs[ in gl_nir_link_check_atomic_counter_resources() [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/glesext/tessellation_shader/ |
H A D | esextcTessellationShaderUtils.cpp | 1332 if (de::abs(tessellated_vertex_data[0]) < epsilon || de::abs(tessellated_vertex_data[0] - 1.0f) < epsilon || in isOuterEdgeVertex() 1333 de::abs(tessellated_vertex_data[1]) < epsilon || de::abs(tessellated_vertex_data[1] - 1.0f) < epsilon || in isOuterEdgeVertex() 1334 de::abs(tessellated_vertex_data[2]) < epsilon || de::abs(tessellated_vertex_data[2] - 1.0f) < epsilon) in isOuterEdgeVertex() 1350 if (de::abs(tessellated_vertex_data[0]) < epsilon || de::abs(tessellated_vertex_data[0] - 1.0f) < epsilon || in isOuterEdgeVertex() 1351 de::abs(tessellated_vertex_data[1]) < epsilon || de::abs(tessellated_vertex_dat in isOuterEdgeVertex() [all...] |
/third_party/libevdev/tools/ |
H A D | libevdev-events.c | 22 const struct input_absinfo *abs; in print_abs_bits() local 27 abs = libevdev_get_abs_info(dev, axis); in print_abs_bits() 29 printf(" Value %6d\n", abs->value); in print_abs_bits() 30 printf(" Min %6d\n", abs->minimum); in print_abs_bits() 31 printf(" Max %6d\n", abs->maximum); in print_abs_bits() 32 if (abs->fuzz) in print_abs_bits() 33 printf(" Fuzz %6d\n", abs->fuzz); in print_abs_bits() 34 if (abs->flat) in print_abs_bits() 35 printf(" Flat %6d\n", abs->flat); in print_abs_bits() 36 if (abs in print_abs_bits() [all...] |
H A D | libevdev-tweak-device.c | 28 printf("%s --abs <axis> [--min min] [--max max] [--res res] [--fuzz fuzz] [--flat flat] /dev/input/eventXYZ\n" in usage() 123 { "abs", 1, 0, OPT_ABS }, in parse_options_abs() 262 { "abs", 1, 0, OPT_ABS }, in parse_options_mode() 308 struct input_absinfo abs; in set_abs() local 319 abs = *a; in set_abs() 321 abs.minimum = absinfo->minimum; in set_abs() 323 abs.maximum = absinfo->maximum; in set_abs() 325 abs.fuzz = absinfo->fuzz; in set_abs() 327 abs.flat = absinfo->flat; in set_abs() 329 abs in set_abs() 365 struct input_absinfo abs; set_resolution() local [all...] |
/third_party/libwebsockets/lib/abstract/protocols/smtp/ |
H A D | smtp.c | 55 const struct lws_abs *abs; member 89 tm = lws_abs_get_token(c->abs->ap_tokens, LTMI_PSMTP_V_LWS_SMTP_EMAIL_T); in lws_smtpc_get_email() 129 d = lws_dll2_get_tail(&c->abs->children_owner); in lws_smtpc_email_disposition() 163 c->abs->at->set_timeout(c->abs->ati, in lws_smtpc_abs_accept() 176 c->abs->at->set_timeout(c->abs->ati, NO_PENDING_TIMEOUT, 0); in lws_smtpc_abs_rx() 231 c->abs->at->ask_for_writeable(c->abs->ati); in lws_smtpc_abs_rx() 292 c->abs in lws_smtpc_abs_writeable() 359 lws_smtpc_child_bind(lws_abs_t *abs) lws_smtpc_child_bind() argument [all...] |
H A D | smtp-sequencer.c | 46 lws_abs_t *abs, *instance; member 111 s->abs = lws_abstract_alloc(s->args.vhost, NULL, "smtp.raw_skt", in lws_smtpc_kick_internal() 114 if (!s->abs) in lws_smtpc_kick_internal() 117 s->instance = lws_abs_bind_and_create_instance(s->abs); in lws_smtpc_kick_internal() 119 lws_abstract_free(&s->abs); in lws_smtpc_kick_internal() 132 if (s->abs->at->state(s->abs->ati)) { in lws_smtpc_kick_internal() 137 s->abs->at->ask_for_writeable(s->abs->ati); in lws_smtpc_kick_internal() 146 if (s->abs in lws_smtpc_kick_internal() [all...] |
/third_party/libinput/src/ |
H A D | evdev.h | 41 /* The fake resolution value for abs devices without resolution */ 204 } abs; member 658 mm.x = evdev_convert_to_mm(device->abs.absinfo_x, x); in evdev_convert_xy_to_mm() 659 mm.y = evdev_convert_to_mm(device->abs.absinfo_y, y); in evdev_convert_xy_to_mm() 882 if (device->abs.absinfo_x == NULL || in evdev_device_unit_delta_to_mm() 883 device->abs.absinfo_y == NULL) { in evdev_device_unit_delta_to_mm() 885 "%s: is not an abs device\n", in evdev_device_unit_delta_to_mm() 890 absx = device->abs.absinfo_x; in evdev_device_unit_delta_to_mm() 891 absy = device->abs.absinfo_y; in evdev_device_unit_delta_to_mm() 910 if (device->abs in evdev_device_units_to_mm() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_blockdetect.c | 104 abs(src[j * src_linesize + i + 0] - src[j * src_linesize + i + 1]); in calculate_blockiness() 105 temp += abs(src[j * src_linesize + i + 1] - src[j * src_linesize + i + 2]); in calculate_blockiness() 106 temp += abs(src[j * src_linesize + i + 2] - src[j * src_linesize + i + 3]); in calculate_blockiness() 107 temp += abs(src[j * src_linesize + i + 3] - src[j * src_linesize + i + 4]); in calculate_blockiness() 108 temp += abs(src[j * src_linesize + i - 0] - src[j * src_linesize + i - 1]); in calculate_blockiness() 109 temp += abs(src[j * src_linesize + i - 1] - src[j * src_linesize + i - 2]); in calculate_blockiness() 110 temp += abs(src[j * src_linesize + i - 2] - src[j * src_linesize + i - 3]); in calculate_blockiness() 147 abs(src[(j + 0) * src_linesize + i] - src[(j + 1) * src_linesize + i]); in calculate_blockiness() 148 temp += abs(src[(j + 1) * src_linesize + i] - src[(j + 2) * src_linesize + i]); in calculate_blockiness() 149 temp += abs(sr in calculate_blockiness() [all...] |
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_lower_fp16_conv.c | 99 nir_ssa_def *abs = nir_iand(b, src, nir_imm_int(b, 0x7FFFFFFF)); in float_to_half_impl() local 101 nir_push_if(b, nir_ige(b, abs, mode == nir_rounding_mode_rtne ? f16max : f32infinity)); in float_to_half_impl() 103 nir_ilt(b, f32infinity, abs), in float_to_half_impl() 111 nir_push_if(b, nir_ige(b, abs, f16max)); in float_to_half_impl() 129 nir_push_if(b, nir_ige(b, abs, nir_imm_int(b, 113 << 23))); in float_to_half_impl() 136 nir_ushr(b, abs, nir_imm_int(b, 23)), in float_to_half_impl() 139 nir_iand(b, nir_ushr(b, abs, nir_imm_int(b, 13)), nir_imm_int(b, 0x3FFF))); in float_to_half_impl() 140 nir_ssa_def *guard = nir_iand(b, nir_ushr(b, abs, nir_imm_int(b, 12)), one); in float_to_half_impl() 141 nir_ssa_def *sticky = nir_bcsel(b, nir_ine(b, nir_iand(b, abs, nir_imm_int(b, 0xFFF)), zero), one, zero); in float_to_half_impl() 145 nir_push_if(b, nir_ige(b, abs, nir_imm_in in float_to_half_impl() [all...] |
/third_party/mesa3d/src/intel/compiler/ |
H A D | brw_nir_opt_peephole_ffma.c | 71 uint8_t swizzle[4], bool *negate, bool *abs) in get_mul_for_src() 74 assert(src->src.is_ssa && !src->abs && !src->negate); in get_mul_for_src() 95 swizzle, negate, abs); in get_mul_for_src() 100 swizzle, negate, abs); in get_mul_for_src() 106 swizzle, negate, abs); in get_mul_for_src() 108 *abs = true; in get_mul_for_src() 193 bool negate, abs; in brw_nir_opt_peephole_ffma_instr() local 199 abs = false; in brw_nir_opt_peephole_ffma_instr() 203 swizzle, &negate, &abs); in brw_nir_opt_peephole_ffma_instr() 229 if (abs) { in brw_nir_opt_peephole_ffma_instr() 70 get_mul_for_src(nir_alu_src *src, unsigned num_components, uint8_t swizzle[4], bool *negate, bool *abs) get_mul_for_src() argument [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/ |
H A D | vktSampleVerifierUtil.cpp | 277 const Vec3 mx = abs(dPdx) * size.asFloat(); 278 const Vec3 my = abs(dPdy) * size.asFloat(); 283 scaleXBounds[0] = de::max(de::abs(mx[0]), de::max(de::abs(mx[1]), de::abs(mx[2]))); 284 scaleYBounds[0] = de::max(de::abs(my[0]), de::max(de::abs(my[1]), de::abs(my[2]))); 286 scaleXBounds[1] = de::abs(mx[0]) + de::abs(m [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/texture/ |
H A D | vktSampleVerifierUtil.cpp | 277 const Vec3 mx = abs(dPdx) * size.asFloat(); 278 const Vec3 my = abs(dPdy) * size.asFloat(); 283 scaleXBounds[0] = de::max(de::abs(mx[0]), de::max(de::abs(mx[1]), de::abs(mx[2]))); 284 scaleYBounds[0] = de::max(de::abs(my[0]), de::max(de::abs(my[1]), de::abs(my[2]))); 286 scaleXBounds[1] = de::abs(mx[0]) + de::abs(m [all...] |