/linux/arch/arm/nwfpe/ |
H A D | softfloat-specialize | 5 This C source fragment is part of the SoftFloat IEC/IEEE Floating-point 11 National Science Foundation under grant MIP-9311980. The original version 12 of this code was written as part of a project to build a fixed-point vector 16 http://www.jhauser.us/arithmetic/SoftFloat-2b/SoftFloat-source.txt 33 ------------------------------------------------------------------------------- 34 Underflow tininess-detection mode, statically initialized to default value. 36 ------------------------------------------------------------------------------- 41 ------------------------------------------------------------------------------- 42 Raises the exceptions specified by `flags'. Floating-point traps can be 48 Moved this function out of softfloat-specialize into fpmodule.c. [all …]
|
H A D | softfloat.c | 4 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 …]
|
H A D | softfloat.h | 5 This C header file is part of the SoftFloat IEC/IEEE Floating-point 11 National Science Foundation under grant MIP-9311980. The original version 12 of this code was written as part of a project to build a fixed-point vector 16 http://www.jhauser.us/arithmetic/SoftFloat-2b/SoftFloat-source.txt 37 ------------------------------------------------------------------------------- 38 The macro `FLOATX80' must be defined to enable the extended double-precision 39 floating-point format `floatx80'. If this macro is not defined, the 42 ------------------------------------------------------------------------------- 49 ------------------------------------------------------------------------------- 50 Software IEC/IEEE floating-point types. [all …]
|
/linux/Documentation/timers/ |
H A D | hrtimers.rst | 2 hrtimers - subsystem for high-resolution kernel timers 5 This patch introduces a new subsystem for high-resolution kernel timers. 9 back and forth trying to integrate high-resolution and high-precision 11 such high-resolution timer implementations in practice, we came to the 18 - the forced handling of low-resolution and high-resolution timers in 21 32-bitness assumptions, and has been honed and micro-optimized for a 23 for many years - and thus even small extensions to it easily break 26 current usage - but it is simply not suitable to be extended for 27 high-res timers. 29 - the unpredictable [O(N)] overhead of cascading leads to delays which [all …]
|
/linux/drivers/firmware/efi/libstub/ |
H A D | vsprintf.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* -*- linux-c -*- ------------------------------------------------------- * 5 * Copyright 2007 rPath, Inc. - All Rights Reserved 7 * ----------------------------------------------------------------------- */ 10 * Oh, it's a waste of space, but oh-so-yummy for debugging. 28 i = i * 10 + *((*s)++) - '0'; in skip_atoi() 44 *--end = '0' + (r - q * 10); in put_dec_full4() 47 *--end = '0' + r; in put_dec_full4() 57 * (second call in the put_dec code, assuming n is all-ones). 64 put_dec_full4(end, x - q * 10000); in put_dec_helper4() [all …]
|
/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | sensirion,shtc1.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Christopher Ruehl chris.ruehl@gtsys.com.hk 14 designed especially for battery-driven high-volume consumer electronics 24 - sensirion,shtc1 25 - sensirion,shtw1 26 - sensirion,shtc3 31 sensirion,blocking-io: 36 sensirion,low-precision: [all …]
|
H A D | adi,ltc2947.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Analog Devices LTC2947 high precision power and energy monitor 10 - Nuno Sá <nuno.sa@analog.com> 13 Analog Devices LTC2947 high precision power and energy monitor over SPI or I2C. 15 https://www.analog.com/media/en/technical-documentation/data-sheets/LTC2947.pdf 20 - adi,ltc2947 33 adi,accumulator-ctl-pol: 41 $ref: /schemas/types.yaml#/definitions/uint32-array [all …]
|
/linux/arch/m68k/fpsp040/ |
H A D | util.S | 12 | g_rndpr: returns the rounding precision. 48 | ;largest -ext 70 | ovf_r_k --- overflow result calculation 74 | This forces the destination precision to be extended 86 | ovf_r_x2 --- overflow result calculation 93 | This sets the round precision according to the user's FPCR unless the 96 | If the instruction is fsgldiv of fsglmul, the rounding precision must be 97 | extended. If the instruction is not fsgldiv or fsglmul but a force- 98 | precision instruction, the rounding precision is then set to the force 99 | precision. [all …]
|
H A D | smovecr.S | 52 cmpib #0x0a,%d0 |check range $01 - $0a 54 cmpib #0x0e,%d0 |check range $0b - $0e 56 cmpib #0x2f,%d0 |check range $10 - $2f 58 cmpib #0x3f,%d0 |check range $30 - $3f 78 subil #0xb,%d0 |make offset in 0 - 4 range 86 ble set_finx |if 0 - 2, it is inexact 91 ble set_finx |if 0 - 2, it is inexact 96 ble set_finx |if 0 - 2, it is inexact 99 subil #0x30,%d0 |make offset in 0 - f range 107 ble set_finx |if 0 - 1, it is inexact [all …]
|
H A D | round.S | 21 | round --- round result according to precision/mode 24 | d1(high word) contains rounding precision: 28 | d1(low word) contains rounding mode: 36 | a0 is preserved and the g-r-s bits in d0 are cleared. 37 | The result is not typed - the tag field is invalid. The 41 | inexact (i.e. if any of the g-r-s bits were set). 50 | :rounding precision and sets 51 | ;the appropriate g-r-s bits. 117 asll #1,%d0 |shift g-bit to c-bit 124 | ext_grs --- extract guard, round and sticky bits [all …]
|
H A D | ssin.S | 9 | Input: Double-extended number X in location pointed to 20 | result is subsequently rounded to double precision. The 21 | result is provably monotonic in double precision. 32 | 2. If |X| >= 15Pi or |X| < 2**(-40), go to 7. 40 | 5. (k is odd) Set j := (k-1)/2, sgn := (-1)**j. Return sgn*cos(r) 45 | 6. (k is even) Set j := k/2, sgn := (-1)**j. Return sgn*sin(r) 52 | 8. (|X|<2**(-40)) If SIN is invoked, return X; otherwise return 1. 57 | 1. If |X| >= 15Pi or |X| < 2**(-40), go to 6. 64 | 4. (k is odd) Set j1 := (k-1)/2, j2 := j1 (EOR) (k mod 2), i.e. 66 | sgn1 := (-1)**j1, sgn2 := (-1)**j2. [all …]
|
/linux/Documentation/sound/designs/ |
H A D | timestamping.rst | 7 - Trigger_tstamp is the system time snapshot taken when the .trigger 11 estimate with a delay. In the latter two cases, the low-level driver 17 - tstamp is the current system timestamp updated during the last 19 The difference (tstamp - trigger_tstamp) defines the elapsed time. 29 - ``avail`` reports how much can be written in the ring buffer 30 - ``delay`` reports the time it will take to hear a new sample after all 43 ascii-art, this could be represented as follows (for the playback 47 --------------------------------------------------------------> time 53 |< codec delay >|<--hw delay-->|<queued samples>|<---avail->| 54 |<----------------- delay---------------------->| | [all …]
|
/linux/arch/arm/vfp/ |
H A D | vfp.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 13 val = val >> shift | ((val << (32 - shift)) != 0); in vfp_shiftright32jamming() 24 val = val >> shift | ((val << (64 - shift)) != 0); in vfp_shiftright64jamming() 128 z -= 0x100000000ULL; in vfp_estimate_div128to64() 147 * Single-precision 159 * VFP_SINGLE_MANTISSA_BITS - number of bits in the mantissa 160 * VFP_SINGLE_EXPONENT_BITS - number of bits in the exponent 161 * VFP_SINGLE_LOW_BITS - number of low bits in the unpacked significand 166 #define VFP_SINGLE_LOW_BITS (32 - VFP_SINGLE_MANTISSA_BITS - 2) 167 #define VFP_SINGLE_LOW_BITS_MASK ((1 << VFP_SINGLE_LOW_BITS) - 1) [all …]
|
/linux/Documentation/devicetree/bindings/iio/frequency/ |
H A D | adi,adf4350.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Michael Hennerich <michael.hennerich@analog.com> 15 - adi,adf4350 16 - adi,adf4351 21 spi-max-frequency: 28 clock-names: 31 '#clock-cells': 34 clock-output-names: [all …]
|
/linux/drivers/hwmon/ |
H A D | shtc1.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 #include <linux/hwmon-sysfs.h> 19 /* commands (high precision mode) */ 23 /* commands (low precision mode) */ 41 /* delays for non-blocking i2c commands, both in us */ 75 int ret = i2c_master_send(client, data->command, SHTC1_CMD_LENGTH); in shtc1_update_values() 77 dev_err(&client->dev, "failed to send command: %d\n", ret); in shtc1_update_values() 78 return ret < 0 ? ret : -EIO; in shtc1_update_values() 87 if (!data->setup.blocking_io) in shtc1_update_values() 88 usleep_range(data->nonblocking_wait_time, in shtc1_update_values() [all …]
|
/linux/arch/m68k/math-emu/ |
H A D | fp_util.S | 23 * 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. 142 clr.l (%a0) | low lword = 0 [all …]
|
/linux/Documentation/hwmon/ |
H A D | ltc2947.rst | 1 Kernel drivers ltc2947-i2c and ltc2947-spi 10 Addresses scanned: - 14 https://www.analog.com/media/en/technical-documentation/data-sheets/LTC2947.pdf 21 The LTC2947 is a high precision power and energy monitor that measures current, 37 The following attributes are supported. Limits are read-write, reset_history 38 is write-only and all the other attributes are read-only. 41 in0_input VP-VM voltage (mV). 49 in0_label Channel label (VP-VM) 61 curr1_input IP-IM Sense current (mA) 69 curr1_label Channel label (IP-IM) [all …]
|
/linux/arch/x86/math-emu/ |
H A D | README | 1 +---------------------------------------------------------------------------+ 2 | wm-FPU-emu an FPU emulator for 80386 and 80486SX microprocessors. | 6 | Australia. E-mail billm@melbpc.org.au | 21 +---------------------------------------------------------------------------+ 25 wm-FPU-emu is an FPU emulator for Linux. It is derived from wm-emu387 27 msdos); wm-emu387 was in turn based upon emu387 which was written by 31 My target FPU for wm-FPU-emu is that described in the Intel486 40 wm-FPU-emu does not implement all of the behaviour of the 80486 FPU, 52 --Bill Metzenthen 56 ----------------------- Internals of wm-FPU-emu ----------------------- [all …]
|
/linux/arch/parisc/math-emu/ |
H A D | decode_exc.c | 1 // 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> 47 #define copropbit 1<<31-2 /* bit position 2 */ 51 #define twobits 3 /* mask low-order 2 bits */ 52 #define fivebits 31 /* mask low-order 5 bits */ 73 /* Single precision floating-point definitions */ 75 # define Sgl_decrement(sgl_value) Sall(sgl_value)-- 78 /* Double precision floating-point definitions */ [all …]
|
/linux/Documentation/devicetree/bindings/iio/amplifiers/ |
H A D | adi,ada4250.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Antoniu Miclaus <antoniu.miclaus@analog.com> 13 Precision Low Power, 110kHz, 26uA, Programmable Gain Instrumentation Amplifier. 18 - adi,ada4250 23 avdd-supply: true 25 adi,refbuf-enable: 31 - compatible 32 - reg [all …]
|
/linux/drivers/iio/gyro/ |
H A D | adis16130.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ADIS16130 Digital Output, High Precision Angular Rate Sensor driver 21 /* 1 = data-ready signal low when unread data on all channels; */ 33 #define ADIS16130_MODE_24BIT (1 << 1) /* 1 = 24-bit resolution; */ 36 * struct adis16130_state - device instance specific data 52 .tx_buf = st->buf, in adis16130_spi_read() 53 .rx_buf = st->buf, in adis16130_spi_read() 57 mutex_lock(&st->buf_lock); in adis16130_spi_read() 59 st->buf[0] = ADIS16130_CON_RD | reg_addr; in adis16130_spi_read() 60 st->buf[1] = st->buf[2] = st->buf[3] = 0; in adis16130_spi_read() [all …]
|
/linux/drivers/pwm/ |
H A D | pwm-visconti.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Toshiba Visconti pulse-width-modulation controller driver 5 * Copyright (c) 2020 - 2021 TOSHIBA CORPORATION 6 * Copyright (c) 2020 - 2021 Toshiba Electronic Devices & Storage Corporation 11 * - The fixed input clock is running at 1 MHz and is divided by either 1, 13 * - When the settings of the PWM are modified, the new values are shadowed 17 * - Disabling the hardware completes the currently running period and keeps 18 * the output at low level at all times. 51 if (!state->enabled) { in visconti_pwm_apply() 52 writel(0, priv->base + PIPGM_PCSR(pwm->hwpwm)); in visconti_pwm_apply() [all …]
|
/linux/Documentation/virt/kvm/x86/ |
H A D | timekeeping.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 Timekeeping Virtualization for X86-Based Architectures 32 information relevant to KVM and hardware-based virtualization. 41 2.1. i8254 - PIT 42 ---------------- 46 channels which can be programmed to deliver periodic or one-shot interrupts. 53 The PIT uses I/O ports 0x40 - 0x43. Access to the 16-bit counters is done 59 -------------- ---------------- 61 | 1.1932 MHz|---------->| CLOCK OUT | ---------> IRQ 0 63 -------------- | +->| GATE TIMER 0 | [all …]
|
/linux/Documentation/devicetree/bindings/iio/adc/ |
H A D | maxim,max34408.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ivan Mikhaylov <fr0st61te@gmail.com> 13 The MAX34408/MAX34409 are two- and four-channel current monitors that are 15 unidirectional current sensor offers precision high-side operation with a 16 low full-scale sense voltage. The devices automatically sequence through 17 two or four channels and collect the current-sense samples and average them 19 user-programmable digital thresholds to indicate overcurrent conditions. 24 https://www.analog.com/media/en/technical-documentation/data-sheets/MAX34408-MAX34409.pdf [all …]
|
/linux/Documentation/devicetree/bindings/iio/resolver/ |
H A D | adi,ad2s1210.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Analog Devices AD2S1210 Resolver-to-Digital Converter 10 - Michael Hennerich <michael.hennerich@analog.com> 13 The AD2S1210 is a complete 10-bit to 16-bit resolution tracking 14 resolver-to-digital converter, integrating an on-board programmable 29 0 0 Normal mode - position output 30 0 1 Normal mode - velocity output 44 Note on SPI connections: The CS line on the AD2S1210 should hard-wired to [all …]
|