Re: Dead Reckoning
Re: Dead Reckoning
- Subject: Re: Dead Reckoning
- From: Michael de Haan <email@hidden>
- Date: Fri, 09 Oct 2015 22:24:45 -0700
Thank you for all your input.
I made one small little change to accept time input in seconds.
>>>>>>
let secondsToHours = 2.7777778E-4
…………..
let rDistance = ((speed * time * knotsToMeters * secondsToHours) / earthRadius)
<<<<<<<<<<
> On Oct 9, 2015, at 9:33 PM, Rick Mann <email@hidden> wrote:
>
>
>> On Oct 9, 2015, at 21:24 , Graham Cox <email@hidden> wrote:
>>
>>
>>> On 10 Oct 2015, at 3:21 pm, Rick Mann <email@hidden> wrote:
>>>
>>> The compiler should figure that out either way it's written.
>>
>>
>> Does it actually replace a function call with an inline constant multiply?
>
> And it wouldn't be function calls, but instructions, something like
>
> MUL
> DIV
>
>
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden