44 template <
typename FloatType>
45 static FloatType
cosh (FloatType
x)
noexcept
48 auto numerator = -(39251520 + x2 * (18471600 + x2 * (1075032 + 14615 * x2)));
49 auto denominator = -39251520 + x2 * (1154160 + x2 * (-16632 + 127 * x2));
50 return numerator / denominator;
59 template <
typename FloatType>
60 static void cosh (FloatType* values,
size_t numValues)
noexcept
62 for (
size_t i = 0;
i < numValues; ++
i)
72 template <
typename FloatType>
73 static FloatType
sinh (FloatType
x)
noexcept
76 auto numerator = -
x * (11511339840 + x2 * (1640635920 + x2 * (52785432 + x2 * 479249)));
77 auto denominator = -11511339840 + x2 * (277920720 + x2 * (-3177720 + x2 * 18361));
78 return numerator / denominator;
87 template <
typename FloatType>
88 static void sinh (FloatType* values,
size_t numValues)
noexcept
90 for (
size_t i = 0;
i < numValues; ++
i)
100 template <
typename FloatType>
101 static FloatType
tanh (FloatType
x)
noexcept
104 auto numerator =
x * (135135 + x2 * (17325 + x2 * (378 + x2)));
105 auto denominator = 135135 + x2 * (62370 + x2 * (3150 + 28 * x2));
106 return numerator / denominator;
115 template <
typename FloatType>
116 static void tanh (FloatType* values,
size_t numValues)
noexcept
118 for (
size_t i = 0;
i < numValues; ++
i)
129 template <
typename FloatType>
130 static FloatType
cos (FloatType
x)
noexcept
133 auto numerator = -(-39251520 + x2 * (18471600 + x2 * (-1075032 + 14615 * x2)));
134 auto denominator = 39251520 + x2 * (1154160 + x2 * (16632 + x2 * 127));
135 return numerator / denominator;
144 template <
typename FloatType>
145 static void cos (FloatType* values,
size_t numValues)
noexcept
147 for (
size_t i = 0;
i < numValues; ++
i)
157 template <
typename FloatType>
158 static FloatType
sin (FloatType
x)
noexcept
161 auto numerator = -
x * (-11511339840 + x2 * (1640635920 + x2 * (-52785432 + x2 * 479249)));
162 auto denominator = 11511339840 + x2 * (277920720 + x2 * (3177720 + x2 * 18361));
163 return numerator / denominator;
172 template <
typename FloatType>
173 static void sin (FloatType* values,
size_t numValues)
noexcept
175 for (
size_t i = 0;
i < numValues; ++
i)
185 template <
typename FloatType>
186 static FloatType
tan (FloatType
x)
noexcept
189 auto numerator =
x * (-135135 + x2 * (17325 + x2 * (-378 + x2)));
190 auto denominator = -135135 + x2 * (62370 + x2 * (-3150 + 28 * x2));
191 return numerator / denominator;
200 template <
typename FloatType>
201 static void tan (FloatType* values,
size_t numValues)
noexcept
203 for (
size_t i = 0;
i < numValues; ++
i)
214 template <
typename FloatType>
215 static FloatType
exp (FloatType
x)
noexcept
217 auto numerator = 1680 +
x * (840 +
x * (180 +
x * (20 +
x)));
218 auto denominator = 1680 +
x *(-840 +
x * (180 +
x * (-20 +
x)));
219 return numerator / denominator;
228 template <
typename FloatType>
229 static void exp (FloatType* values,
size_t numValues)
noexcept
231 for (
size_t i = 0;
i < numValues; ++
i)
241 template <
typename FloatType>
244 auto numerator =
x * (7560 +
x * (15120 +
x * (9870 +
x * (2310 +
x * 137))));
245 auto denominator = 7560 +
x * (18900 +
x * (16800 +
x * (6300 +
x * (900 + 30 *
x))));
246 return numerator / denominator;
255 template <
typename FloatType>
256 static void logNPlusOne (FloatType* values,
size_t numValues)
noexcept
258 for (
size_t i = 0;
i < numValues; ++
i)
register unsigned i
Definition inflate.c:1575
unsigned x[BMAX+1]
Definition inflate.c:1586
Definition juce_AudioBlock.h:29
Definition carla_juce.cpp:31
Definition juce_FastMathApproximations.h:37
static void cos(FloatType *values, size_t numValues) noexcept
Definition juce_FastMathApproximations.h:145
static FloatType tanh(FloatType x) noexcept
Definition juce_FastMathApproximations.h:101
static void tanh(FloatType *values, size_t numValues) noexcept
Definition juce_FastMathApproximations.h:116
static FloatType sinh(FloatType x) noexcept
Definition juce_FastMathApproximations.h:73
static FloatType sin(FloatType x) noexcept
Definition juce_FastMathApproximations.h:158
static FloatType logNPlusOne(FloatType x) noexcept
Definition juce_FastMathApproximations.h:242
static void sin(FloatType *values, size_t numValues) noexcept
Definition juce_FastMathApproximations.h:173
static FloatType exp(FloatType x) noexcept
Definition juce_FastMathApproximations.h:215
static void logNPlusOne(FloatType *values, size_t numValues) noexcept
Definition juce_FastMathApproximations.h:256
static FloatType cos(FloatType x) noexcept
Definition juce_FastMathApproximations.h:130
static FloatType tan(FloatType x) noexcept
Definition juce_FastMathApproximations.h:186
static void cosh(FloatType *values, size_t numValues) noexcept
Definition juce_FastMathApproximations.h:60
static void sinh(FloatType *values, size_t numValues) noexcept
Definition juce_FastMathApproximations.h:88
static void exp(FloatType *values, size_t numValues) noexcept
Definition juce_FastMathApproximations.h:229
static FloatType cosh(FloatType x) noexcept
Definition juce_FastMathApproximations.h:45
static void tan(FloatType *values, size_t numValues) noexcept
Definition juce_FastMathApproximations.h:201