Revision 2119bb8f libavutil/internal.h

View differences:

libavutil/internal.h
172 172

  
173 173
static inline int av_log2_16bit(unsigned int v);
174 174

  
175
static inline av_const unsigned int ff_sqrt(unsigned int a)
175
static inline unsigned int ff_sqrt(unsigned int a)
176 176
{
177 177
    unsigned int b;
178 178

  
......
267 267
}
268 268

  
269 269
#ifndef HAVE_LLRINT
270
static av_always_inline av_const long long llrint(double x)
270
static av_always_inline long long llrint(double x)
271 271
{
272 272
    return rint(x);
273 273
}
274 274
#endif /* HAVE_LLRINT */
275 275

  
276 276
#ifndef HAVE_LRINT
277
static av_always_inline av_const long int lrint(double x)
277
static av_always_inline long int lrint(double x)
278 278
{
279 279
    return rint(x);
280 280
}
281 281
#endif /* HAVE_LRINT */
282 282

  
283 283
#ifndef HAVE_LRINTF
284
static av_always_inline av_const long int lrintf(float x)
284
static av_always_inline long int lrintf(float x)
285 285
{
286 286
    return (int)(rint(x));
287 287
}
288 288
#endif /* HAVE_LRINTF */
289 289

  
290 290
#ifndef HAVE_ROUND
291
static av_always_inline av_const double round(double x)
291
static av_always_inline double round(double x)
292 292
{
293 293
    return (x > 0) ? floor(x + 0.5) : ceil(x - 0.5);
294 294
}
295 295
#endif /* HAVE_ROUND */
296 296

  
297 297
#ifndef HAVE_ROUNDF
298
static av_always_inline av_const float roundf(float x)
298
static av_always_inline float roundf(float x)
299 299
{
300 300
    return (x > 0) ? floor(x + 0.5) : ceil(x - 0.5);
301 301
}

Also available in: Unified diff