Re: [TTBlue-devel] [ttblue commit] r1061 - FunctionLib: the microsoft compiler chokes on numbers th
Status: Alpha
Brought to you by:
tap
From: Timothy P. <ti...@el...> - 2009-07-07 19:50:53
|
Hi Trond -- no worries. That also answers the question about why those numbers were of such precision! best, Tim On 2009 Jul 7, at 12:38 PM, Trond Lossius wrote: > Oh my, > > sorry about that Tim, it was meant to be funny and a tribute to the > Nato.0+55 SDK, but it was not meant to cause you hassle. > > best, > Trond > > > On Jul 7, 2009, at 2:59 PM, cod...@go... wrote: > >> >> Author: ti...@el... >> Date: Tue Jul 7 05:58:56 2009 >> New Revision: 1061 >> >> Modified: >> branches/active/extensions/TTFunctionLib/ExpFunction.cpp >> branches/active/extensions/TTFunctionLib/LogFunction.cpp >> >> Log: >> FunctionLib: the microsoft compiler chokes on numbers that are so >> long. >> >> Modified: branches/active/extensions/TTFunctionLib/ExpFunction.cpp >> = >> = >> = >> = >> = >> = >> = >> = >> = >> ===================================================================== >> --- branches/active/extensions/TTFunctionLib/ExpFunction.cpp >> (original) >> +++ branches/active/extensions/TTFunctionLib/ExpFunction.cpp Tue >> Jul 7 >> 05:58:56 2009 >> @@ -21,8 +21,12 @@ >> registerAttributeWithSetter(base, kTypeFloat64); >> >> // Set Defaults (should be sufficient resolution for a while): >> +#ifdef TT_PLATFORM_MAC >> setAttributeValue(TT("base"), >> 2.718281828459045235360287471352662497757247093699959574966967627724076630353547594571382178525166427427466391932003059921817413596629043572900334295260595630738132328627943490763 >> ); >> - >> +#else >> + setAttributeValue(TT("base"), >> 2.718281828459045235360287471352662497757247093699959574); >> +#endif >> + >> setProcessMethod(processAudio); >> setCalculateMethod(calculateValue); >> } >> >> Modified: branches/active/extensions/TTFunctionLib/LogFunction.cpp >> = >> = >> = >> = >> = >> = >> = >> = >> = >> ===================================================================== >> --- branches/active/extensions/TTFunctionLib/LogFunction.cpp >> (original) >> +++ branches/active/extensions/TTFunctionLib/LogFunction.cpp Tue >> Jul 7 >> 05:58:56 2009 >> @@ -21,7 +21,11 @@ >> registerAttributeWithSetter(base, kTypeFloat64); >> >> // Set Defaults (should be sufficient resolution for a while): >> +#ifdef TT_PLATFORM_MAC >> setAttributeValue(TT("base"), >> 2.718281828459045235360287471352662497757247093699959574966967627724076630353547594571382178525166427427466391932003059921817413596629043572900334295260595630738132328627943490763 >> ); >> +#else >> + setAttributeValue(TT("base"), >> 2.718281828459045235360287471352662497757247093699959574); >> +#endif >> >> setProcessMethod(processAudio); >> setCalculateMethod(calculateValue); >> >> --~--~---------~--~----~------------~-------~--~----~ >> You received this message because you are subscribed to the Google >> Groups "TTBlue-Notify" group. >> To post to this group, send email to ttb...@go... >> To unsubscribe from this group, send email to ttb...@go... >> For more options, visit this group at http://groups.google.com/group/ttblue-notify?hl=en >> -~----------~----~----~----~------~----~------~--~--- >> >> > > > ------------------------------------------------------------------------------ > Enter the BlackBerry Developer Challenge > This is your chance to win up to $100,000 in prizes! For a limited > time, > vendors submitting new applications to BlackBerry App World(TM) will > have > the opportunity to enter the BlackBerry Developer Challenge. See > full prize > details at: http://p.sf.net/sfu/blackberry > _______________________________________________ > TTBlue-devel mailing list > TTB...@li... > https://lists.sourceforge.net/lists/listinfo/ttblue-devel |