delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/06/19/19:40:36

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
X-Authentication-Warning: mercury.xraylith.wisc.edu: khan owned process doing -bs
Date: Sat, 19 Jun 1999 18:39:34 -0500 (CDT)
From: Mumit Khan <khan AT xraylith DOT wisc DOT EDU>
To: "Alfredo Ceballos R. " <al708613 AT academ01 DOT ccm DOT itesm DOT mx>
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Problems with date algorithm
In-Reply-To: <Pine.A32.3.95.990616144316.53122A-100000@academ01.ccm.itesm.mx>
Message-ID: <Pine.LNX.3.96.990619183503.28281A-100000@mercury.xraylith.wisc.edu>
MIME-Version: 1.0

On Wed, 16 Jun 1999, Alfredo Ceballos R.  wrote:

> 
> Thank You for your answer but I'm using mingw32 and I've already tried the
> new API definitions that you have mentioned but when I use the make file
> included in the distribution, it doesn't work. On the other hand, i was
> trying to use the function int64ShllMod2(), but the compiler says that is
> an unknown function, I also try to use a logical operation with a mask to
> split the 64 number and add it propertly but the compiler says that this
> kind of operations only must be done with integers.

Perhaps you can ask Anders for help if you can't get the new w32api
package to install.

As for int64ShlMod2, it complains because it doesn't exist. 

> Could you please be more explicit in the description of the shifting
> method you have mentioned. Thank You.

Let's say you have a LARGE_INTEGER and you now want to convert that to a 
64-bit integer (GCC supports ``long long'', equivalent to MSVC's __int64).
  
  LARGE_INTEGER li;
  unsigned long long l;

  /* fill up li with whatever. */

  l = ((unsigned long long) li.HighPart << 32) + ((unsigned) li.LowPart);

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019