Blame sysdeps/powerpc/fpu/get-rounding-mode.h

Packit Bot 592997
/* Determine floating-point rounding mode within libc.  powerpc64 version.
Packit Bot 592997
   Copyright (C) 2019 Free Software Foundation, Inc.
Packit Bot 592997
   This file is part of the GNU C Library.
Packit Bot 592997
Packit Bot 592997
   The GNU C Library is free software; you can redistribute it and/or
Packit Bot 592997
   modify it under the terms of the GNU Lesser General Public
Packit Bot 592997
   License as published by the Free Software Foundation; either
Packit Bot 592997
   version 2.1 of the License, or (at your option) any later version.
Packit Bot 592997
Packit Bot 592997
   The GNU C Library is distributed in the hope that it will be useful,
Packit Bot 592997
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Bot 592997
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Bot 592997
   Lesser General Public License for more details.
Packit Bot 592997
Packit Bot 592997
   You should have received a copy of the GNU Lesser General Public
Packit Bot 592997
   License along with the GNU C Library; if not, see
Packit Bot 592997
   <http://www.gnu.org/licenses/>.  */
Packit Bot 592997
Packit Bot 592997
#ifndef _POWERPC64_GET_ROUNDING_MODE_H
Packit Bot 592997
#define _POWERPC64_GET_ROUNDING_MODE_H	1
Packit Bot 592997
Packit Bot 592997
#include <fenv.h>
Packit Bot 592997
#include <fpu_control.h>
Packit Bot 592997
Packit Bot 592997
/* Return the floating-point rounding mode.  */
Packit Bot 592997
Packit Bot 592997
static inline int
Packit Bot 592997
get_rounding_mode (void)
Packit Bot 592997
{
Packit Bot 592997
  return _FPU_GET_RC ();
Packit Bot 592997
}
Packit Bot 592997
Packit Bot 592997
#endif /* get-rounding-mode.h */