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

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