home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / crypl200.zip / BNLIB / LBN8086.H < prev    next >
C/C++ Source or Header  |  1996-05-16  |  2KB  |  77 lines

  1. /*
  2.  * lbn8086.h - This file defines the interfaces to the 8086
  3.  * assembly primitives.  It is intended to be included in "lbn.h"
  4.  * via the "#include BNINCLUDE" mechanism.
  5.  */
  6.  
  7. #define BN_LITTLE_ENDIAN 1
  8.  
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12.  
  13. /* Set up the appropriate types */
  14. typedef unsigned short bnword16;
  15. #define BNWORD16 bnword16
  16. typedef unsigned long bnword32;
  17. #define BNWORD32 bnword32
  18.  
  19. void __cdecl __far
  20. lbnMulN1_16(bnword16 __far *out, bnword16 const __far *in,
  21.             unsigned len, bnword16 k);
  22. #define lbnMulN1_16 lbnMulN1_16
  23.             
  24. bnword16 __cdecl __far
  25. lbnMulAdd1_16(bnword16 __far *out, bnword16 const __far *in,
  26.               unsigned len, bnword16 k);
  27. #define lbnMulAdd1_16 lbnMulAdd1_16
  28.        
  29. bnword16 __cdecl __far
  30. lbnMulSub1_16(bnword16 __far *out, bnword16 const __far *in,
  31.               unsigned len, bnword16 k);
  32. #define lbnMulSub1_16 lbnMulSub1_16
  33.  
  34. bnword16 __cdecl __far
  35. lbnDiv21_16(bnword16 __far *q, bnword16 nh, bnword16 nl, bnword16 d);
  36. #define lbnDiv21_16 lbnDiv21_16
  37.  
  38. bnword16 __cdecl __far
  39. lbnModQ_16(bnword16 const __far *n, unsigned len, bnword16 d);
  40. #define lbnModQ_16 lbnModQ_16
  41.  
  42.  
  43.  
  44. void __cdecl __far
  45. lbnMulN1_32(bnword32 __far *out, bnword32 const __far *in,
  46.             unsigned len, bnword32 k);
  47. #define lbnMulN1_32 lbnMulN1_32
  48.             
  49. bnword32 __cdecl __far
  50. lbnMulAdd1_32(bnword32 __far *out, bnword32 const __far *in,
  51.               unsigned len, bnword32 k);
  52. #define lbnMulAdd1_32 lbnMulAdd1_32
  53.        
  54. bnword32 __cdecl __far
  55. lbnMulSub1_32(bnword32 __far *out, bnword32 const __far *in,
  56.               unsigned len, bnword32 k);
  57. #define lbnMulSub1_32 lbnMulSub1_32
  58.  
  59. bnword32 __cdecl __far
  60. lbnDiv21_32(bnword32 __far *q, bnword32 nh, bnword32 nl, bnword32 d);
  61. #define lbnDiv21_32 lbnDiv21_32
  62.  
  63. bnword16 __cdecl __far
  64. lbnModQ_32(bnword32 const __far *n, unsigned len, bnword32 d);
  65. #define lbnModQ_32 lbnModQ_32
  66.  
  67. int __cdecl __far not386(void);
  68.  
  69. #ifdef __cplusplus
  70. }
  71. #endif
  72.  
  73. /* Turn off warning about negation of unsigned values */
  74. #ifdef _MSC_VER
  75. #pragma warning(disable:4146)
  76. #endif
  77.