/linux/arch/mips/math-emu/ |
H A D | dp_sqrt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Copyright (C) 1994-2000 Algorithmics Ltd. 20 union ieee754dp ieee754dp_sqrt(union ieee754dp x) in ieee754dp_sqrt() argument 23 union ieee754dp y, z, t; in ieee754dp_sqrt() local 31 /* x == INF or NAN? */ in ieee754dp_sqrt() 34 return ieee754dp_nanxcpt(x); in ieee754dp_sqrt() 38 return x; in ieee754dp_sqrt() 42 return x; in ieee754dp_sqrt() 46 /* sqrt(-Inf) = Nan */ in ieee754dp_sqrt() 51 return x; in ieee754dp_sqrt() [all …]
|
H A D | ieee754.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright (C) 1994-2000 Algorithmics Ltd. 45 int ieee754sp_class(union ieee754sp x); 47 union ieee754sp ieee754sp_abs(union ieee754sp x); 48 union ieee754sp ieee754sp_neg(union ieee754sp x); 50 union ieee754sp ieee754sp_add(union ieee754sp x, union ieee754sp y); 51 union ieee754sp ieee754sp_sub(union ieee754sp x, union ieee754sp y); 52 union ieee754sp ieee754sp_mul(union ieee754sp x, union ieee754sp y); 53 union ieee754sp ieee754sp_div(union ieee754sp x, union ieee754sp y); 55 union ieee754sp ieee754sp_fint(int x); [all …]
|
/linux/include/linux/ |
H A D | minmax.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 * - Avoid multiple evaluations of the arguments (so side-effects like 14 * "x++" happen only once) when non-constant. 15 * - Retain result as a constant expressions when called with only 18 * - Perform signed v unsigned type-checking (to generate compile 20 * - Unsigned char/short are always promoted to signed int and can be 22 * - Unsigned arguments can be compared against non-negative signed constants. 23 * - Comparison of a signed argument against an unsigned constant fails 26 #define __typecheck(x, y) \ argument 27 (!!(sizeof((typeof(x) *)1 == (typeof(y) *)1))) [all …]
|
/linux/scripts/coccinelle/misc/ |
H A D | minmax.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 9 // Options: --no-includes --include-header [all...] |
/linux/Documentation/gpu/amdgpu/display/ |
H A D | dcn3_cm_drm_current.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!-- Created with Inkscape (http://www.inkscape.org/) --> 11 inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)" 13 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 30 inkscape:window-width="1920" 31 inkscape:window-height="1011" 32 inkscape:window-x="0" 33 inkscape:window-y="0" 34 inkscape:window-maximized="1" 35 inkscape:current-layer="g2025" /> [all …]
|
H A D | dcn2_cm_drm_current.svg | 1 <?xml version="1.0" encoding="UTF-8" standalone="no"?> 2 <!-- Created with Inkscape (http://www.inkscape.org/) --> 11 inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)" 13 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" 30 inkscape:window-width="1920" 31 inkscape:window-height="1011" 32 inkscape:window-x="0" 33 inkscape:window-y="0" 34 inkscape:window-maximized="1" 35 inkscape:current-layer="g2025" /> [all …]
|
/linux/Documentation/networking/device_drivers/can/ctu/ |
H A D | fsm_txt_buffer_user.svg | 1 <?xml version="1.0" encoding="UTF-8"?> 2 …mlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> 5 …-.6)" d="m8.71859 4.03374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.0… 8 …-.6)" d="m8.71859 4.03374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.0… 11 …-.6)" d="m8.71859 4.03374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.0… 14 …-.6)" d="m8.71859 4.03374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.0… 17 …-.6)" d="m8.71859 4.03374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.0… 20 …-.6)" d="m8.71859 4.03374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.0… 23 …-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.03544z" fill="#28a4ff" fil… 26 …3374-10.9259-4.01772 10.9259-4.01772c-1.7455 2.37206-1.73544 5.61745-6e-7 8.03544z" fill-rule="eve… [all …]
|
/linux/Documentation/dev-tools/kunit/ |
H A D | kunit_suitememorydiagram.svg | 1 <?xml version="1.0" encoding="UTF-8"?> 3 <g transform="translate(-13.724 -17.943)"> 4 <g fill="#dad4d4" fill-opacity=".91765" stroke="#1a1a1a"> 5 <rect x="323.56" y="18.443" width="115.75" height="41.331"/> 6 <rect x="323.56" y="463.09" width="115.75" height="41.331"/> 7 <rect x="323.56" y="531.84" width="115.75" height="41.331"/> 8 <rect x="323.56" y="88.931" width="115.75" height="74.231"/> 11 <rect x="323.56" y="421.76" width="115.75" height="41.331" fill="#b9dbc6" stroke="#1a1a1a"/> 12 …x="328.00888" y="446.61826" fill="#000000" font-family="sans-serif" font-size="16px" style="line-h… 14 <g transform="translate(0 -258.6)"> [all …]
|
/linux/include/math-emu/ |
H A D | op-common.h | 1 /* Software floating-point emulation. Common operations. 22 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 27 #define _FP_DECL(wc, X) \ argument 28 _FP_I_TYPE X##_c=0, X##_s=0, X##_e=0; \ 29 _FP_FRAC_DECL_##wc(X) 36 #define _FP_UNPACK_CANONICAL(fs, wc, X) \ argument 38 switch (X##_e) \ 41 _FP_FRAC_HIGH_RAW_##fs(X) |= _FP_IMPLBIT_##fs; \ 42 _FP_FRAC_SLL_##wc(X, _FP_WORKBITS); \ 43 X##_e -= _FP_EXPBIAS_##fs; \ [all …]
|
H A D | op-2.h | 1 /* Software floating-point emulation. 2 Basic two-word fraction declaration and manipulation. 23 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 28 #define _FP_FRAC_DECL_2(X) _FP_W_TYPE X##_f0 = 0, X##_f1 = 0 argument 30 #define _FP_FRAC_SET_2(X,I) __FP_FRAC_SET_2(X, I) argument 31 #define _FP_FRAC_HIGH_2(X) (X##_f1) argument 32 #define _FP_FRAC_LOW_2(X) (X##_f0) argument 33 #define _FP_FRAC_WORD_2(X,w) (X##_f##w) argument 34 #define _FP_FRAC_SLL_2(X, N) ( \ argument 38 X##_f1 = X##_f1 + X##_f1 + \ [all …]
|
H A D | double.h | 1 /* Software floating-point emulation. 23 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 39 #define _FP_FRACXBITS_D (_FP_FRACTBITS_D - _FP_FRACBITS_D) 41 #define _FP_WFRACXBITS_D (_FP_FRACTBITS_D - _FP_WFRACBITS_D) 47 ((_FP_W_TYPE)1 << (_FP_FRACBITS_D-2) % _FP_W_TYPE_SIZE) 49 ((_FP_W_TYPE)1 << (_FP_FRACBITS_D-1) % _FP_W_TYPE_SIZE) 62 unsigned frac1 : _FP_FRACBITS_D - (_FP_IMPLBIT_D != 0) - _FP_W_TYPE_SIZE; 66 unsigned frac1 : _FP_FRACBITS_D - (_FP_IMPLBIT_D != 0) - _FP_W_TYPE_SIZE; 73 #define FP_DECL_D(X) _FP_DECL(2,X) argument 74 #define FP_UNPACK_RAW_D(X,val) _FP_UNPACK_RAW_2(D,X,val) argument [all …]
|
H A D | op-4.h | 1 /* Software floating-point emulation. 2 Basic four-word fraction declaration and manipulation. 23 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 28 #define _FP_FRAC_DECL_4(X) _FP_W_TYPE X##_f[4] argument 32 #define _FP_FRAC_SET_4(X,I) __FP_FRAC_SET_4(X, I) argument 33 #define _FP_FRAC_HIGH_4(X) (X##_f[3]) argument 34 #define _FP_FRAC_LOW_4(X) (X##_f[0]) argument 35 #define _FP_FRAC_WORD_4(X,w) (X##_f[w]) argument 37 #define _FP_FRAC_SLL_4(X,N) \ argument 42 _down = _FP_W_TYPE_SIZE - _up; \ [all …]
|
H A D | quad.h | 1 /* Software floating-point emulation. 23 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 39 #define _FP_FRACXBITS_Q (_FP_FRACTBITS_Q - _FP_FRACBITS_Q) 41 #define _FP_WFRACXBITS_Q (_FP_FRACTBITS_Q - _FP_WFRACBITS_Q) 47 ((_FP_W_TYPE)1 << (_FP_FRACBITS_Q-2) % _FP_W_TYPE_SIZE) 49 ((_FP_W_TYPE)1 << (_FP_FRACBITS_Q-1) % _FP_W_TYPE_SIZE) 63 unsigned long frac3 : _FP_FRACBITS_Q - (_FP_IMPLBIT_Q != 0)-(_FP_W_TYPE_SIZE * 3); 71 unsigned long frac3 : _FP_FRACBITS_Q - (_FP_IMPLBIT_Q != 0)-(_FP_W_TYPE_SIZE * 3); 79 #define FP_DECL_Q(X) _FP_DECL(4,X) argument 80 #define FP_UNPACK_RAW_Q(X,val) _FP_UNPACK_RAW_4(Q,X,val) argument [all …]
|
H A D | op-1.h | 1 /* Software floating-point emulation. 2 Basic one-word fraction declaration and manipulation. 23 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 28 #define _FP_FRAC_DECL_1(X) _FP_W_TYPE X##_f=0 argument 30 #define _FP_FRAC_SET_1(X,I) (X##_f = I) argument 31 #define _FP_FRAC_HIGH_1(X) (X##_f) argument 32 #define _FP_FRAC_LOW_1(X) (X##_f) argument 33 #define _FP_FRAC_WORD_1(X,w) (X##_f) argument 35 #define _FP_FRAC_ADDI_1(X,I) (X##_f += I) argument 36 #define _FP_FRAC_SLL_1(X,N) \ argument [all …]
|
/linux/sound/usb/ |
H A D | mixer_us16x08.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 /* define some bias, cause some alsa-mixers wont work with 8 * negative ranges or if mixer-min != 0 18 #define SND_US16X08_KCBIAS(x) (((x)->private_value >> 24) & 0xff) argument 19 #define SND_US16X08_KCSTEP(x) (((x)->private_value >> 16) & 0xff) argument 20 #define SND_US16X08_KCMIN(x) (((x)->private_value >> 8) & 0xff) argument 21 #define SND_US16X08_KCMAX(x) (((x)->private_value >> 0) & 0xff) argument 34 #define MUA0(x, y) ((x)[(y) * 10 + 4]) argument 35 #define MUA1(x, y) ((x)[(y) * 10 + 5]) argument 36 #define MUA2(x, y) ((x)[(y) * 10 + 6]) argument [all …]
|
/linux/arch/x86/mm/ |
H A D | physaddr.c | 1 // SPDX-License-Identifier: GPL-2.0 15 unsigned long __phys_addr(unsigned long x) in __phys_addr() argument 17 unsigned long y = x - __START_KERNEL_map; in __phys_addr() local 19 /* use the carry flag to determine if x was < __START_KERNEL_map */ in __phys_addr() 20 if (unlikely(x > y)) { in __phys_addr() 21 x = y + phys_base; in __phys_addr() 23 VIRTUAL_BUG_ON(y >= KERNEL_IMAGE_SIZE); in __phys_addr() 25 x = y + (__START_KERNEL_map - PAGE_OFFSET); in __phys_addr() 27 /* carry flag will be set if starting x was >= PAGE_OFFSET */ in __phys_addr() 28 VIRTUAL_BUG_ON((x > y) || !phys_addr_valid(x)); in __phys_addr() [all …]
|
/linux/arch/m68k/fpsp040/ |
H A D | srem_mod.S | 5 | input values X and Y. The entry point sREM computes the floating 6 | point (IEEE) REM of the input values X and Y. 9 | ----- 10 | Double-extended value Y is pointed to by address in register 11 | A0. Double-extended value X is located in -12(A0). The values 12 | of X and Y are both nonzero and finite; although either or both 17 | ------ 18 | FREM(X,Y) or FMOD(X,Y), depending on entry point. 21 | --------- 23 | Step 1. Save and strip signs of X and Y: signX := sign(X), [all …]
|
/linux/Documentation/devicetree/bindings/input/touchscreen/ |
H A D | resistive-adc-touch.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/input/touchscreen/resistive-adc-touch.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Oleksij Rempel <o.rempel@pengutronix.de> 18 - $ref: touchscreen.yaml# 22 const: resistive-adc-touch 24 io-channels: 27 - description: x 28 - description: y [all …]
|
/linux/Documentation/devicetree/bindings/iio/accel/ |
H A D | lis302.txt | 8 - compatible: should be set to "st,lis3lv02d-spi" 9 - reg: the chipselect index 10 - spi-max-frequency: maximal bus speed, should be set to 1000000 unless 12 - interrupts: the interrupt generated by the device 15 - compatible: should be set to "st,lis3lv02d" 16 - reg: i2c slave address 17 - Vdd-supply: The input supply for Vdd 18 - Vdd_IO-supply: The input supply for Vdd_IO 23 - st,click-single-{x,y,z}: if present, tells the device to issue an 25 x/y/z axis. [all …]
|
/linux/Documentation/userspace-api/media/dvb/ |
H A D | dvbstb.svg | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later --> 3 …-rule="evenodd" stroke-linejoin="round" stroke-width="28.222" preserveAspectRatio="xMidYMid" versi… 4 …x="5355.1" y="13.122" width="18403" height="9603" fill="none"/><path id="path199" d="m14556 9614.1… 5 x="1013.1317" y="5435.1221"><tspan id="tspan218" fill="#000000">Antenna</tspan></tspan></tspan></te… 6 …x="6213.1" y="1813.1" width="4544" height="2403" fill="none"/><path id="path225" d="m8485.1 4214.1… 7 …x="12113" y="1813.1" width="4544" height="2403" fill="none"/><path id="path242" d="m14385 4214.1h-… 8 …x="18113" y="1813.1" width="4544" height="2403" fill="none"/><path id="path259" d="m20385 4214.1h-… 9 …x="6113.1" y="5813.1" width="4544" height="2403" fill="none"/><path id="path276" d="m8385.1 8214.1… 10 …x="12213" y="5813.1" width="4544" height="2403" fill="none"/><path id="path293" d="m14485 8214.1h-… [all …]
|
/linux/drivers/platform/x86/ |
H A D | touchscreen_dmi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 24 /* The EFI embedded-fw code expects this to be the first member! */ 33 PROPERTY_ENTRY_U32("touchscreen-size-x", 1850), 34 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), 35 PROPERTY_ENTRY_BOOL("touchscreen-inverted-y"), 36 PROPERTY_ENTRY_BOOL("touchscreen-swapped-x-y"), 37 PROPERTY_ENTRY_BOOL("silead,home-button"), 38 PROPERTY_ENTRY_STRING("firmware-name", "gsl1680-archos-101-cesium-educ.fw"), 48 PROPERTY_ENTRY_U32("touchscreen-size-x", 1850), 49 PROPERTY_ENTRY_U32("touchscreen-size-y", 1280), [all …]
|
/linux/Documentation/input/devices/ |
H A D | sentelic.rst | 8 :Copyright: |copy| 2002-2011 Sentelic Corporation. 10 :Last update: Dec-07-2011 28 BYTE |---------------|BYTE |---------------|BYTE|---------------|BYTE|---------------| 29 1 |Y|X|y|x|1|M|R|L| 2 |X|X|X|X|X|X|X|X| 3 |Y|Y|Y|Y|Y|Y|Y|Y| 4 | | |B|F|W|W|W|W| 30 |---------------| |---------------| |---------------| |---------------| 32 Byte 1: Bit7 => Y overflow 33 Bit6 => X overflow 34 Bit5 => Y sign bit 35 Bit4 => X sign bit 40 Byte 2: X Movement(9-bit 2's complement integers) [all …]
|
/linux/drivers/input/ |
H A D | touchscreen.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Generic helper functions for touchscreens and other two-dimensional 39 if (!test_bit(axis, dev->absbit)) { in touchscreen_set_params() 40 dev_warn(&dev->dev, in touchscreen_set_params() 46 absinfo = &dev->absinfo[axis]; in touchscreen_set_params() 47 absinfo->minimum = min; in touchscreen_set_params() 48 absinfo->maximum = max; in touchscreen_set_params() 49 absinfo->fuzz = fuzz; in touchscreen_set_params() 53 * touchscreen_parse_properties - parse common touchscreen properties 56 * single-touch or multi-touch axes [all …]
|
/linux/arch/sh/include/asm/ |
H A D | sfp-machine.h | 1 /* SPDX-License-Identifier: GPL-2.0+ 3 * Machine-dependent software floating-point definitions. 29 #define _FP_MUL_MEAT_S(R,X,Y) \ argument 30 _FP_MUL_MEAT_1_wide(_FP_WFRACBITS_S,R,X,Y,umul_ppmm) 31 #define _FP_MUL_MEAT_D(R,X,Y) \ argument 32 _FP_MUL_MEAT_2_wide(_FP_WFRACBITS_D,R,X,Y,umul_ppmm) 33 #define _FP_MUL_MEAT_Q(R,X,Y) \ argument 34 _FP_MUL_MEAT_4_wide(_FP_WFRACBITS_Q,R,X,Y,umul_ppmm) 36 #define _FP_DIV_MEAT_S(R,X,Y) _FP_DIV_MEAT_1_udiv(S,R,X,Y) argument 37 #define _FP_DIV_MEAT_D(R,X,Y) _FP_DIV_MEAT_2_udiv(D,R,X,Y) argument [all …]
|
/linux/drivers/input/rmi4/ |
H A D | rmi_2d_sensor.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2011-2016 Synaptics Incorporated 16 #define RMI_2D_REL_POS_MIN -128 26 struct rmi_2d_axis_alignment *axis_align = &sensor->axis_align; in rmi_2d_sensor_abs_process() 29 if (obj->type == RMI_2D_OBJECT_NONE) in rmi_2d_sensor_abs_process() 32 if (axis_align->flip_x) in rmi_2d_sensor_abs_process() 33 obj->x = sensor->max_x - obj->x; in rmi_2d_sensor_abs_process() 35 if (axis_align->flip_y) in rmi_2d_sensor_abs_process() 36 obj->y = sensor->max_y - obj->y; in rmi_2d_sensor_abs_process() 38 if (axis_align->swap_axes) in rmi_2d_sensor_abs_process() [all …]
|