Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Implementation of the abs() function [o.t.]

Author: Dieter Buerssner

Date: 14:19:48 07/07/03

Go up one level in this thread


On July 07, 2003 at 17:02:20, Omid David Tabibi wrote:

>Just a thought (regardless of our discussion about abs), why do people still use
>huge macros instead of functions? (e.g., those macros you posted in the other
>thread)

Hmm, which other thread do you mean? Perhaps you mean the macros I posted in
thus same thread (DECLARE_TEST_FUNCTION)? This cannot be done with (inline)
functions, I think. At least not in a way to enforce the reproducable measuring
wanted there. If you do not agrree, please suggest your solution.

>Using long macros instead of functions only makes the task more complicated and
>error prone.

I agree.

>Why not to write them as functions? Even though the inline keyword
>is not defined in ANSI C, most compilers support it.

inline is supported in ISO C of 1999. ANSI C is history since long. After the
first ANSI C Standard, it soon was superseeded by the first ISO C standard
(which was basically the same).

Regards,
Dieter



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.