473,705 Members | 2,472 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1811
sp****@gmail.co m 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_Keit h) 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************ **********@i39g 2000cwa.googleg roups.com>,
<sp****@gmail.c om> 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************ **********@i39g 2000cwa.googleg roups.com>,
<sp****@gmail.c om> 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
2002
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 least until the administrator fixes it by hand. What is the proper way of handling this? Is there a way to supply a function that is called when a session times out? What if the browser is closed?
8
1416
by: Zach | last post by:
text-based browsers or old GUI browsers visit my pure-CSS site? zach
0
1727
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 System.Windows.Forms.UserControl, and put a ComboBox on it. b.. Another is Ithat I define a class (TimeSegmentComboBox ) extends ComboBox. Either way, I have code to populate AM, PM to Combox. In the second case: public class TimeSegmentComboBox : ComboBox
2
1204
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
2293
by: johnny | last post by:
What is the purpose of if __name__ == "__main__": If you have a module, does it get called automatically?
10
1715
by: Shraddha | last post by:
int *s=(int *)2000; int *p=(int *)1000; printf("%d",p-s);
3
1716
by: vimalankvk80 | last post by:
what will happen, if we forget to return ostream referance ? class A { Private: int _a; int _b;
3
6429
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. I am not satisfied with the underlying machinery of the solution though. I am an advanced C programmer and most do object-based programming in C++. Please do not reply to this article with references to basic material or obvious tips. An...
3
5520
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
8689
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9273
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
7893
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6605
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5933
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4439
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4703
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3137
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2081
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.