Rev 1005 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1005 | Rev 1764 | ||
---|---|---|---|
Line 57... | Line 57... | ||
57 | 57 | ||
58 | 58 | ||
59 | 59 | ||
60 | double fabs(double x) |
60 | double __cdecl fabs(double x) |
61 | { |
61 | { |
62 | __asm fld x |
62 | __asm fld x |
63 | __asm fabs |
63 | __asm fabs |
64 | } |
64 | } |
65 | #define M_PI 3.14159265358979323846 |
65 | #define M_PI 3.14159265358979323846 |
66 | double cos(double x) |
66 | double __cdecl cos(double x) |
67 | { |
67 | { |
68 | __asm fld x |
68 | __asm fld x |
69 | __asm fcos |
69 | __asm fcos |
70 | } |
70 | } |
71 | double sin(double x) |
71 | double __cdecl sin(double x) |
72 | { |
72 | { |
Line 240... | Line 240... | ||
240 | Str[j] = 0; |
240 | Str[j] = 0; |
241 | } |
241 | } |
242 | 242 | ||
243 | void *memcpy(void *dst, const void *src, unsigned size) |
243 | #ifndef AUTOBUILD |
Line -... | Line 244... | ||
- | 244 | void *memcpy(void *dst, const void *src, unsigned size) |
|
244 | { |
245 | { |
245 | while (size--) |
246 | while (size--) |
246 | *((char*)dst+size) = *((char*)src+size); |
247 | *((char*)dst+size) = *((char*)src+size); |
247 | return dst; |
248 | return dst; |
248 | } |
249 | } |
249 | 250 | #endif |
|
- | 251 | ||
Line 250... | Line 252... | ||
250 | int strcmp(const char *s1, const char *s2) |
252 | int strcmp(const char *s1, const char *s2) |
251 | { |
253 | { |
252 | int i; |
254 | int i; |