_misc.h File Reference

#include <cmath>
#include <math.h>

Go to the source code of this file.

Functions

template<typename I, typename T>
_ETL_BEGIN_NAMESPACE I binary_find (I begin, I end, const T &value)
int round_to_int (const float x)
int round_to_int (const double x)
int ceil_to_int (const float x)
int ceil_to_int (const double x)
int floor_to_int (const float x)
int floor_to_int (const double x)


Function Documentation

template<typename I, typename T>
_ETL_BEGIN_NAMESPACE I binary_find ( begin,
end,
const T &  value 
) [inline]

======================================================================== Extended Template and Library Misc

Id
_misc.h,v 1.1.1.1 2005/01/04 01:31:47 darco Exp

Copyright (c) 2002 Robert B. Quattlebaum Jr.

This package 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 2 of the License, or (at your option) any later version.

This package 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.

=== N O T E S ===========================================================

=========================================================================

Definition at line 41 of file _misc.h.

Referenced by smach< CON, K, M >::state< T >::find().

int round_to_int ( const float  x  )  [inline]

Isn't there some x86 FPU instruction for quickly converting a float to a rounded integer? It's worth looking into at some point...

Definition at line 77 of file _misc.h.

int round_to_int ( const double  x  )  [inline]

Definition at line 78 of file _misc.h.

int ceil_to_int ( const float  x  )  [inline]

Definition at line 80 of file _misc.h.

References ceil().

int ceil_to_int ( const double  x  )  [inline]

Definition at line 81 of file _misc.h.

References ceil().

int floor_to_int ( const float  x  )  [inline]

Definition at line 83 of file _misc.h.

Referenced by surface< T, AT, VP >::cosine_sample(), surface< T, AT, VP >::cubic_sample(), and surface< T, AT, VP >::linear_sample().

int floor_to_int ( const double  x  )  [inline]

Definition at line 84 of file _misc.h.


Generated on Fri Nov 3 19:48:58 2006 for ETL by  doxygen 1.4.7