473,396 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

What is the purpose of the construct ``if (m <<= 0)'' ?

I saw it at http://www.faqs.org/rfcs/rfc1305.html
Is it not the same as writing ``if (m)'' ?

May 29 '06 #1
4 1787
sp****@gmail.com writes:
I saw it at http://www.faqs.org/rfcs/rfc1305.html
Is it not the same as writing ``if (m)'' ?


Please include your question in the body of the article, not just in
the subject header.

The subject is:
What is the purpose of the construct ``if (m <<= 0)'' ?

Yes, it should be the same as "if (m)". I have no idea why it's
written that way, unless it's a typo for "if (m <= 0)". (I'm not
impressed with the formatting of the code either.)

Since RFC 1305 describes the NTP protocol, this might be a good
question for comp.protocols.time.ntp -- but first, check that
newsgroup's archives and FAQ, if any.

And this is just a hunch, but I suspect you'll need to read
<http://cfaj.freeshell.org/google/> before posting a followup.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
May 29 '06 #2
In article <11**********************@i39g2000cwa.googlegroups .com>,
<sp****@gmail.com> wrote:
I saw it at http://www.faqs.org/rfcs/rfc1305.html
Is it not the same as writing ``if (m)'' ?


Could you be more specific as to where?
The page you refer to contains typesetting commands that
are possibly being misinterpreted by your browser.

Examining the PDF version, it appears to me that the code is

if (m <= 0)

but the html version throws in a number of extra characters.
--
Programming is what happens while you're busy making other plans.
May 29 '06 #3

Walter Roberson wrote:
Could you be more specific as to where?
The page you refer to contains typesetting commands that
are possibly being misinterpreted by your browser.

Examining the PDF version, it appears to me that the code is

if (m <= 0)

but the html version throws in a number of extra characters.


This must be the explanation. The line I was referring to is
if (m <<= 0) ep[n] = MAXDISP; /* compute filter dispersion */
but I just checked the PDF file and it does say m <= 0

May 29 '06 #4
Walter Roberson wrote:
In article <11**********************@i39g2000cwa.googlegroups .com>,
<sp****@gmail.com> wrote:
I saw it at http://www.faqs.org/rfcs/rfc1305.html
Is it not the same as writing ``if (m)'' ?

Could you be more specific as to where?
The page you refer to contains typesetting commands that
are possibly being misinterpreted by your browser.

Examining the PDF version, it appears to me that the code is

if (m <= 0)

but the html version throws in a number of extra characters.


The HTML version appears to be riddled with &lt;&lt(<<), where a single
instance should appear. Looks like a format conversion bug.

--
Ian Collins.
May 29 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: spambox | last post by:
Hello. I have a question about handling special cases of session expiration. In a project I'm working on, the users must log out or else their profile will be left in an unusable state -- at...
8
by: Zach | last post by:
text-based browsers or old GUI browsers visit my pure-CSS site? zach
0
by: Ryan Liu | last post by:
I think there are two way to define user control. For example, I want to define a ComoBox with contains only AM, PM items. a.. One way I define a class extends...
2
by: Xiangliang Meng | last post by:
Hi, all. What will happen if a virtual function is declared to be virtual again in a derived class? Any harm? Best Regards, Xiangliang Meng
3
by: johnny | last post by:
What is the purpose of if __name__ == "__main__": If you have a module, does it get called automatically?
10
by: Shraddha | last post by:
int *s=(int *)2000; int *p=(int *)1000; printf("%d",p-s);
3
by: vimalankvk80 | last post by:
what will happen, if we forget to return ostream referance ? class A { Private: int _a; int _b;
3
by: vainstah | last post by:
Hello Guys and Galls, To start off, I have reached the solution I was looking for, but I would like comments and feedback on the solution I have reached and tips/tricks on making it more elegant....
3
by: newlearner | last post by:
Hi All I have an interview question What will happen if i click the submit button twice in a JSP. Will the second request be processed or not. Thanks new learner
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.