110480SAndreas.Sandberg@ARM.com/* 210480SAndreas.Sandberg@ARM.com * Copyright (c) 2014, Andreas Sandberg 310480SAndreas.Sandberg@ARM.com * All rights reserved. 410480SAndreas.Sandberg@ARM.com * 510480SAndreas.Sandberg@ARM.com * Redistribution and use in source and binary forms, with or without 610480SAndreas.Sandberg@ARM.com * modification, are permitted provided that the following conditions 710480SAndreas.Sandberg@ARM.com * are met: 810480SAndreas.Sandberg@ARM.com * 910480SAndreas.Sandberg@ARM.com * 1. Redistributions of source code must retain the above copyright 1010480SAndreas.Sandberg@ARM.com * notice, this list of conditions and the following disclaimer. 1110480SAndreas.Sandberg@ARM.com * 2. Redistributions in binary form must reproduce the above 1210480SAndreas.Sandberg@ARM.com * copyright notice, this list of conditions and the following 1310480SAndreas.Sandberg@ARM.com * disclaimer in the documentation and/or other materials provided 1410480SAndreas.Sandberg@ARM.com * with the distribution. 1510480SAndreas.Sandberg@ARM.com * 1610480SAndreas.Sandberg@ARM.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1710480SAndreas.Sandberg@ARM.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1810480SAndreas.Sandberg@ARM.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 1910480SAndreas.Sandberg@ARM.com * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 2010480SAndreas.Sandberg@ARM.com * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 2110480SAndreas.Sandberg@ARM.com * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 2210480SAndreas.Sandberg@ARM.com * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 2310480SAndreas.Sandberg@ARM.com * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2410480SAndreas.Sandberg@ARM.com * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 2510480SAndreas.Sandberg@ARM.com * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2610480SAndreas.Sandberg@ARM.com * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 2710480SAndreas.Sandberg@ARM.com * OF THE POSSIBILITY OF SUCH DAMAGE. 2810480SAndreas.Sandberg@ARM.com */ 2910480SAndreas.Sandberg@ARM.com 3010480SAndreas.Sandberg@ARM.com#ifndef _FP64_H 3110480SAndreas.Sandberg@ARM.com#define _FP64_H 1 3210480SAndreas.Sandberg@ARM.com 3310480SAndreas.Sandberg@ARM.com#include <fputils/fptypes.h> 3410480SAndreas.Sandberg@ARM.com 3510480SAndreas.Sandberg@ARM.com#ifdef __cplusplus 3610480SAndreas.Sandberg@ARM.comextern "C" { 3710480SAndreas.Sandberg@ARM.com#endif 3810480SAndreas.Sandberg@ARM.com 3910480SAndreas.Sandberg@ARM.com 4010480SAndreas.Sandberg@ARM.com/** 4110480SAndreas.Sandberg@ARM.com * @defgroup fp64 64-bit Floats 4210480SAndreas.Sandberg@ARM.com * Functions handling 64-bit floats. 4310480SAndreas.Sandberg@ARM.com * 4410480SAndreas.Sandberg@ARM.com * @{ 4510480SAndreas.Sandberg@ARM.com */ 4610480SAndreas.Sandberg@ARM.com 4710480SAndreas.Sandberg@ARM.com 4810480SAndreas.Sandberg@ARM.com/** Constant representing +inf */ 4910480SAndreas.Sandberg@ARM.comextern const fp64_t fp64_pinf; 5010480SAndreas.Sandberg@ARM.com/** Constant representing -inf */ 5110480SAndreas.Sandberg@ARM.comextern const fp64_t fp64_ninf; 5210480SAndreas.Sandberg@ARM.com 5310480SAndreas.Sandberg@ARM.com/** Constant representing a quiet NaN */ 5410480SAndreas.Sandberg@ARM.comextern const fp64_t fp64_qnan; 5510480SAndreas.Sandberg@ARM.com/** Constant representing a negative quiet NaN */ 5610480SAndreas.Sandberg@ARM.comextern const fp64_t fp64_nqnan; 5710480SAndreas.Sandberg@ARM.com/** Constant representing a quiet indefinite NaN */ 5810480SAndreas.Sandberg@ARM.comextern const fp64_t fp64_qnani; 5910480SAndreas.Sandberg@ARM.com/** Constant representing a signaling NaN */ 6010480SAndreas.Sandberg@ARM.comextern const fp64_t fp64_snan; 6110480SAndreas.Sandberg@ARM.com/** Constant representing a negative signaling NaN */ 6210480SAndreas.Sandberg@ARM.comextern const fp64_t fp64_nsnan; 6310480SAndreas.Sandberg@ARM.com 6410480SAndreas.Sandberg@ARM.com/** Alias for fp64_qnan */ 6510480SAndreas.Sandberg@ARM.comextern const fp64_t fp64_nan; 6610480SAndreas.Sandberg@ARM.com 6710480SAndreas.Sandberg@ARM.com/** @} */ 6810480SAndreas.Sandberg@ARM.com 6910480SAndreas.Sandberg@ARM.com#ifdef __cplusplus 7010480SAndreas.Sandberg@ARM.com} /* extern "C" */ 7110480SAndreas.Sandberg@ARM.com#endif 7210480SAndreas.Sandberg@ARM.com 7310480SAndreas.Sandberg@ARM.com#endif 74