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

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