hjl / source-git / glibc

Forked from source-git/glibc 3 years ago
Clone

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

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