/openbmc/u-boot/post/lib_powerpc/fpu/ |
H A D | compare-fp-1.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Test for correctness of composite floating-point comparisons. 36 static void iuneq (float x, float y, int ok) in iuneq() argument 38 TEST (UNEQ (x, y)); in iuneq() 39 TEST (!LTGT (x, y)); in iuneq() 40 TEST (UNLE (x, y) && UNGE (x,y)); in iuneq() 43 static void ieq (float x, float y, int ok) in ieq() argument 45 TEST (ORD (x, y) && UNEQ (x, y)); in ieq() 48 static void iltgt (float x, float y, int ok) in iltgt() argument 50 TEST (!UNEQ (x, y)); /* Not optimizable. */ in iltgt() [all …]
|
/openbmc/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 …]
|
/openbmc/u-boot/lib/efi_selftest/ |
H A D | efi_selftest_bitblt.c | 1 // SPDX-License-Identifier: GPL-2.0+ 32 static void ellipse(efi_uintn_t x, efi_uintn_t y, in ellipse() argument 39 efi_uintn_t dx = x1 - x0 + 1; in ellipse() 40 efi_uintn_t dy = y1 - y0 + 1; in ellipse() 42 if (dy * dy * (2 * x - xm) * (2 * x - xm) + in ellipse() 43 dx * dx * (2 * y - ym) * (2 * y - ym) <= dx * dx * dy * dy) in ellipse() 47 static void rectangle(efi_uintn_t x, efi_uintn_t y, in rectangle() argument 52 if (x >= x0 && y >= y0 && x <= x1 && y <= y1) in rectangle() 73 if (*pos >= WIDTH + gop->mode->info->width) in notify() 77 dx = *pos - WIDTH; in notify() [all …]
|
/openbmc/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 …]
|
/openbmc/linux/scripts/coccinelle/misc/ |
H A D | minmax.cocci | 1 // SPDX-License-Identifier: GPL-2.0-only 9 // Options: --no-includes --include-headers 22 expression x, y; 30 * ((x) cmp@p (y) ? (x) : (y)) 36 expression x, y; 45 * if ((x) cmp@p (y)) { 46 * max_val = (x); 48 * max_val = (y); 55 expression x, y; 63 * ((x) cmp@p (y) ? (x) : (y)) [all …]
|
/openbmc/u-boot/arch/arm/mach-keystone/include/mach/ |
H A D | psc_defs.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * (C) Copyright 2012-2014 23 #define PSC_REG_PDSTAT(x) (0x200 + (4 * (x))) argument 24 #define PSC_REG_PDCTL(x) (0x300 + (4 * (x))) argument 25 #define PSC_REG_MDCFG(x) (0x600 + (4 * (x))) argument 26 #define PSC_REG_MDSTAT(x) (0x800 + (4 * (x))) argument 27 #define PSC_REG_MDCTL(x) (0xa00 + (4 * (x))) argument 30 static inline u32 _boot_bit_mask(u32 x, u32 y) in _boot_bit_mask() argument 32 u32 val = (1 << (x - y + 1)) - 1; in _boot_bit_mask() 33 return val << y; in _boot_bit_mask() [all …]
|
/openbmc/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 …]
|
/openbmc/linux/include/math-emu/ |
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-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 | 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-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 | 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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/qemu/include/qemu/ |
H A D | host-utils.h | 27 * version 2 or later. See the COPYING file in the top-level directory. 61 return ((__int128_t)a * b + c - 1) / c; in muldiv64_round_up() 109 rl += c - 1; in muldiv64_rounding() 130 * clz8 - count leading zeros in a 8-bit value. 141 return val ? __builtin_clz(val) - 24 : 8; in clz8() 145 * clz16 - count leading zeros in a 16-bit value. 156 return val ? __builtin_clz(val) - 16 : 16; in clz16() 160 * clz32 - count leading zeros in a 32-bit value. 172 * clo32 - count leading ones in a 32-bit value. 175 * Returns 32 if the value is -1. [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/qemu/ui/ |
H A D | console-vc.c | 2 * SPDX-License-Identifier: MIT 14 #include "console-priv.h" 54 int x, y; member 124 return c->chr ? c->chr->label : NULL; in qemu_text_console_get_label() 132 .x = posx, .y = posy, .width = width, .height = height in qemu_console_fill_rect() 136 pixman_image_fill_rectangles(PIXMAN_OP_SRC, surface->image, in qemu_console_fill_rect() 148 surface->image, NULL, surface->image, in qemu_console_bitblt() 152 static void vga_putcharxy(QemuConsole *s, int x, int y, int ch, in vga_putcharxy() argument 160 if (t_attrib->invers) { in vga_putcharxy() 161 bgcol = color_table_rgb[t_attrib->bold][t_attrib->fgcol]; in vga_putcharxy() [all …]
|
/openbmc/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 …]
|