/qemu/hw/audio/ |
H A D | gus.c | 4 * Copyright (c) 2002-2005 Vassili Karpov (malc) 32 #include "hw/qdev-properties.h" 54 int pos, left, shift, irqs; member 70 return gus_read (&s->emu, nport, 1); in gus_readb() 77 gus_write (&s->emu, nport, 1, val); in gus_writeb() 83 int pos = s->pos; in write_audio() 88 nbytes = samples << s->shift; in write_audio() 90 s->voice, in write_audio() 91 s->mixbuf + (pos << (s->shift - 1)), in write_audio() 96 wsampl = wbytes >> s->shift; in write_audio() [all …]
|
H A D | adlib.c | 4 * Copyright (c) 2004-2005 Vassili Karpov (malc) 31 #include "hw/qdev-properties.h" 52 #define SHIFT 1 macro 73 int left, pos, samples; member 81 OPLTimerOver (s->opl, n); in adlib_stop_opl_timer() 82 s->ticking[n] = 0; in adlib_stop_opl_timer() 90 if (s->ticking[i]) { in adlib_kill_timers() 93 delta = AUD_get_elapsed_usec_out (s->voice, &s->ats); in adlib_kill_timers() 97 s->dexp[i] / 1000000.0, in adlib_kill_timers() 98 delta >= s->dexp[i] in adlib_kill_timers() [all …]
|
H A D | asc.c | 7 * Copyright (c) 2012-2018 Laurent Vivier <laurent@vivier.eu> 8 * Copyright (c) 2022 Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> 10 * SPDX-License-Identifier: GPL-2.0-or-later 20 #include "hw/qdev-properties.h" 45 * bit 1="non-ROM companding", 53 * bits 0-3 wavetables 0-3 start 55 * bits 2-4 = 3 bit internal ASC volume, 56 * bits 5-7 = volume control sent to Sony sound chip 64 * bits 6-7 = digital test, 65 * bits 4-5 = analog test [all …]
|
/qemu/qapi/ |
H A D | common.json | 1 # -*- Mode: Python -*- 186 # Key combinations to toggle input-linux between host and guest. 188 # @ctrl-ctrl: left and right control key 190 # @alt-alt: left and right alt key 192 # @shift-shift: left and right shift key 194 # @meta-meta: left and right meta key 198 # @ctrl-scrolllock: either control key and scroll lock key 203 'data': [ 'ctrl-ctrl', 'alt-alt', 'shift-shift','meta-meta', 'scrolllock', 204 'ctrl-scrolllock' ] } 209 # @human-readable-text: Formatted output intended for humans. [all …]
|
/qemu/target/hexagon/imported/ |
H A D | shift.idef | 2 * Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved. 19 * S-type Instructions 32 "Arithmetic Shift Right by Register", \ 39 "Arithmetic Shift Left by Register", \ 46 "Logical Shift Right by Register", \ 53 "Logical Shift Left by Register", \ 63 RSHIFTTYPES(r_nac,Rx,Rs,4_8,-,RxV,fECHO,,) 64 RSHIFTTYPES(p_nac,Rxx,Rss,8_8,-,RxxV,fECHO,,) 75 /* Register shift with saturation */ 78 "Arithmetic Shift Right by Register", \ [all …]
|
/qemu/audio/ |
H A D | mixeng.c | 4 * Copyright (c) 2004-2005 Vassili Karpov (malc) 27 #include "qemu/error-report.h" 43 #define SHIFT 8 macro 50 #undef SHIFT 57 #define SHIFT 8 macro 63 #undef SHIFT 74 #define SHIFT 16 macro 90 #undef SHIFT 97 #define SHIFT 16 macro 112 #undef SHIFT [all …]
|
/qemu/ui/ |
H A D | vnc-enc-tight.c | 47 #include "vnc-enc-tight.h" 48 #include "vnc-palette.h" 119 if (vs->tight->type != VNC_ENCODING_TIGHT_PNG) { in tight_can_send_png_rect() 123 if (surface_bytes_per_pixel(vs->vd->ds) == 1 || in tight_can_send_png_rect() 124 vs->client_pf.bytes_per_pixel == 1) { in tight_can_send_png_rect() 145 int pix, left[3]; in tight_detect_smooth_image24() local 147 unsigned char *buf = vs->tight->tight.buffer; in tight_detect_smooth_image24() 150 * If client is big-endian, color samples begin from the second in tight_detect_smooth_image24() 151 * byte (offset 1) of a 32-bit pixel value. in tight_detect_smooth_image24() 153 off = vs->client_endian == G_BIG_ENDIAN ? 1 : 0; in tight_detect_smooth_image24() [all …]
|
H A D | curses_keys.h | 36 #define SHIFT SCANCODE_SHIFT macro 56 [0 ... (CURSES_CHARS - 1)] = -1, 65 [0 ... (CURSES_KEYS - 1)] = -1, 73 [0 ... (CURSES_CHARS - 1)] = -1, 86 ['-'] = 12, 133 ['!'] = 2 | SHIFT, 134 ['@'] = 3 | SHIFT, 135 ['#'] = 4 | SHIFT, 136 ['$'] = 5 | SHIFT, 137 ['%'] = 6 | SHIFT, [all …]
|
/qemu/pc-bios/keymaps/ |
H A D | sv | 41 ISO_Left_Tab 0xf shift 81 greater 0x56 shift 83 brokenbar 0x56 shift altgr 111 # Insert - PgDown 123 Left 0xcb localstate 182 onehalf 0x29 shift 185 exclam 0x2 shift 188 quotedbl 0x3 shift 192 numbersign 0x4 shift 195 currency 0x5 shift [all …]
|
H A D | sl | 41 ISO_Left_Tab 0xf shift 81 greater 0x56 shift 83 brokenbar 0x56 shift altgr 111 # Insert - PgDown 123 Left 0xcb localstate 179 exclam 0x02 shift 181 dead_tilde 0x02 shift altgr 182 quotedbl 0x03 shift 184 caron 0x03 shift altgr 185 numbersign 0x04 shift [all …]
|
H A D | no | 2 # generated by qemu-keymap 5 # variant : - 6 # options : - 11 # 0: Shift 38 exclam 0x02 shift 40 onesuperior 0x02 shift altgr 44 quotedbl 0x03 shift 46 twosuperior 0x03 shift altgr 50 numbersign 0x04 shift 52 threesuperior 0x04 shift altgr [all …]
|
H A D | it | 2 # generated by qemu-keymap 5 # variant : - 6 # options : - 11 # 0: Shift 38 exclam 0x02 shift 40 exclamdown 0x02 shift altgr 44 quotedbl 0x03 shift 46 dead_doubleacute 0x03 shift altgr 50 sterling 0x04 shift 52 dead_tilde 0x04 shift altgr [all …]
|
H A D | pl | 2 # generated by qemu-keymap 5 # variant : - 6 # options : - 11 # 0: Shift 38 exclam 0x02 shift 40 exclamdown 0x02 shift altgr 44 at 0x03 shift 46 questiondown 0x03 shift altgr 50 numbersign 0x04 shift 52 sterling 0x04 shift altgr [all …]
|
H A D | ja | 2 # generated by qemu-keymap 5 # variant : - 6 # options : - 11 # 0: Shift 38 exclam 0x02 shift 42 quotedbl 0x03 shift 46 numbersign 0x04 shift 50 dollar 0x05 shift 54 percent 0x06 shift 58 ampersand 0x07 shift [all …]
|
H A D | is | 2 # generated by qemu-keymap 5 # variant : - 6 # options : - 11 # 0: Shift 38 exclam 0x02 shift 40 exclamdown 0x02 shift altgr 44 quotedbl 0x03 shift 46 oneeighth 0x03 shift altgr 50 numbersign 0x04 shift 52 sterling 0x04 shift altgr [all …]
|
H A D | fr | 2 # generated by qemu-keymap 6 # options : - 11 # 0: Shift 38 1 0x02 shift 40 exclamdown 0x02 shift altgr 44 2 0x03 shift 46 oneeighth 0x03 shift altgr 50 3 0x04 shift 52 sterling 0x04 shift altgr 56 4 0x05 shift [all …]
|
H A D | da | 2 # generated by qemu-keymap 5 # variant : - 6 # options : - 11 # 0: Shift 38 exclam 0x02 shift 40 onesuperior 0x02 shift altgr 44 quotedbl 0x03 shift 46 twosuperior 0x03 shift altgr 50 numbersign 0x04 shift 52 threesuperior 0x04 shift altgr [all …]
|
/qemu/include/qemu/ |
H A D | bitops.h | 9 * See the COPYING.LIB file in the top-level directory. 16 #include "host-utils.h" 27 #define MAKE_64BIT_MASK(shift, length) \ argument 28 (((~0ULL) >> (64 - (length))) << (shift)) 33 * We provide a set of functions which work on arbitrary-length arrays of 37 * - Bits stored in an array of 'unsigned long': set_bit(), clear_bit(), etc 38 * - Bits stored in an array of 'uint32_t': set_bit32(), clear_bit32(), etc 43 * be some guest-visible register view of the bit array. 63 * set_bit - Set a bit in memory 76 * set_bit_atomic - Set a bit in memory atomically [all …]
|
/qemu/target/mips/tcg/ |
H A D | tx79_translate.c | 2 * Toshiba TX79-specific instructions translation routines 5 * Copyright (c) 2021 Philippe Mathieu-Daudé 7 * SPDX-License-Identifier: GPL-2.0-or-later 12 #include "tcg/tcg-op-gvec.h" 14 /* Include the auto-generated decoder. */ 15 #include "decode-tx79.c.inc" 18 * Overview of the TX79-specific instruction set 21 * The R5900 and the C790 have 128-bit wide GPRs, where the upper 64 bits 22 * are only used by the specific quadword (128-bit) LQ/SQ load/store 24 * configure the 128-bit data path as two 64-bit, four 32-bit, eight 16-bit [all …]
|
/qemu/target/m68k/ |
H A D | translate.c | 4 * Copyright (c) 2005-2007 CodeSourcery 23 #include "exec/translation-block.h" 25 #include "tcg/tcg-op.h" 27 #include "qemu/qemu-print.h" 29 #include "exec/helper-proto.h" 30 #include "exec/helper-gen.h" 36 #include "exec/helper-info.c.inc" 82 -offsetof(M68kCPU, env) + in m68k_tcg_init() 85 -offsetof(M68kCPU, env) + in m68k_tcg_init() 107 NULL_QREG = tcg_global_mem_new(tcg_env, -4, "NULL"); in m68k_tcg_init() [all …]
|
/qemu/tests/unit/ |
H A D | test-shift128.c | 2 * Test unsigned left and right shift 5 * See the COPYING.LIB file in the top-level directory. 10 #include "qemu/host-utils.h" 17 int32_t shift; member 63 0x8000000000000000ULL, -1, false }, 67 0x4000000000000000ULL, -2, false }, 69 0x4000000000000000ULL, INT32_MAX - 1, false }, 92 0x0000000000000000ULL, 0x0000000000000080ULL, -200, false }, 102 0x0000000000000001ULL, 0x0000000000000000ULL, -1, false }, 104 0x0000000000000002ULL, 0x0000000000000000ULL, -2, false }, [all …]
|
/qemu/target/hexagon/ |
H A D | fma_emu.c | 2 * Copyright(c) 2019-2021 Qualcomm Innovation Center, Inc. All Rights Reserved. 70 return -1; in float64_getexp() 82 return -1; in float32_getexp() 113 p->mant = int128_zero(); in accum_init() 114 p->exp = 0; in accum_init() 115 p->sign = 0; in accum_init() 116 p->guard = 0; in accum_init() 117 p->round = 0; in accum_init() 118 p->sticky = 0; in accum_init() 123 a.exp--; in accum_norm_left() [all …]
|
/qemu/target/arm/tcg/ |
H A D | translate-neon.c | 5 * Copyright (c) 2005-2007 CodeSourcery 25 #include "translate-a32.h" 28 #include "decode-neon-dp.c.inc" 29 #include "decode-neon-ls.c.inc" 30 #include "decode-neon-shared.c.inc" 124 /* UNDEF accesses to D16-D31 if they don't exist. */ in do_neon_ddda() 131 * Q will be 0b111 for all Q-reg instructions, otherwise in do_neon_ddda() 132 * when we have mixed Q- and D-reg inputs. in do_neon_ddda() 154 /* UNDEF accesses to D16-D31 if they don't exist. */ in do_neon_ddda_env() 161 * Q will be 0b111 for all Q-reg instructions, otherwise in do_neon_ddda_env() [all …]
|
/qemu/libdecnumber/dpd/ |
H A D | decimal64.c | 1 /* Decimal 64-bit format module for the decNumber C Library. 29 02110-1301, USA. */ 31 /* ------------------------------------------------------------------ */ 32 /* Decimal 64-bit format module */ 33 /* ------------------------------------------------------------------ */ 41 /* ------------------------------------------------------------------ */ 72 /* ------------------------------------------------------------------ */ 73 /* decimal64FromNumber -- convert decNumber to decimal64 */ 88 /* ------------------------------------------------------------------ */ 97 uInt targar[2]={0, 0}; /* target 64-bit */ in decimal64FromNumber() [all …]
|
/qemu/util/ |
H A D | host-utils.c | 27 #include "qemu/host-utils.h" 66 /* Unsigned 64x64 -> 128 multiplication */ 72 /* Signed 64x64 -> 128 multiplication */ 81 rh -= a; in muls64() 84 rh -= b; in muls64() 90 * Unsigned 128-by-64 division. 113 dhi = (dhi << sh) | (dlo >> (64 - sh)); in divu128() 123 dhighest = dhi >> (64 - sh); in divu128() 124 dhi = (dhi << sh) | (dlo >> (64 - sh)); in divu128() 132 * (dhi - divisor) < divisor in divu128() [all …]
|