Message-ID: <35C82127.91CE2F30@post.comstar.ru> Date: Wed, 05 Aug 1998 13:08:55 +0400 From: Dim Zegebart Reply-To: zager AT post DOT comstar DOT ru Organization: Comstar Ltd. MIME-Version: 1.0 To: "djgpp AT delorie DOT com" Subject: Re: 80x87 detection in DJGPP programs Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Precedence: bulk > J-: > So my question is: how can I detect a 80x87 in a DJGPP program? > > int fpu_detect(){ char c; outportb(0x70,0x14); c=inportb(0x71); if (c&0x1) { printf("FPU present\n"); return(1); } else { printf("FPU absent\n"); return(0); } }Hope this help. -- Dim Zegebart Moscow, Russia -- Dim Zegebart Moscow, Russia