* Double & Integral don't match
@ 2002-10-18 5:10 omit_ECE
2002-10-18 5:12 ` David McIlwraith
2002-10-18 6:14 ` David S. Miller
0 siblings, 2 replies; 3+ messages in thread
From: omit_ECE @ 2002-10-18 5:10 UTC (permalink / raw)
To: linux-kernel
Hi,
In tcp_input.c, I declare a variable,
double t_owd_;
t_owd_ = rcv_tsecr - rcv_tsval;
But in this case, the right side in the equation are integrals,
which is against to the left side of double.
I tried,
t_owd_ = (double) rcv_tsecr - (double) rcv_tsval;
It didn't work. How could I do to make it?
Thank you.
YuZen
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Double & Integral don't match
2002-10-18 5:10 Double & Integral don't match omit_ECE
@ 2002-10-18 5:12 ` David McIlwraith
2002-10-18 6:14 ` David S. Miller
1 sibling, 0 replies; 3+ messages in thread
From: David McIlwraith @ 2002-10-18 5:12 UTC (permalink / raw)
To: omit_ECE; +Cc: linux-kernel
No floating point in kernel.
- David McIlwraith
----- Original Message -----
From: "omit_ECE" <omit@rice.edu>
To: <linux-kernel@vger.kernel.org>
Sent: Friday, October 18, 2002 3:10 PM
Subject: Double & Integral don't match
> Hi,
>
> In tcp_input.c, I declare a variable,
> double t_owd_;
> t_owd_ = rcv_tsecr - rcv_tsval;
>
> But in this case, the right side in the equation are integrals,
> which is against to the left side of double.
> I tried,
> t_owd_ = (double) rcv_tsecr - (double) rcv_tsval;
>
> It didn't work. How could I do to make it?
> Thank you.
>
> YuZen
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Double & Integral don't match
2002-10-18 5:10 Double & Integral don't match omit_ECE
2002-10-18 5:12 ` David McIlwraith
@ 2002-10-18 6:14 ` David S. Miller
1 sibling, 0 replies; 3+ messages in thread
From: David S. Miller @ 2002-10-18 6:14 UTC (permalink / raw)
To: omit; +Cc: linux-kernel
You may not do floating point operations in the kernel.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-10-18 6:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-18 5:10 Double & Integral don't match omit_ECE
2002-10-18 5:12 ` David McIlwraith
2002-10-18 6:14 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®