/*-*-C++-*------------------------------------------------------------------
 * gaol -- a light and fast C++ interval library
 *--------------------------------------------------------------------------
 * This file is part of the gaol distribution. It has been developed at
 * the Institut de Recherche en Informatique de Nantes, France
 * 
 * Copyright (c) 2001-2003 Institut de Recherche en Informatique de Nantes
 *--------------------------------------------------------------------------
 * gaol is a software distributed WITHOUT ANY WARRANTY. Read the associated 
 * COPYING file for information.
 *--------------------------------------------------------------------------
 * CVS: $Id: gaol_fpu_c99.h,v 1.3 2006/03/22 08:35:14 goualard Exp $
 * Last modified: Tue Jan 13 17:29:07 2004 on victory.irin.sciences.univ-nantes.fr
 * By: Frédéric Goualard <Frederic.Goualard@irin.univ-nantes.fr>
 *--------------------------------------------------------------------------*/

/*!
  \file   gaol_fpu_c99.h
  \brief  

  <long description>

  \author Frédéric Goualard
  \date   2004-01-13
*/


#ifndef __gaol_fpu_c99_h__
#define __gaol_fpu_c99_h__

#include <fenv.h>

namespace gaol {

inline  void
round_downward(void)
{  
  fesetround(FE_DOWNWARD);
}

inline  void 
round_upward(void)  
{
  fesetround(FE_UPWARD);
}

inline  void 
round_nearest(void)  
{
  fesetround(FE_TONEAREST);
}

} // namespace gaol

#endif /* __gaol_fpu_c99_h__ */
