History log of /freebsd/tests/sys/sys/qmath_test.c (Results 1 – 11 of 11)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/14.0.0
# b3e76948 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line .h pattern

Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/


Revision tags: release/13.2.0, release/12.4.0, release/13.1.0, release/12.3.0, release/13.0.0, release/12.2.0, release/11.4.0
# 59abbffa 31-Jan-2020 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r357270 through r357349.


# 037d7530 29-Jan-2020 Conrad Meyer <cem@FreeBSD.org>

Revert r357246

I have no idea what this code is trying to do, leave it be.

Reported by: lwhsu


# bb1d0df5 29-Jan-2020 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r357179 through r357269.


# d71e0db2 29-Jan-2020 Conrad Meyer <cem@FreeBSD.org>

qmath(3) test: Replace overcomplicated abomination with arc4random(3)

The horrific GENRAND construction bent over backwards to construct 64-bit
signed integers from the 31-bit output of random(3) fo

qmath(3) test: Replace overcomplicated abomination with arc4random(3)

The horrific GENRAND construction bent over backwards to construct 64-bit
signed integers from the 31-bit output of random(3) for about 20 numbers per
test. Reproducibility wasn't a goal: random(3) was seeded with
srandomdev(3). Speed is not a factor for generating 20 integers with
arc4random(3). Range is not a factor: all uses did not bound the range
beyond that of the full [INT64_MIN, INT64_MAX]. Just use arc4random(3).

Reported by: Coverity
CIDs: 1404809, 1404817, 1404838, 1404840 and about 6x other
identical reports of dubious code relating to the
construction

show more ...


Revision tags: release/12.1.0
# f993ed2f 09-Sep-2019 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r351732 through r352104.


# 7fb6c523 03-Sep-2019 Li-Wen Hsu <lwhsu@FreeBSD.org>

Temporarily skip sys.sys.qmath_test.qdivq_s64q in CI because it is unstable

PR: 240219
Discussed with: trasz
Sponsored by: The FreeBSD Foundation


# c5c3ba6b 03-Sep-2019 Dimitry Andric <dim@FreeBSD.org>

Merge ^/head r351317 through r351731.


# 3dd61c21 29-Aug-2019 Edward Tomasz Napierala <trasz@FreeBSD.org>

Fix qmath(3) build problems with GCC 8.

Discussed with: asomers
Sponsored by: Klara Systems
Differential Revision: https://reviews.freebsd.org/D21442


# 912b6fa3 27-Aug-2019 Edward Tomasz Napierala <trasz@FreeBSD.org>

Fix build on 32 bit archs.


# 5a38af1f 27-Aug-2019 Edward Tomasz Napierala <trasz@FreeBSD.org>

Introduce <sys/qmath.h>, a fixed-point math library from Netflix.

This makes it possible to perform mathematical operations
on
fractional values without using floating point. It operates on Q
number

Introduce <sys/qmath.h>, a fixed-point math library from Netflix.

This makes it possible to perform mathematical operations
on
fractional values without using floating point. It operates on Q
numbers, which are integer-sized, opaque structures initialized
to hold a chosen number of integer and fractional
bits.


For a general description of the Q number system, see the "Fixed Point
Representation & Fractional Math" whitepaper[1]; for the actual
API see the qmath(3) man page.

This is one of dependencies for the upcoming stats(3) framework[2]
that will be applied to the TCP stack in a later commit.

1. https://www.superkits.net/whitepapers/Fixed%20Point%20Representation%20&%20Fractional%20Math.pdf
2. https://reviews.freebsd.org/D20477

Reviewed by: bcr (man pages, earlier version), sef (earlier version)
Discussed with: cem, dteske, imp, lstewart
Sponsored By: Klara Inc, Netflix
Obtained from: Netflix
Differential Revision: https://reviews.freebsd.org/D20116

show more ...