• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: floating point environment inside CoreAudio ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?"
__________________________________________________________________________


  • Follow-Ups:
    • Re: floating point environment inside CoreAudio ?
      • From: James McCartney <email@hidden>
References: 
 >floating point environment inside CoreAudio ? (From: James McCartney <email@hidden>)

  • Prev by Date: Re: floating point environment inside CoreAudio ?
  • Next by Date: Re: floating point environment inside CoreAudio ?
  • Previous by thread: floating point environment inside CoreAudio ?
  • Next by thread: Re: floating point environment inside CoreAudio ?
  • Index(es):
    • Date
    • Thread