|
Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
|
#include <rw/_defs.h>#include <limits>#include <climits>#include <cstdlib>#include <cstdio>#include <float.h>#include <math.h>#include <ieeefp.h>#include <rw_driver.h>
Go to the source code of this file.
Data Structures | |
| struct | limits_values< float > |
| struct | limits_values< double > |
| struct | limits_values< long double > |
Macros | |
| #define | FLT_ROUNDS _RWSTD_FLT_ROUNDS |
| #define | CHECK_CONST(const_int) |
| #define | VERIFY_DATA(member) |
| #define | VERIFY_CONST(member, value) |
| #define | VERIFY_FUNCTION(member) |
| #define | VERIFY_SIGNATURE(member) |
| #define | VERIFY_CONST(x, value) |
Functions | |
| template<class FloatT > | |
| void | test_infinity (FloatT inf, FloatT max, const char *tname) |
| template<class FloatT > | |
| void | test_quiet_NaN (FloatT qnan, FloatT qnan2, const char *tname) |
| template<class FloatT > | |
| void | test_signaling_NaN (FloatT snan, FloatT snan2, const char *tname) |
| template<class FloatT > | |
| void | test_limits (FloatT, const char *tname, const char *fmt) |
| int | main (int argc, char *argv[]) |
Variables | |
| const bool | big_endian = !*(const char*)&endian_test |
| volatile float | flt_zero = 0 |
| volatile double | dbl_zero = 0 |
| volatile long double | ldbl_zero = 0 |
| #define CHECK_CONST | ( | const_int | ) |
| #define FLT_ROUNDS _RWSTD_FLT_ROUNDS |
test to exercise floating point specializations of the numeric_limits class template
$Id$
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2000-2008 Rogue Wave Software, Inc.
Definition at line 59 of file 18.numeric.special.float.cpp.
| #define VERIFY_CONST | ( | member, | |
| value | |||
| ) |
| #define VERIFY_DATA | ( | member | ) |
| #define VERIFY_FUNCTION | ( | member | ) |
| #define VERIFY_SIGNATURE | ( | member | ) |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 1447 of file 18.numeric.special.float.cpp.
| void test_infinity | ( | FloatT | inf, |
| FloatT | max, | ||
| const char * | tname | ||
| ) |
Definition at line 189 of file 18.numeric.special.float.cpp.
| void test_limits | ( | FloatT | , |
| const char * | tname, | ||
| const char * | fmt | ||
| ) |
Definition at line 1194 of file 18.numeric.special.float.cpp.
| void test_quiet_NaN | ( | FloatT | qnan, |
| FloatT | qnan2, | ||
| const char * | tname | ||
| ) |
Definition at line 249 of file 18.numeric.special.float.cpp.
| void test_signaling_NaN | ( | FloatT | snan, |
| FloatT | snan2, | ||
| const char * | tname | ||
| ) |
Definition at line 319 of file 18.numeric.special.float.cpp.
|
extern |
| volatile double dbl_zero = 0 |
Definition at line 73 of file 18.numeric.special.float.cpp.
| volatile float flt_zero = 0 |
Definition at line 72 of file 18.numeric.special.float.cpp.
| volatile long double ldbl_zero = 0 |
Definition at line 77 of file 18.numeric.special.float.cpp.