Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1.  
  2. #ifndef __platmath_h__
  3. #define __platmath_h__
  4.  
  5. // Beware the use of these functions! They cannot be guaranteed to be
  6. // supported on any platform.
  7. double GetDouble(LispObject* aInteger);
  8. LispObject* Double(LispEnvironment& aEnvironment,double aValue);
  9.  
  10. LispObject* PlatArcSin(LispEnvironment& aEnvironment,LispObject* int1, LispInt aPrecision);
  11. LispObject* PlatLn(LispEnvironment& aEnvironment,LispObject* int1, LispInt aPrecision);
  12. LispObject* PlatPower(LispEnvironment& aEnvironment,LispObject* int1, LispObject* int2,
  13.                         LispInt aPrecision);
  14.  
  15. LispObject* PlatDiv(LispEnvironment& aEnvironment,LispObject* int1, LispObject* int2,LispInt aPrecision);
  16.  
  17. LispObject* PlatIsPrime(LispEnvironment& aEnvironment,LispObject* int1, LispInt aPrecision);
  18.  
  19. // table lookup for small prime numbers
  20. unsigned primes_table_check(unsigned long p);
  21. unsigned primes_table_range();
  22.  
  23. #endif
  24.  
  25.