Home
last modified time | relevance | path

Searched +full:left +full:- +full:shift (Results 1 – 25 of 550) sorted by relevance

12345678910>>...22

/linux/drivers/md/persistent-data/
H A Ddm-btree-remove.c1 // SPDX-License-Identifier: GPL-2.0-only
8 #include "dm-btree.h"
9 #include "dm-btree-internal.h"
10 #include "dm-transaction-manager.h"
13 #include <linux/device-mapper.h>
29 * Each node may have a left or right sibling. When decending the spine,
36 * [B] No left sibling
40 * ==> rebalance(left sibling, node)
42 * [D] Both siblings, total_entries(left, node, right) <= DEL_THRESHOLD
43 * ==> delete node adding it's contents to left and right
[all …]
/linux/arch/parisc/math-emu/
H A Dsfsub.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Linux/PA-RISC Project (http://www.parisc-linux.org/)
5 * Floating-point emulation code
6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org>
42 register unsigned int left, right, result, extent; in sgl_fsub() local
50 left = *leftptr; in sgl_fsub()
55 Sgl_xortointp1(left,right,/*to*/save); in sgl_fsub()
60 if ((result_exponent = Sgl_exponent(left)) == SGL_INFINITY_EXPONENT) in sgl_fsub()
62 if (Sgl_iszero_mantissa(left)) in sgl_fsub()
80 *dstptr = left; in sgl_fsub()
[all …]
H A Dsfadd.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Linux/PA-RISC Project (http://www.parisc-linux.org/)
5 * Floating-point emulation code
6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org>
42 register unsigned int left, right, result, extent; in sgl_fadd() local
52 left = *leftptr; in sgl_fadd()
57 Sgl_xortointp1(left,right,/*to*/save); in sgl_fadd()
62 if ((result_exponent = Sgl_exponent(left)) == SGL_INFINITY_EXPONENT) in sgl_fadd()
64 if (Sgl_iszero_mantissa(left)) in sgl_fadd()
82 *dstptr = left; in sgl_fadd()
[all …]
H A Ddbl_float.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Linux/PA-RISC Project (http://www.parisc-linux.org/)
5 * Floating-point emulation code
6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org>
9 PA header file -- do not include this header file for non-PA builds.
12 /* 32-bit word grabbing functions */
40 Dallp1(srcdst) &= Dmantissap1((unsigned int)-1)
43 * included in the shift. Here we need to generate two double width
48 * This is very difficult to model with C expressions since the shift amount
53 Dallp2(srcdstB) = Dallp1(srcdstA) >> (varamount-32); \
[all …]
H A Dsgl_float.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Linux/PA-RISC Project (http://www.parisc-linux.org/)
5 * Floating-point emulation code
6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org>
10 PA header file -- do not include this header file for non-PA builds.
13 /* 32-bit word grabbing functions */
50 #define Sgl_leftshiftby1_withextent(left,right,result) \ argument
51 Shiftdouble(Sall(left),Extall(right),31,Sall(result))
53 #define Sgl_rightshiftby1_withextent(left,right,dst) \ argument
54 Shiftdouble(Sall(left),Extall(right),1,Extall(right))
[all …]
H A Ddfsub.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Linux/PA-RISC Project (http://www.parisc-linux.org/)
5 * Floating-point emulation code
6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org>
117 } /* End left NaN or Infinity processing */ in dbl_fsub()
157 /* Set the left operand to the larger one by XOR swap * in dbl_fsub()
165 /* Invariant: left is not smaller than right. */ in dbl_fsub()
188 /* Left is not a zero and must be the result. Trapped in dbl_fsub()
189 * underflows are signaled if left is denormalized. Result in dbl_fsub()
266 diff_exponent = result_exponent - right_exponent; in dbl_fsub()
[all …]
H A Ddfadd.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Linux/PA-RISC Project (http://www.parisc-linux.org/)
5 * Floating-point emulation code
6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org>
117 } /* End left NaN or Infinity processing */ in dbl_fadd()
156 /* Set the left operand to the larger one by XOR swap * in dbl_fadd()
163 /* Invariant: left is not smaller than right. */ in dbl_fadd()
185 /* Left is not a zero and must be the result. Trapped in dbl_fadd()
186 * underflows are signaled if left is denormalized. Result in dbl_fadd()
263 diff_exponent = result_exponent - right_exponent; in dbl_fadd()
[all …]
H A Dfcnvxf.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Linux/PA-RISC Project (http://www.parisc-linux.org/)
5 * Floating-point emulation code
6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org>
15 * Single Fixed-point to Single Floating-point
16 * Single Fixed-point to Double Floating-point
17 * Double Fixed-point to Single Floating-point
18 * Double Fixed-point to Double Floating-point
41 * Convert single fixed-point to single floating-point format
78 * between -1 and 30. in sgl_to_sgl_fcnvxf()
[all …]
H A Dfmpyfadd.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Linux/PA-RISC Project (http://www.parisc-linux.org/)
5 * Floating-point emulation code
6 * Copyright (C) 2001 Hewlett-Packard (Paul Bame) <bame@debian.org>
15 * Double Floating-point Multiply Fused Add
16 * Double Floating-point Multiply Negate Fused Add
17 * Single Floating-point Multiply Fused Add
18 * Single Floating-point Multiply Negate Fused Add
41 * Double Floating-point Multiply Fused Add
77 mpy_exponent = Dbl_exponent(opnd1p1) + Dbl_exponent(opnd2p1) - DBL_BIAS; in dbl_fmpyfadd()
[all …]
/linux/arch/x86/math-emu/
H A Dround_Xsig.S1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*---------------------------------------------------------------------------+
7 | Australia. E-mail billm@jacobi.maths.monash.edu.au |
17 | Each function returns the size of the shift (nr of bits). |
19 +---------------------------------------------------------------------------*/
39 movl $0,-4(%ebp)
43 jnz L_shift_1 /* Shift left 1 - 31 bits */
48 movl $-32,-4(%ebp)
50 /* We need to shift left by 1 - 31 bits */
52 bsrl %edx,%ecx /* get the required shift in %ecx */
[all …]
H A Dreg_norm.S1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*---------------------------------------------------------------------------+
7 | Australia. E-mail billm@suburbia.net |
16 | Return value is the tag of the answer, or-ed with FPU_Exception if |
17 | one was raised, or -1 on internal error. |
19 +---------------------------------------------------------------------------*/
37 jnz L_shift_1 /* Shift left 1 - 31 bits */
46 /* We need to shift left by 1 - 31 bits */
48 bsrl %edx,%ecx /* get the required shift in %ecx */
115 jnz L_nuo_shift_1 /* Shift left 1 - 31 bits */
[all …]
H A Dreg_u_sub.S1 /* SPDX-License-Identifier: GPL-2.0 */
3 /*---------------------------------------------------------------------------+
10 | E-mail billm@suburbia.net |
15 | Return value is the tag of the answer, or-ed with FPU_Exception if |
16 | one was raised, or -1 on internal error. |
18 +---------------------------------------------------------------------------*/
47 subl PARAM7,%ecx /* exp1 - exp2 */
60 /*--------------------------------------+
63 +--------------------------------------*/
73 /*--------------------------------------+
[all …]
/linux/sound/pci/
H A Dak4531_codec.c1 // SPDX-License-Identifier: GPL-2.0-or-later
37 idx, ak4531->regs[idx]);
46 #define AK4531_SINGLE(xname, xindex, reg, shift, mask, invert) \ argument
50 .private_value = reg | (shift << 16) | (mask << 24) | (invert << 22) }
51 #define AK4531_SINGLE_TLV(xname, xindex, reg, shift, mask, invert, xtlv) \ argument
57 .private_value = reg | (shift << 16) | (mask << 24) | (invert << 22), \
62 int mask = (kcontrol->private_value >> 24) & 0xff; in snd_ak4531_info_single()
64 uinfo->type = mask == 1 ? SNDRV_CTL_ELEM_TYPE_BOOLEAN : SNDRV_CTL_ELEM_TYPE_INTEGER; in snd_ak4531_info_single()
65 uinfo->count = 1; in snd_ak4531_info_single()
66 uinfo->value.integer.min = 0; in snd_ak4531_info_single()
[all …]
/linux/Documentation/netlink/specs/
H A Dtcp_metrics.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
5 protocol: genetlink-legacy
10 c-family-name: tcp-metrics-genl-name
11 c-version-name: tcp-metrics-genl-version
12 max-by-define: true
13 kernel-policy: global
16 -
17 name: tcp-fastopen-cookie-max
21 attribute-sets:
22 -
[all …]
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/
H A Dphy_qmath.c1 // SPDX-License-Identifier: ISC
81 s32 temp = (s32) op1 - (s32) op2; in qm_sub16()
93 * Description: This function make a 32 bit saturated left shift when the
94 * specified shift is +ve. This function will make a 32 bit right shift when
95 * the specified shift is -ve. This function return the result after shifting
98 s32 qm_shl32(s32 op, int shift) in qm_shl32() argument
103 if (shift > 31) in qm_shl32()
104 shift = 31; in qm_shl32()
105 else if (shift < -31) in qm_shl32()
106 shift = -31; in qm_shl32()
[all …]
/linux/sound/isa/gus/
H A Dgus_mixer.c1 // SPDX-License-Identifier: GPL-2.0-or-later
17 #define GF1_SINGLE(xname, xindex, shift, invert) \ argument
21 .private_value = shift | (invert << 8) }
28 int shift = kcontrol->private_value & 0xff; in snd_gf1_get_single() local
29 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_get_single()
31 ucontrol->value.integer.value[0] = (gus->mix_cntrl_reg >> shift) & 1; in snd_gf1_get_single()
33 ucontrol->value.integer.value[0] ^= 1; in snd_gf1_get_single()
41 int shift = kcontrol->private_value & 0xff; in snd_gf1_put_single() local
42 int invert = (kcontrol->private_value >> 8) & 1; in snd_gf1_put_single()
46 nval = ucontrol->value.integer.value[0] & 1; in snd_gf1_put_single()
[all …]
/linux/drivers/accessibility/speakup/
H A DDefaultKeyAssignments7 shift key. Well, actually as an altgr key. So in the following list
8 InsKeyPad-period means hold down the insert key like a shift key and
11 KeyPad-8 Say current Line
12 InsKeyPad-8 say from top of screen to reading cursor.
13 KeyPad-7 Say Previous Line (UP one line)
14 KeyPad-9 Say Next Line (down one line)
15 KeyPad-5 Say Current Word
16 InsKeyPad-5 Spell Current Word
17 KeyPad-4 Say Previous Word (left one word)
18 InsKeyPad-4 say from left edge of line to reading cursor.
[all …]
H A Di18n.c1 // SPDX-License-Identifier: GPL-2.0
51 [MSG_EDGE_LEFT] = "left,",
57 [MSG_CTRL] = "control-",
73 [MSG_CTL_SHIFT] = "shift",
77 [MSG_CTL_LSHIFT] = "l shift",
81 [MSG_CTL_CAPSSHIFT] = "caps shift",
107 [MSG_STATE_SHIFT] = "shift",
135 [MSG_KEYNAME_LEFTBRACE] = "left brace",
138 [MSG_KEYNAME_LEFTCTRL] = "left control",
151 [MSG_KEYNAME_LEFTSHFT] = "left shift",
[all …]
/linux/sound/soc/codecs/
H A Dtwl4030.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/mfd/twl4030-audio.h>
64 u8 ctl_cache[TWL4030_REG_PRECKR_CTL - TWL4030_REG_EAR_CTL + 1];
76 twl4030->ctl_cache[i - TWL4030_REG_EAR_CTL] = byte; in tw4030_init_ctl_cache()
86 return -EIO; in twl4030_read()
95 value = twl4030->ctl_cache[reg - TWL4030_REG_EAR_CTL]; in twl4030_read()
113 if (twl4030->earpiece_enabled) in twl4030_can_write_to_chip()
117 if (twl4030->predrivel_enabled) in twl4030_can_write_to_chip()
121 if (twl4030->predriver_enabled) in twl4030_can_write_to_chip()
125 if (twl4030->carkitl_enabled) in twl4030_can_write_to_chip()
[all …]
H A D88pm860x-codec.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * 88pm860x-codec.c -- 88PM860x ALSA SoC Audio Driver
26 #include "88pm860x-codec.h"
117 * This widget should be just after DAC & PGA in DAPM power-on sequence and
118 * before DAC & PGA in DAPM power-off sequence.
149 /* -9450dB to 0dB in 150dB steps ( mute instead of -9450dB) */
150 static const DECLARE_TLV_DB_SCALE(dpga_tlv, -9450, 150, 1);
152 /* -9dB to 0db in 3dB steps */
153 static const DECLARE_TLV_DB_SCALE(adc_tlv, -900, 300, 0);
155 /* {-23, -17, -13.5, -11, -9, -6, -3, 0}dB */
[all …]
/linux/arch/parisc/include/asm/
H A Dhash.h1 /* SPDX-License-Identifier: GPL-2.0 */
6 * HP-PA only implements integer multiply in the FPU. However, for
7 * integer multiplies by constant, it has a number of shift-and-add
8 * (but no shift-and-subtract, sigh!) instructions that a compiler
20 * PA7100 pairing rules. This is an in-order 2-way superscalar processor.
21 * Only one instruction in a pair may be a shift (by more than 3 bits),
22 * but other than that, simple ALU ops (including shift-and-add by up
25 * PA8xxx processors also dual-issue ALU instructions, although with
28 * This 6-step sequence was found by Yevgen Voronenko's implementation
43 /* Phase 2: Return (b<<11) + (c<<6) + (a<<3) - c */ in __hash_32()
[all …]
/linux/arch/microblaze/lib/
H A Ddivsi3.S1 /* SPDX-License-Identifier: GPL-2.0 */
17 addik r1, r1, -16
23 beqi r6, div_by_zero /* div_by_zero - division error */
40 add r5, r5, r5 /* left shift logical r5 */
42 addik r29, r29, -1
44 /* left shift logical r5 get the '1' into the carry */
53 addik r29, r29, -1
55 add r3, r3, r3 /* shift in the '1' into div */
73 .size __divsi3, . - __divsi3
H A Dmodsi3.S1 /* SPDX-License-Identifier: GPL-2.0 */
19 addik r1, r1, -16
40 add r5, r5, r5 /* left shift logical r5 */
42 addik r29, r29, -1
44 /* left shift logical r5 get the '1' into the carry */
53 addik r29, r29, -1
55 add r30, r30, r30 /* shift in the '1' into div */
73 .size __modsi3, . - __modsi3
H A Dumodsi3.S1 /* SPDX-License-Identifier: GPL-2.0 */
19 addik r1, r1, -12
24 beqi r6, div_by_zero /* div_by_zero - division error */
43 /* if r6 [bit 31] is set, then return result as r5-r6 */
56 add r5, r5, r5 /* left shift logical r5 */
58 addik r29, r29, -1
60 /* left shift logical r5 get the '1' into the carry */
69 addik r29, r29, -1
71 add r30, r30, r30 /* shift in the '1' into div */
86 .size __umodsi3, . - __umodsi3
H A Dudivsi3.S1 /* SPDX-License-Identifier: GPL-2.0 */
20 addik r1, r1, -12
30 /* check if r6 and r5 are equal - if yes, return 1 */
54 add r5, r5, r5 /* left shift logical r5 */
56 addik r29, r29, -1
58 /* left shift logical r5 get the '1' into the carry */
67 addik r29, r29, -1
69 add r3, r3, r3 /* shift in the '1' into div */
84 .size __udivsi3, . - __udivsi3

12345678910>>...22