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

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