fixed.c
Upload User: tuheem
Upload Date: 2007-05-01
Package Size: 21889k
Code Size: 0k
Development Platform:

Visual C++

  1. /*
  2.  * libmad - MPEG audio decoder library
  3.  */
  4. # ifdef HAVE_CONFIG_H
  5. #  include "config.h"
  6. # endif
  7. # include "global.h"
  8. # include "fixed.h"
  9. /*
  10.  * NAME: fixed->abs()
  11.  * DESCRIPTION: return absolute value of a fixed-point number
  12.  */
  13. mad_fixed_t mad_f_abs(mad_fixed_t x)
  14. {
  15.   return x < 0 ? -x : x;
  16. }