Computer Chess Club Archives


Search

Terms

Messages

Subject: C++ Programming Q: are const and define efficiency the same

Author: Federico Corigliano

Date: 19:15:34 01/16/04


Hi

In my engine I have a lot of #defines as:
#define FileA 0xFFFFFFFF  <- I don't remember the real value
and I want to convert it to:
const UINT64 FileA = 0xFFFFFFFFF;
I the change can affect the speed. As I often use MSVC Debugger, it's boring to
translate every #define to the respective number.

Federico



This page took 0.01 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.