Lines Matching +full:x +full:- +full:forwarded +full:- +full:for
2 * Copyright (c) 2017-2022 Arm Limited.
4 * SPDX-License-Identifier: MIT
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
60 /** Round floating-point value with half value rounding away from zero.
65 * @param[in] value floating-point value to be rounded.
67 * @return Floating-point value of rounded @p value.
75 /** Round floating-point value with half value rounding away from zero and cast to long
80 * @param[in] value floating-point value to be rounded.
82 * @return Floating-point value of rounded @p value casted to long
90 /** Truncate floating-point value.
95 * @param[in] value floating-point value to be truncated.
97 * @return Floating-point value of truncated @p value.
105 /** Composes a floating point value with the magnitude of @p x and the sign of @p y.
110 * @param[in] x value that contains the magnitude to be used in constructing the result.
113 * @return Floating-point value with magnitude of @p x and sign of @p y.
116 inline T copysign(T x, T y) in copysign() argument
118 return ::copysign(x, y); in copysign()
121 /** Computes (x*y) + z as if to infinite precision and rounded only once to fit the result type.
126 * @param[in] x floating-point value
127 * @param[in] y floating-point value
128 * @param[in] z floating-point value
130 * @return Result floating point value equal to (x*y) + z.c
137 inline T fma(T x, T y, T z) in fma() argument
139 return ::fma(x, y, z); in fma()
146 * @param[in] n Up to buf_size - 1 characters may be written, plus the null ending character
147 * @param[in] fmt Pointer to a null-ended multibyte string specifying how to interpret the data.
148 * @param[in] args Arguments forwarded to snprintf.
150 * @return Number of characters that would have been written for a sufficiently large buffer
159 /** Rounds the floating-point argument arg to an integer value in floating-point format, using the …
174 /** Round floating-point value with half value rounding away from zero.
179 * @param[in] value floating-point value to be rounded.
181 * @return Floating-point value of rounded @p value.
186 …rind's mismatches: when running from Valgrind the call to std::round(-4.500000) == -4.000000 inste…
187 return (value < 0.f) ? static_cast<int>(value - 0.5f) : static_cast<int>(value + 0.5f);
190 /** Round floating-point value with half value rounding away from zero and cast to long
195 * @param[in] value floating-point value to be rounded.
197 * @return Floating-point value of rounded @p value casted to long
205 /** Truncate floating-point value.
210 * @param[in] value floating-point value to be truncated.
212 * @return Floating-point value of truncated @p value.
220 /** Composes a floating point value with the magnitude of @p x and the sign of @p y.
225 * @param[in] x value that contains the magnitude to be used in constructing the result.
228 * @return Floating-point value with magnitude of @p x and sign of @p y.
231 inline T copysign(T x, T y)
233 return std::copysign(x, y);
236 /** Computes (x*y) + z as if to infinite precision and rounded only once to fit the result type.
241 * @param[in] x floating-point value
242 * @param[in] y floating-point value
243 * @param[in] z floating-point value
245 * @return Result floating point value equal to (x*y) + z.
252 inline T fma(T x, T y, T z)
254 return std::fma(x, y, z);
261 * @param[in] n Up to buf_size - 1 characters may be written, plus the null ending character
262 * @param[in] fmt Pointer to a null-ended multibyte string specifying how to interpret the data.
263 * @param[in] args Arguments forwarded to std::snprintf.
265 * @return Number of characters that would have been written for a sufficiently large buffer