Home
last modified time | relevance | path

Searched +full:fraction +full:- +full:z (Results 1 – 25 of 40) sorted by relevance

12

/linux/arch/mips/math-emu/
H A Dsp_maddf.c1 // SPDX-License-Identifier: GPL-2.0-only
15 static union ieee754sp _sp_maddf(union ieee754sp z, union ieee754sp x, in _sp_maddf() argument
46 * Handle the cases when at least one of x, y or z is a NaN. in _sp_maddf()
47 * Order of precedence is sNaN, qNaN and z, x, y. in _sp_maddf()
50 return ieee754sp_nanxcpt(z); in _sp_maddf()
56 return z; in _sp_maddf()
64 /* ZERO z cases are handled separately below */ in _sp_maddf()
91 * z is here either not an infinity, or an infinity having the in _sp_maddf()
105 /* Handle cases +0 + (-0) and similar ones. */ in _sp_maddf()
111 * such case determined only by the sign of z. in _sp_maddf()
[all …]
H A Ddp_maddf.c1 // SPDX-License-Identifier: GPL-2.0-only
28 *lptr = *hptr >> (count - 64); in srl128()
29 *lptr |= (*hptr << (128 - count)) != 0 || low != 0; in srl128()
34 *lptr = low >> count | *hptr << (64 - count); in srl128()
35 *lptr |= (low << (64 - count)) != 0; in srl128()
40 static union ieee754dp _dp_maddf(union ieee754dp z, union ieee754dp x, in _dp_maddf() argument
78 * Handle the cases when at least one of x, y or z is a NaN. in _dp_maddf()
79 * Order of precedence is sNaN, qNaN and z, x, y. in _dp_maddf()
82 return ieee754dp_nanxcpt(z); in _dp_maddf()
88 return z; in _dp_maddf()
[all …]
/linux/arch/m68k/fpsp040/
H A Dsacos.S8 | Input: Double-extended number X in location pointed to
11 | Output: The value arccos(X) returned in floating-point register Fp0.
26 | z := (1-X) / (1+X)
27 | acos(X) = 2 * atan( sqrt(z) ).
57 |--ACOS(X) = PI/2 FOR DENORMALIZED X
66 movel (%a0),%d0 | ...pack exponent with upper 16 fraction
72 |--THIS IS THE USUAL CASE, |X| < 1
73 |--ACOS(X) = 2 * ATAN( SQRT( (1-X)/(1+X) ) )
77 fnegx %fp0 | ... -X
78 fadds #0x3F800000,%fp0 | ...1-X
[all …]
H A Dsatan.S8 | Input: Double-extended value in memory location pointed to by address
11 | Output: Arctan(X) returned in floating-point register Fp0.
25 | Step 2. Let X = sgn * 2**k * 1.xxxxxxxx...x. Note that k = -4, -3,..., or 3.
27 | of X with a bit-1 attached at the 6-th bit position. Define u
28 | to be u = (X-F) / (1 + X*F).
39 | Step 7. Define X' = -1/X. Approximate arctan(X') by an odd polynomial in X'.
232 |--ENTRY POINT FOR ATAN(X) FOR DENORMALIZED ARGUMENT
238 |--ENTRY POINT FOR ATAN(X), HERE X IS FINITE, NON-ZERO, AND NOT NAN'S
257 |--THE MOST LIKELY CASE, |X| IN [1/16, 16). WE USE TABLE TECHNIQUE
258 |--THE IDEA IS ATAN(X) = ATAN(F) + ATAN( [X-F] / [1+XF] ).
[all …]
/linux/Documentation/devicetree/bindings/mfd/
H A Dst,stmpe.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
15 - Linus Walleij <linus.walleij@linaro.org>
18 - $ref: /schemas/spi/spi-peripheral-props.yaml#
23 - st,stmpe601
24 - st,stmpe801
25 - st,stmpe811
26 - st,stmpe1600
27 - st,stmpe1601
[all …]
/linux/drivers/hid/amd-sfh-hid/sfh1_1/
H A Damd_sfh_desc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 #include <linux/hid-sensor-ids.h>
63 common->report_id = report_id; in get_common_features()
64 common->connection_type = HID_USAGE_SENSOR_PROPERTY_CONNECTION_TYPE_PC_INTEGRATED_ENUM; in get_common_features()
65 common->report_state = SENSOR_PROP_REPORTING_STATE_ALL_EVENTS_ENUM; in get_common_features()
66 common->power_state = SENSOR_PROP_POWER_STATE_D0_FULL_POWER_ENUM; in get_common_features()
67 common->sensor_state = HID_USAGE_SENSOR_STATE_INITIALIZING_ENUM; in get_common_features()
68 common->report_interval = HID_DEFAULT_REPORT_INTERVAL; in get_common_features()
130 common->report_id = report_id; in get_common_inputs()
131 common->sensor_state = HID_USAGE_SENSOR_STATE_READY_ENUM; in get_common_inputs()
[all …]
/linux/arch/arm/boot/dts/st/
H A Dstm32f429-disco.dts2 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com>
4 * This file is dual-licensed: you can use it either under the terms
22 * MA 02110-1301 USA
48 /dts-v1/;
50 #include "stm32f429-pinctrl.dtsi"
51 #include <dt-bindings/input/input.h>
52 #include <dt-bindings/interrupt-controller/irq.h>
53 #include <dt-bindings/gpio/gpio.h>
56 model = "STMicroelectronics STM32F429i-DISCO board";
57 compatible = "st,stm32f429i-disco", "st,stm32f429";
[all …]
H A Dspear320-hmi.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
8 /dts-v1/;
13 compatible = "st,spear320-hmi", "st,spear320";
14 #address-cells = <1>;
15 #size-cells = <1>;
23 st,pinmux-mode = <4>;
24 pinctrl-names = "default";
25 pinctrl-0 = <&state_default>;
107 label = "u-boot";
129 compatible = "gpio-keys";
[all …]
H A Dspear1310-evb.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
8 /dts-v1/;
13 compatible = "st,spear1310-evb", "st,spear1310";
14 #address-cells = <1>;
15 #size-cells = <1>;
23 pinctrl-names = "default";
24 pinctrl-0 = <&state_default>;
63 smi-pmx {
127 label = "u-boot";
149 compatible = "gpio-keys";
[all …]
H A Dspear1340-evb.dts1 // SPDX-License-Identifier: GPL-2.0-or-later
8 /dts-v1/;
13 compatible = "st,spear1340-evb", "st,spear1340";
14 #address-cells = <1>;
15 #size-cells = <1>;
23 pinctrl-names = "default";
24 pinctrl-0 = <&state_default>;
47 spdif-in {
51 spdif-out {
59 smi-pmx {
[all …]
H A Dstm32mp157c-phycore-stm32mp15-som.dtsi1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
3 * Copyright (C) 2022-2023 Steffen Trumtrar <kernel@pengutronix.de>
4 * Copyright (C) Phytec GmbH 2019-2020 - All Rights Reserved
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/interrupt-controller/arm-gic.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/leds/common.h>
13 #include <dt-bindings/leds/leds-pca9532.h>
14 #include <dt-bindings/mfd/st,stpmic1.h>
[all …]
/linux/drivers/input/touchscreen/
H A Dstmpe-ts.c1 // SPDX-License-Identifier: GPL-2.0-or-later
46 #define STMPE_TS_NAME "stmpe-ts"
50 * struct stmpe_touch - stmpe811 touch screen controller state
57 * (0 -> 1 sample, 1 -> 2 samples, 2 -> 4 samples, 3 -> 8 samples)
59 * (0 -> 10 us, 1 -> 50 us, 2 -> 100 us, 3 -> 500 us,
60 * 4-> 1 ms, 5 -> 5 ms, 6 -> 10 ms, 7 -> 50 ms)
63 * (0 -> 10 us, 1 -> 100 us, 2 -> 500 us, 3 -> 1 ms,
64 * 4 -> 5 ms, 5 -> 10 ms, 6 for 50 ms, 7 -> 100 ms)
66 * @fraction_z: Length of the fractional part in z
70 * (0 -> 20 mA typical 35 mA max, 1 -> 50 mA typical 80 mA max)
[all …]
/linux/include/math-emu/
H A Dop-1.h1 /* Software floating-point emulation.
2 Basic one-word fraction declaration and manipulation.
23 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
45 /* Right shift with sticky-lsb. */
50 ? X & 1 : (X << (_FP_W_TYPE_SIZE - (N))) != 0)))
53 #define _FP_FRAC_SUB_1(R,X,Y) (R##_f = X##_f - Y##_f)
54 #define _FP_FRAC_DEC_1(X,Y) (X##_f -= Y##_f)
55 #define _FP_FRAC_CLZ_1(z, X) __FP_CLZ(z, X##_f) argument
89 X##_f = _flo->bits.frac; \
90 X##_e = _flo->bits.exp; \
[all …]
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6ul-isiot.dtsi1 // SPDX-License-Identifier: GPL-2.0 OR X11
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
18 stdout-path = &uart1;
22 compatible = "pwm-backlight";
24 brightness-levels = < 0 1 2 3 4 5 6 7 8 9
35 default-brightness-level = <100>;
38 reg_1p8v: regulator-1p8v {
39 compatible = "regulator-fixed";
40 regulator-name = "1P8V";
[all …]
H A Dimx6qdl-colibri.dtsi1 // SPDX-License-Identifier: GPL-2.0+ OR MIT
3 * Copyright 2014-2022 Toradex
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/pwm/pwm.h>
17 /delete-property/ mmc2;
18 /delete-property/ mmc3;
22 compatible = "pwm-backlight";
23 brightness-levels = <0 45 63 88 119 158 203 255>;
24 default-brightness-level = <4>;
25 enable-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* Colibri BL_ON */
[all …]
/linux/arch/arm/nwfpe/
H A Dsoftfloat.c4 This C source file is part of the SoftFloat IEC/IEEE Floating-point
10 National Science Foundation under grant MIP-9311980. The original version
11 of this code was written as part of a project to build a fixed-point vector
15 http://www.jhauser.us/arithmetic/SoftFloat-2b/SoftFloat-source.txt
38 -------------------------------------------------------------------------------
39 Primitive arithmetic functions, including multi-word arithmetic, and
42 -------------------------------------------------------------------------------
44 #include "softfloat-macros"
47 -------------------------------------------------------------------------------
52 are propagated from function inputs to output. These details are target-
[all …]
/linux/arch/arm/boot/dts/ti/omap/
H A Dam5729-beagleboneai.dts1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2014-2019 Texas Instruments Incorporated - https://www.ti.com/
6 /dts-v1/;
9 #include "am57xx-commercial-grade.dtsi"
10 #include "dra74x-mmc-iodelay.dtsi"
11 #include "dra74-ipu-dsp-common.dtsi"
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/interrupt-controller/irq.h>
14 #include <dt-bindings/pinctrl/dra.h>
18 compatible = "beagle,am5729-beagleboneai", "ti,am5728",
[all …]
/linux/drivers/iio/light/
H A Das73211.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * Color light sensor with 16-bit channels for x, y, z and temperature);
11 * 7-bit I2C slave address 0x74 .. 0x77.
14 * AS73211: https://ams.com/documents/20143/36005/AS73211_DS000556_3-01.pdf
15 * AS7331: https://ams.com/documents/20143/9106314/AS7331_DS001047_4-00.pdf
77 #define AS73211_SAMPLE_TIME_MAX_MS BIT(AS73211_SAMPLE_TIME_NUM - 1)
94 * struct as73211_spec_dev_data - device-specific data
106 * struct as73211_data - Instance data for one AS73211
115 * @spec_dev: device-specific configuration.
152 #define AS73211_OFFSET_TEMP_INT (-66)
[all …]
/linux/drivers/iio/adc/
H A Dad4000.c1 // SPDX-License-Identifier: GPL-2.0+
25 #include <linux/iio/buffer-dmaengine.h>
57 .shift = (_offl ? 0 : _storage_bits - _real_bits), \
95 .shift = (_offl ? 0 : _storage_bits - _real_bits), \
122 /* maps adi,sdi-pin property value to enum */
167 /* AD7946, AD7686, AD7688, AD7988-5, AD7693 */
191 /* AD7988-1 */
475 .dev_name = "ad7988-1",
483 .dev_name = "ad7988-5",
543 if (chan->scan_type.sign == 's') in ad4000_fill_scale_tbl()
[all …]
/linux/arch/m68k/math-emu/
H A Dfp_util.S23 * the restrictions contained in a BSD-style copyright.)
63 tst.l (TASK_MM-8,%a2)
65 tst.l (TASK_MM-4,%a2)
69 1: printf ,"oops:%p,%p,%p\n",3,%a2@(TASK_MM-8),%a2@(TASK_MM-4),%a2@(TASK_MM)
94 | args: %d0 = source (32-bit long)
98 printf PCONV,"l2e: %p -> %p(",2,%d0,%a0
125 | args: %d0 = source (single-precision fp value)
129 printf PCONV,"s2e: %p -> %p(",2,%d0,%a0
139 add.w #0x3fff-0x7f,%d1 | re-bias the exponent.
152 move.w #0x4000-0x7f,%d1
[all …]
/linux/arch/m68k/ifpsp060/src/
H A Dfpsp.S3 M68000 Hi-Performance Microprocessor Division
5 Production Release P1.00 -- October 10, 1994
98 mov.l %d0,-(%sp)
99 mov.l (_060FPSP_TABLE-0x80+_off_done,%pc),%d0
100 pea.l (_060FPSP_TABLE-0x80,%pc,%d0)
106 mov.l %d0,-(%sp)
107 mov.l (_060FPSP_TABLE-0x80+_off_ovfl,%pc),%d0
108 pea.l (_060FPSP_TABLE-0x80,%pc,%d0)
114 mov.l %d0,-(%sp)
115 mov.l (_060FPSP_TABLE-0x80+_off_unfl,%pc),%d0
[all …]
/linux/arch/arm/boot/dts/nvidia/
H A Dtegra30-colibri.dtsi1 // SPDX-License-Identifier: GPL-2.0
15 nvidia,ddc-i2c-bus = <&hdmi_ddc>;
16 nvidia,hpd-gpio =
18 pll-supply = <&reg_1v8_avdd_hdmi_pll>;
19 vdd-supply = <&reg_3v3_avdd_hdmi>;
24 lan-reset-n-hog {
25 gpio-hog;
27 output-high;
28 line-name = "LAN_RESET#";
33 pinctrl-names = "default";
[all …]
H A Dtegra30-apalis-v1.1.dtsi1 // SPDX-License-Identifier: GPL-2.0 OR MIT
16 avdd-pexa-supply = <&vdd2_reg>;
17 avdd-pexb-supply = <&vdd2_reg>;
18 avdd-pex-pll-supply = <&vdd2_reg>;
19 avdd-plle-supply = <&ldo6_reg>;
20 hvdd-pex-supply = <&reg_module_3v3>;
21 vddio-pex-ctl-supply = <&reg_module_3v3>;
22 vdd-pexa-supply = <&vdd2_reg>;
23 vdd-pexb-supply = <&vdd2_reg>;
27 nvidia,num-lanes = <4>;
[all …]
/linux/mm/
H A Dpage_alloc.c1 // SPDX-License-Identifier: GPL-2.0-only
39 #include <linux/fault-inject.h>
63 /* Free Page Internal flags: for internal, non-pcp variants of free_pages(). */
72 * reporting it and marking it "reported" - it only skips notifying
81 * page shuffling (relevant code - e.g., memory onlining - is expected to
84 * Note: No code should rely on this flag for correctness - it's purely
94 /* prevent >1 _updater_ of zone percpu pageset ->high and ->batch fields */
102 * Pass flags to a no-op inline function to typecheck and silence the unused
110 /* UP spin_trylock always succeeds so disable IRQs to prevent re-entrancy. */
132 * Generic helper to lookup and a per-cpu variable with an embedded spinlock.
[all …]
H A Dvmscan.c1 // SPDX-License-Identifier: GPL-2.0
31 #include <linux/backing-dev.h>
45 #include <linux/memory-tiers.h>
188 if ((_folio)->lru.prev != _base) { \
191 prev = lru_to_folio(&(_folio->lru)); \
192 prefetchw(&prev->_field); \
209 return sc->target_mem_cgroup; in cgroup_reclaim()
218 return !sc->target_mem_cgroup || mem_cgroup_is_root(sc->target_mem_cgroup); in root_reclaim()
222 * writeback_throttling_sane - is the usual dirty throttling mechanism available?
247 if (sc->proactive && sc->proactive_swappiness) in sc_swappiness()
[all …]

12