delorie.com/djgpp/doc/libc/libc_260.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

__dpmi_set_coprocessor_emulation

Syntax

 
#include <dpmi.h>

int __dpmi_set_coprocessor_emulation(int flags);

Description

Please refer to DPMI Specification, for details on DPMI function call operation. Also see DPMI Overview, for general information.

DPMI function AX = 0x0e01 (DPMI v1.0 only, but supported by most DPMI v0.9 servers, including CWSDPMI, Windows, and QDPMI).

This function sets the co-processor emulation state as specified by flags. The only two used bits in flags are:

bit 0
If set, enable the co-processor. If reset, disable the co-processor.

bit 1
If set, the emulation of the floating-point instructions will be done by the calling application.

DJGPP programs using one of the provided emulators should generally call this function with an argument of 2. (The DJGPP startup code does that automatically if no co-processor is detected.)

Return Value

-1 on errors, else zero.

Portability

ANSI/ISO C No
POSIX No


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004