Author: Dieter Buerssner
Date: 08:15:09 02/18/05
Go up one level in this thread
Perhaps, I don't understand. Why not something like: #define ALIGNMENT 1024 p = malloc(nbytes + ALIGNMENT-1); paligned = ((char *)p + ALIGNMENT-1)& ~(ALIGNMENT-1); You cannot hide it conveniently in a function, because yo'll need to remember p for the free call.
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.