Go to the source code of this file.
|
void | debug (const sreal &ref) |
|
void | debug (const sreal *ptr) |
|
sreal & | operator+= (sreal &a, const sreal &b) |
|
sreal & | operator-= (sreal &a, const sreal &b) |
|
sreal & | operator/= (sreal &a, const sreal &b) |
|
sreal & | operator*= (sreal &a, const sreal &b) |
|
bool | operator!= (const sreal &a, const sreal &b) |
|
bool | operator> (const sreal &a, const sreal &b) |
|
bool | operator<= (const sreal &a, const sreal &b) |
|
bool | operator>= (const sreal &a, const sreal &b) |
|
sreal | operator<< (const sreal &a, int exp) |
|
sreal | operator>> (const sreal &a, int exp) |
|
◆ SREAL_ABS
◆ SREAL_BITS
◆ SREAL_MAX_EXP
#define SREAL_MAX_EXP (INT_MAX / 4) |
◆ SREAL_MAX_SIG
◆ SREAL_MIN_SIG
◆ SREAL_PART_BITS
#define SREAL_PART_BITS 31 |
Definitions for simple data type for real numbers.
Copyright (C) 2002-2024 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>.
Referenced by sreal::normalize_down(), sreal::normalize_up(), sreal::operator/(), sreal::to_int(), and sreal::to_nearest_int().
◆ SREAL_SIGN
◆ UINT64_BITS
◆ debug() [1/2]
void debug |
( |
const sreal & | ref | ) |
|
|
extern |
◆ debug() [2/2]
void debug |
( |
const sreal * | ptr | ) |
|
|
extern |
◆ operator!=()
◆ operator*=()
◆ operator+=()
◆ operator-=()
◆ operator/=()
◆ operator<<()
◆ operator<=()
◆ operator>()
◆ operator>=()
◆ operator>>()