Re: floating point environment inside CoreAudio ?
Re: floating point environment inside CoreAudio ?
- Subject: Re: floating point environment inside CoreAudio ?
- From: Bill Stewart <email@hidden>
- Date: Mon, 21 May 2001 15:02:42 -0700
James,
When you're code runs from a context that is provided to your application
from Core Audio, it is a fully fledged user level thread. So...
on 19/5/01 10:09 AM, James McCartney wrote:
>
I have some math that depends on fesetround(FE_DOWNWARD); <fenv.h>
>
>
Is my floating point environment preserved between CoreAudio calls?
>
(I assume not?)
It is
>
Can I safely set up the floating point environment inside CoreAudio?
>
(I've no guess..?)
You can
>
Should I save/restore the existing state?
>
(I assume yes?)
When your thread is running that state is automatically restored by the
environment itself.
This is very different than on 9, where you run in the context of hardware
interrupts (and thus you have these issues). It is also very different if
your code is executing in the kernel context (ie. a driver for instance),
where you do have these kinds of issues to deal with.
Bill
mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
Cat: "Leave me alone, I'm trying to nap... Ah, What's that clicking noise?"
__________________________________________________________________________