Re: TAking the minimum of three values
On Wed, 10 Sep 2003 04:34:29 +1000, Sona <sona.gardner@n ospam.com> wrote:
[color=blue]
>I need to find a minimum of three float values.. what would be the most
>efficient way of doing this? Can someone please share a #define macro or
>something with me for doing this? Thanks[/color]
First off, DO NOT, I repeat for your convenience, DO NOT, crosspost
general questions to both [comp.lang.c] and [comp.lang.c++].
Those are different languages.
Now _the_ (one and only) answer to your question is simple: the _most
efficient_ way of finding the minimum of three 'double' values is to
leverage contextual information and language- and implementation- quirks.
That depends very much on the problem to be solved, your current code,
the language you're using, and even the compiler. Post this information,
except the compiler, and you may receive more specific answers.
On Wed, 10 Sep 2003 04:34:29 +1000, Sona <sona.gardner@n ospam.com> wrote:
[color=blue]
>I need to find a minimum of three float values.. what would be the most
>efficient way of doing this? Can someone please share a #define macro or
>something with me for doing this? Thanks[/color]
First off, DO NOT, I repeat for your convenience, DO NOT, crosspost
general questions to both [comp.lang.c] and [comp.lang.c++].
Those are different languages.
Now _the_ (one and only) answer to your question is simple: the _most
efficient_ way of finding the minimum of three 'double' values is to
leverage contextual information and language- and implementation- quirks.
That depends very much on the problem to be solved, your current code,
the language you're using, and even the compiler. Post this information,
except the compiler, and you may receive more specific answers.
Comment