473,756 Members | 9,646 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 1813
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
2003
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
1421
by: Zach | last post by:
text-based browsers or old GUI browsers visit my pure-CSS site? zach
0
1729
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
1207
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
2298
by: johnny | last post by:
What is the purpose of if __name__ == "__main__": If you have a module, does it get called automatically?
10
1722
by: Shraddha | last post by:
int *s=(int *)2000; int *p=(int *)1000; printf("%d",p-s);
3
1722
by: vimalankvk80 | last post by:
what will happen, if we forget to return ostream referance ? class A { Private: int _a; int _b;
3
6435
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
5523
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
9482
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9292
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
10062
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
9901
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9728
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7282
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
5167
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...
1
3827
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
2694
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.