home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / TRSICAT.LZX / CATS_CD2_TRSI / Inc&AD1.3 / Includes / resources / mathresource.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-12  |  1.5 KB  |  57 lines

  1. #ifndef RESOURCES_MATHRESOURCE_H
  2. #define RESOURCES_MATHRESOURCE_H
  3. /*
  4. **    $Filename: resources/mathresource.h $
  5. **    $Release: 1.3 $
  6. **
  7. **    
  8. **
  9. **    (C) Copyright 1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include <exec/types.h>
  15. #endif
  16.  
  17. #ifndef EXEC_NODES_H
  18. #include <exec/nodes.h>
  19. #endif
  20.  
  21. /*
  22. *    The 'Init' entries are only used if the corresponding
  23. *    bit is set in the Flags field.
  24. *
  25. *    So if you are just a 68881, you do not need the Init stuff
  26. *    just make sure you have cleared the Flags field.
  27. *
  28. *    This should allow us to add Extended Precision later.
  29. *
  30. *    For Init users, if you need to be called whenever a task
  31. *    opens this library for use, you need to change the appropriate
  32. *    entries in MathIEEELibrary.
  33. */
  34.  
  35. struct MathIEEEResource
  36. {
  37.     struct    Node    MathIEEEResource_Node;
  38.     unsigned short    MathIEEEResource_Flags;
  39.     unsigned short    *MathIEEEResource_BaseAddr; /* ptr to 881 if exists */
  40.     void    (*MathIEEEResource_DblBasInit)();
  41.     void    (*MathIEEEResource_DblTransInit)();
  42.     void    (*MathIEEEResource_SglBasInit)();
  43.     void    (*MathIEEEResource_SglTransInit)();
  44.     void    (*MathIEEEResource_ExtBasInit)();
  45.     void    (*MathIEEEResource_ExtTransInit)();
  46. };
  47.  
  48. /* definations for MathIEEEResource_FLAGS */
  49. #define MATHIEEERESOURCEF_DBLBAS    (1<<0)
  50. #define MATHIEEERESOURCEF_DBLTRANS    (1<<1)
  51. #define MATHIEEERESOURCEF_SGLBAS    (1<<2)
  52. #define MATHIEEERESOURCEF_SGLTRANS    (1<<3)
  53. #define MATHIEEERESOURCEF_EXTBAS    (1<<4)
  54. #define MATHIEEERESOURCEF_EXTTRANS    (1<<5)
  55.  
  56. #endif    /* RESOURCES_MATHRESOURCE_H */
  57.