31 May, 2019

1 commit

  • Based on 1 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version this program is distributed in the
    hope that it will be useful but without any warranty without even
    the implied warranty of merchantability or fitness for a particular
    purpose see the gnu general public license for more details you
    should have received a copy of the gnu general public license along
    with this program if not write to the free software foundation inc
    59 temple place suite 330 boston ma 02111 1307 usa

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 1334 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Richard Fontana
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070033.113240726@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

03 Mar, 2015

1 commit

  • The cos table used at fixp-arith.h has only 8 bits of precision.
    That causes problems if it is reused on other drivers.

    As some media drivers require a higher precision sin/cos
    implementation, replace the current implementation by one that
    will provide 32 bits precision.

    The values generated by the new implementation matches the
    32 bit precision of glibc's sin for an angle measured in
    integer degrees.

    It also provides support for fractional angles via linear
    interpolation. On experimental calculus, when used a table
    with a 0.001 degree angle, the maximum error for sin is
    0.000038, which is likely good enough for practical purposes.

    There are some logic there that seems to be specific to the
    usage inside ff-memless.c. Move those logic to there, as they're
    not needed elsewhere.

    Cc: Hans de Goede
    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Prashant Laddha
    Signed-off-by: Hans Verkuil
    Acked-by: Dmitry Torokhov
    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

14 May, 2012

1 commit