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