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

K

Keith Thompson

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.
 
W

Walter Roberson

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.
 
S

spibou

Walter said:
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
 
I

Ian Collins

Walter said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,967
Members
47,520
Latest member
KrisMacono

Latest Threads

Top