[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Audio patch

From: malc
Subject: Re: [Qemu-devel] Audio patch
Date: Sun, 10 Oct 2004 21:21:30 +0400 (MSD)

On Sun, 10 Oct 2004, Fabrice Bellard wrote:

> Moreover mixeng.cc uses floats, which are also forbidden in QEMU, except
> for CPU emulation :-)

I'm no big C++ fan myself, but credit where it's due, changing these to
int32_t or whatnot is as simple as changing template argument and clamping
code in ONE place - now beat that stupid C99 ;)

> Johannes Martin wrote:
> > On Sun, 10 Oct 2004, John R. Hogerhuis wrote:
> >
> >>On Sat, 2004-10-09 at 18:54, malc wrote:
> >>
> >>>For the time being (until C++ magically disapears)
> >>
> >>A beautiful dream, my friend.
> >
> > How about somebody uses AT&T's cfront or SUN's GCC2C to convert those
> > templates in mixeng.cc to plain C? The code won't be pretty, but it will
> > make more sense than handcoding the stuff.
> >
> > I guess one could also use some smart macros to replace the templates.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]