Flow Visualisation
ulp.inl File Reference
#include <cmath>
#include <cfloat>
Include dependency graph for ulp.inl:
This graph shows which files directly or indirectly include this file:

Classes

union  ieee_float_shape_type
 
union  ieee_double_shape_type
 

Namespaces

 glm
 
 glm::detail
 

Macros

#define GLM_EXTRACT_WORDS(ix0, ix1, d)
 
#define GLM_GET_FLOAT_WORD(i, d)
 
#define GLM_SET_FLOAT_WORD(d, i)
 
#define GLM_INSERT_WORDS(d, ix0, ix1)
 
#define GLM_NEXT_AFTER_FLT(x, toward)   nextafterf((x), (toward))
 
#define GLM_NEXT_AFTER_DBL(x, toward)   nextafter((x), (toward))
 

Functions

GLM_FUNC_QUALIFIER float glm::detail::nextafterf (float x, float y)
 
GLM_FUNC_QUALIFIER double glm::detail::nextafter (double x, double y)
 
GLM_FUNC_QUALIFIER float glm::next_float (float const &x)
 
GLM_FUNC_QUALIFIER double glm::next_float (double const &x)
 
template<typename T , template< typename > class vecType>
GLM_FUNC_QUALIFIER vecType< T > glm::next_float (vecType< T > const &x)
 
GLM_FUNC_QUALIFIER float glm::prev_float (float const &x)
 
GLM_FUNC_QUALIFIER double glm::prev_float (double const &x)
 
template<typename T , template< typename > class vecType>
GLM_FUNC_QUALIFIER vecType< T > glm::prev_float (vecType< T > const &x)
 
template<typename T >
GLM_FUNC_QUALIFIERglm::next_float (T const &x, uint const &ulps)
 
template<typename T , template< typename > class vecType>
GLM_FUNC_QUALIFIER vecType< T > glm::next_float (vecType< T > const &x, vecType< uint > const &ulps)
 
template<typename T >
GLM_FUNC_QUALIFIERglm::prev_float (T const &x, uint const &ulps)
 
template<typename T , template< typename > class vecType>
GLM_FUNC_QUALIFIER vecType< T > glm::prev_float (vecType< T > const &x, vecType< uint > const &ulps)
 
template<typename T >
GLM_FUNC_QUALIFIER uint glm::float_distance (T const &x, T const &y)
 
template<typename T , template< typename > class vecType>
GLM_FUNC_QUALIFIER vecType< uint > glm::float_distance (vecType< T > const &x, vecType< T > const &y)
 

Detailed Description

OpenGL Mathematics (glm.g-truc.net)

Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

GLM_GTC_ulp

Date
2011-03-07 / 2012-04-07
Author
Christophe Riccio

Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.

Developed at SunPro, a Sun Microsystems, Inc. business. Permission to use, copy, modify, and distribute this software is freely granted, provided that this notice is preserved.

Macro Definition Documentation

#define GLM_EXTRACT_WORDS (   ix0,
  ix1,
 
)
Value:
do { \
ieee_double_shape_type ew_u; \
ew_u.value = (d); \
(ix0) = ew_u.parts.msw; \
(ix1) = ew_u.parts.lsw; \
} while (0)
#define GLM_GET_FLOAT_WORD (   i,
 
)
Value:
do { \
ieee_float_shape_type gf_u; \
gf_u.value = (d); \
(i) = gf_u.word; \
} while (0)
#define GLM_INSERT_WORDS (   d,
  ix0,
  ix1 
)
Value:
do { \
ieee_double_shape_type iw_u; \
iw_u.parts.msw = (ix0); \
iw_u.parts.lsw = (ix1); \
(d) = iw_u.value; \
} while (0)
#define GLM_NEXT_AFTER_DBL (   x,
  toward 
)    nextafter((x), (toward))
#define GLM_NEXT_AFTER_FLT (   x,
  toward 
)    nextafterf((x), (toward))
#define GLM_SET_FLOAT_WORD (   d,
 
)
Value:
do { \
ieee_float_shape_type sf_u; \
sf_u.word = (i); \
(d) = sf_u.value; \
} while (0)