From: Ken Murchison (no email)
Date: Mon Sep 17 2007 - 08:52:37 EDT
Andy Fiddaman wrote:
> On Fri, 14 Sep 2007, Ken Murchison wrote:
> ; This patch tries to force the entire buffer to be aligned, rather than
> ; aligning each 64-bit field individually. Don't know if this will work or not.
>
> The concept seems to work fine. There are some other places that
> the same trick needs to be done - mailbox_expunge() and restore_expunged()
> for example.
>
> I adapted it slightly (see attachment) to use a union to conserve heap
> space and a macro given the number of places it was proving necessary.
Good point. I'm wondering if we need the struct at all, and can just
use a union.
-- Kenneth Murchison Systems Programmer Project Cyrus Developer/Maintainer Carnegie Mellon University ---- Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
|
|
|