#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) |
|
======================================================================== Extended Template and Library Misc
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(). |
|
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 80 of file _misc.h. References ceil(). |
|
Definition at line 81 of file _misc.h. References ceil(). |
|
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(). |
|
|