delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
Date: | Thu, 3 Mar 2005 17:26:30 -0500 |
Message-Id: | <200503032226.j23MQUUw014111@envy.delorie.com> |
From: | DJ Delorie <dj AT delorie DOT com> |
To: | djgpp AT delorie DOT com |
In-reply-to: | <1109886403.553027.63290@g14g2000cwa.googlegroups.com> |
(ahmadwaris AT hotmail DOT com) | |
Subject: | Re: 64 bit functions in DJGPP |
References: | <1109886403 DOT 553027 DOT 63290 AT g14g2000cwa DOT googlegroups DOT com> |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> I need to add, compare and divide two 64-bit numbers (long long). > I could find the lldiv(long long,long long) function for division, but > not the functions for comparison and addittion. It is my understanding > that the + and < operators used for integers do not work for long > long's. They're just numbers, you use the usual C math operations: long long a, b, c; c = a + b; if (a < 5) printf("woot!\n");
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |