fixed outdated comment

This commit is contained in:
Nicolas Robidoux 2009-03-16 09:31:55 +00:00
parent 4d58458a90
commit 28850412d1

View File

@ -238,10 +238,10 @@
/* /*
* FAST_MINMOD is an implementation of the minmod function which only * FAST_MINMOD is an implementation of the minmod function which only
* needs two conditional moves. (Most implementations need at least * needs two conditional moves. (Most implementations need at least
* three branches.) In the Nohalo code, the square of the first * three branches.) The product of the two arguments and a useful
* argument is used in two different minmod computations. The product * difference involving them are also precomputed to keep them out of
* is also precomputed to keep it out of branching way. (Nicolas: I * branching way. (Nicolas: I think that this may be the first two
* think that this may be the first two branch minmod.) * branch minmod.)
*/ */
#define FAST_MINMOD(a,b,ab,abminusaa) \ #define FAST_MINMOD(a,b,ab,abminusaa) \
( (ab)>=0. ? ( (abminusaa)>=0. ? (a) : (b) ) : 0. ) ( (ab)>=0. ? ( (abminusaa)>=0. ? (a) : (b) ) : 0. )