delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/03/10:56:44

Message-ID: <32F6A38C.25F3@post.comstar.ru>
Date: Mon, 03 Feb 1997 18:48:44 -0800
From: Dim Zegebart <zager AT post DOT comstar DOT ru>
Reply-To: zager AT post DOT comstar DOT ru
Organization: zager AT post DOT comstar DOT ru
MIME-Version: 1.0
To: DJGPP Mail List <djgpp AT delorie DOT com>
Subject: FIX math in Allegro misfeature (possible) ?

Hi,
I just try to use fix math in Allegro. And I'm supprasing why where are
no
macros or functions like this (may be I missed something ?) :

#define SET_INT(fFix,nInt)
fFix=((fFix)&0x0000ffff)|(((nInt)<<16)&0xffff0000)
#define SET_FIX(fFix,nFix) fFix=((fFix)&0xffff0000)|((nFix)&0x0000ffff)
#define GET_INT(fFix)  (int)(((fFix)>>16)&0x0000ffff)
#define GET_FIX(fFix) (int)((fFix)&0x0000ffff)

-- 
Regards,
Dim Zegebart,
Moscow Russia.

- Raw text -


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