home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / crypl200.zip / BNLIB / BN8086.C < prev    next >
Text File  |  1996-09-22  |  499b  |  29 lines

  1. /*
  2.  * bn8086.c - bnInit() for Intel x86 family in 16-bit mode.
  3.  *
  4.  * Written in 1995 by Colin Plumb.
  5.  */
  6.  
  7. #if defined( INC_CHILD )
  8.   #include "lbn.h"
  9.   #include "bn16.h"
  10.   #include "bn32.h"
  11. #else
  12.   #include "bnlib/lbn.h"
  13.   #include "bnlib/bn16.h"
  14.   #include "bnlib/bn32.h"
  15. #endif /* INC_CHILD */
  16.  
  17. #ifndef BNINCLUDE
  18. #error You must define BNINCLUDE to lbn8086.h to use assembly primitives.
  19. #endif
  20.  
  21. void
  22. bnInit(void)
  23. {
  24.     if (not386())
  25.         bnInit_16();
  26.     else
  27.         bnInit_32();
  28. }
  29.