Csound Csound-dev Csound-tekno Search About

[Cs-dev] Lrint/lrintf

Date2012-03-02 17:54
FromFelipe Sateler
Subject[Cs-dev] Lrint/lrintf
What could be a rationale for not using lrint or lrintf? As I
understand it, lrintf wil very likely be faster than whatever
alternative.

-- 

Saludos,
Felipe Sateler

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-03-02 18:02
Fromjpff@cs.bath.ac.uk
SubjectRe: [Cs-dev] Lrint/lrintf
> What could be a rationale for not using lrint or lrintf? As I
> understand it, lrintf wil very likely be faster than whatever
> alternative.
>
> --

Not ANSI C89 functions

If available yes they should be used IMHO

==John ff


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-03-02 18:05
FromSteven Yi
SubjectRe: [Cs-dev] Lrint/lrintf
I thinking there is no lrint/lrintf on Windows?

On Fri, Mar 2, 2012 at 6:02 PM,   wrote:
>> What could be a rationale for not using lrint or lrintf? As I
>> understand it, lrintf wil very likely be faster than whatever
>> alternative.
>>
>> --
>
> Not ANSI C89 functions
>
> If available yes they should be used IMHO
>
> ==John ff
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-03-02 18:52
FromMichael Gogins
SubjectRe: [Cs-dev] Lrint/lrintf
The question is not whether lrint is available on Windows but whether
it is available in the compiler.

I have verified that lrint and lrintf are available in the current
MinGW runtime library. These functions do not seem to exist in Visual
C++.

Regards,
Mike



On Fri, Mar 2, 2012 at 1:05 PM, Steven Yi  wrote:
> I thinking there is no lrint/lrintf on Windows?
>
> On Fri, Mar 2, 2012 at 6:02 PM,   wrote:
>>> What could be a rationale for not using lrint or lrintf? As I
>>> understand it, lrintf wil very likely be faster than whatever
>>> alternative.
>>>
>>> --
>>
>> Not ANSI C89 functions
>>
>> If available yes they should be used IMHO
>>
>> ==John ff
>>
>>
>> ------------------------------------------------------------------------------
>> Virtualization & Cloud Management Using Capacity Planning
>> Cloud computing makes use of virtualization - but cloud computing
>> also focuses on allowing computing to be delivered as a service.
>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-03-02 18:59
FromSteven Yi
SubjectRe: [Cs-dev] Lrint/lrintf
Thanks for clarifying that point.  I assume then that the checks for
lrint/lrintf were added when someone went to compile with VC++.

On Fri, Mar 2, 2012 at 6:52 PM, Michael Gogins  wrote:
> The question is not whether lrint is available on Windows but whether
> it is available in the compiler.
>
> I have verified that lrint and lrintf are available in the current
> MinGW runtime library. These functions do not seem to exist in Visual
> C++.
>
> Regards,
> Mike
>
>
>
> On Fri, Mar 2, 2012 at 1:05 PM, Steven Yi  wrote:
>> I thinking there is no lrint/lrintf on Windows?
>>
>> On Fri, Mar 2, 2012 at 6:02 PM,   wrote:
>>>> What could be a rationale for not using lrint or lrintf? As I
>>>> understand it, lrintf wil very likely be faster than whatever
>>>> alternative.
>>>>
>>>> --
>>>
>>> Not ANSI C89 functions
>>>
>>> If available yes they should be used IMHO
>>>
>>> ==John ff
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Virtualization & Cloud Management Using Capacity Planning
>>> Cloud computing makes use of virtualization - but cloud computing
>>> also focuses on allowing computing to be delivered as a service.
>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Virtualization & Cloud Management Using Capacity Planning
>> Cloud computing makes use of virtualization - but cloud computing
>> also focuses on allowing computing to be delivered as a service.
>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-03-02 19:09
FromRory Walsh
SubjectRe: [Cs-dev] Lrint/lrintf
Someone can want to compile for VS but the likely hood of them being
successful is another thing! Would this have any effect on those using
the Csound API with visual studio?

On 2 March 2012 18:59, Steven Yi  wrote:
> Thanks for clarifying that point.  I assume then that the checks for
> lrint/lrintf were added when someone went to compile with VC++.
>
> On Fri, Mar 2, 2012 at 6:52 PM, Michael Gogins  wrote:
>> The question is not whether lrint is available on Windows but whether
>> it is available in the compiler.
>>
>> I have verified that lrint and lrintf are available in the current
>> MinGW runtime library. These functions do not seem to exist in Visual
>> C++.
>>
>> Regards,
>> Mike
>>
>>
>>
>> On Fri, Mar 2, 2012 at 1:05 PM, Steven Yi  wrote:
>>> I thinking there is no lrint/lrintf on Windows?
>>>
>>> On Fri, Mar 2, 2012 at 6:02 PM,   wrote:
>>>>> What could be a rationale for not using lrint or lrintf? As I
>>>>> understand it, lrintf wil very likely be faster than whatever
>>>>> alternative.
>>>>>
>>>>> --
>>>>
>>>> Not ANSI C89 functions
>>>>
>>>> If available yes they should be used IMHO
>>>>
>>>> ==John ff
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Virtualization & Cloud Management Using Capacity Planning
>>>> Cloud computing makes use of virtualization - but cloud computing
>>>> also focuses on allowing computing to be delivered as a service.
>>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> Virtualization & Cloud Management Using Capacity Planning
>>> Cloud computing makes use of virtualization - but cloud computing
>>> also focuses on allowing computing to be delivered as a service.
>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>>
>> --
>> Michael Gogins
>> Irreducible Productions
>> http://www.michael-gogins.com
>> Michael dot Gogins at gmail dot com
>>
>> ------------------------------------------------------------------------------
>> Virtualization & Cloud Management Using Capacity Planning
>> Cloud computing makes use of virtualization - but cloud computing
>> also focuses on allowing computing to be delivered as a service.
>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-03-02 20:47
FromMichael Gogins
SubjectRe: [Cs-dev] Lrint/lrintf
I assume you mean, what happens if Csound is compiled with MinGW but
the user wants to link the Csound library with a Visual C++
application?

In that case, the C API is fine, but the C++ API cannot be used.

Regards,
Mike

On Fri, Mar 2, 2012 at 2:09 PM, Rory Walsh  wrote:
> Someone can want to compile for VS but the likely hood of them being
> successful is another thing! Would this have any effect on those using
> the Csound API with visual studio?
>
> On 2 March 2012 18:59, Steven Yi  wrote:
>> Thanks for clarifying that point.  I assume then that the checks for
>> lrint/lrintf were added when someone went to compile with VC++.
>>
>> On Fri, Mar 2, 2012 at 6:52 PM, Michael Gogins  wrote:
>>> The question is not whether lrint is available on Windows but whether
>>> it is available in the compiler.
>>>
>>> I have verified that lrint and lrintf are available in the current
>>> MinGW runtime library. These functions do not seem to exist in Visual
>>> C++.
>>>
>>> Regards,
>>> Mike
>>>
>>>
>>>
>>> On Fri, Mar 2, 2012 at 1:05 PM, Steven Yi  wrote:
>>>> I thinking there is no lrint/lrintf on Windows?
>>>>
>>>> On Fri, Mar 2, 2012 at 6:02 PM,   wrote:
>>>>>> What could be a rationale for not using lrint or lrintf? As I
>>>>>> understand it, lrintf wil very likely be faster than whatever
>>>>>> alternative.
>>>>>>
>>>>>> --
>>>>>
>>>>> Not ANSI C89 functions
>>>>>
>>>>> If available yes they should be used IMHO
>>>>>
>>>>> ==John ff
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Virtualization & Cloud Management Using Capacity Planning
>>>>> Cloud computing makes use of virtualization - but cloud computing
>>>>> also focuses on allowing computing to be delivered as a service.
>>>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Virtualization & Cloud Management Using Capacity Planning
>>>> Cloud computing makes use of virtualization - but cloud computing
>>>> also focuses on allowing computing to be delivered as a service.
>>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>> ------------------------------------------------------------------------------
>>> Virtualization & Cloud Management Using Capacity Planning
>>> Cloud computing makes use of virtualization - but cloud computing
>>> also focuses on allowing computing to be delivered as a service.
>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Virtualization & Cloud Management Using Capacity Planning
>> Cloud computing makes use of virtualization - but cloud computing
>> also focuses on allowing computing to be delivered as a service.
>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel



-- 
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2012-03-02 23:17
FromRory Walsh
SubjectRe: [Cs-dev] Lrint/lrintf
AttachmentsNone  None  
That would be a pain.

On Friday, 2 March 2012, Michael Gogins <michael.gogins@gmail.com> wrote:
> I assume you mean, what happens if Csound is compiled with MinGW but
> the user wants to link the Csound library with a Visual C++
> application?
>
> In that case, the C API is fine, but the C++ API cannot be used.
>
> Regards,
> Mike
>
> On Fri, Mar 2, 2012 at 2:09 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
>> Someone can want to compile for VS but the likely hood of them being
>> successful is another thing! Would this have any effect on those using
>> the Csound API with visual studio?
>>
>> On 2 March 2012 18:59, Steven Yi <stevenyi@gmail.com> wrote:
>>> Thanks for clarifying that point.  I assume then that the checks for
>>> lrint/lrintf were added when someone went to compile with VC++.
>>>
>>> On Fri, Mar 2, 2012 at 6:52 PM, Michael Gogins <michael.gogins@gmail.com> wrote:
>>>> The question is not whether lrint is available on Windows but whether
>>>> it is available in the compiler.
>>>>
>>>> I have verified that lrint and lrintf are available in the current
>>>> MinGW runtime library. These functions do not seem to exist in Visual
>>>> C++.
>>>>
>>>> Regards,
>>>> Mike
>>>>
>>>>
>>>>
>>>> On Fri, Mar 2, 2012 at 1:05 PM, Steven Yi <stevenyi@gmail.com> wrote:
>>>>> I thinking there is no lrint/lrintf on Windows?
>>>>>
>>>>> On Fri, Mar 2, 2012 at 6:02 PM,  <jpff@cs.bath.ac.uk> wrote:
>>>>>>> What could be a rationale for not using lrint or lrintf? As I
>>>>>>> understand it, lrintf wil very likely be faster than whatever
>>>>>>> alternative.
>>>>>>>
>>>>>>> --
>>>>>>
>>>>>> Not ANSI C89 functions
>>>>>>
>>>>>> If available yes they should be used IMHO
>>>>>>
>>>>>> ==John ff
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Virtualization & Cloud Management Using Capacity Planning
>>>>>> Cloud computing makes use of virtualization - but cloud computing
>>>>>> also focuses on allowing computing to be delivered as a service.
>>>>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Virtualization & Cloud Management Using Capacity Planning
>>>>> Cloud computing makes use of virtualization - but cloud computing
>>>>> also focuses on allowing computing to be delivered as a service.
>>>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>>
>>>> --
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://www.michael-gogins.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Virtualization & Cloud Management Using Capacity Planning
>>>> Cloud computing makes use of virtualization - but cloud computing
>>>> also focuses on allowing computing