Ignore:
Timestamp:
Mar 10, 2006, 10:31:32 AM (15 years ago)
Author:
Sam Hocevar
Message:
  • Implemented a few math functions in our kernel: cos(), sin(), sqrt().
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/kernel/kernel.h

    r573 r578  
    2525#define RAND_MAX ((unsigned int)0x8000000)
    2626#define INT_MAX ((int)0x7fffffff)
     27#define M_PI 3.14159265358979323846
    2728#define __BYTE_ORDER 1
    2829#define __BIG_ENDIAN 2
     
    111112int gettimeofday(struct timeval *tv, struct timezone *tz);
    112113
     114/* math.h functions */
     115double cos(double x);
     116double sin(double x);
     117double sqrt(double x);
     118
Note: See TracChangeset for help on using the changeset viewer.