| version 1.2, 2002/07/12 21:07:16 |
version 1.3, 2002/07/14 15:24:44 |
|
|
| #include <string.h> |
#include <string.h> |
| #include <unistd.h> |
#include <unistd.h> |
| #include "strmmx.h" |
#include "strmmx.h" |
| |
|
| char *strcpymmx(void *dest, const void *src) |
char *strcpymmx(void *dest, const void *src) |
| { |
{ |
| return (char *) memcpymmx(dest, src, strlen(src)); |
return (char *) memcpymmx(dest, src, strlen(src)); |
| Line 13 char *strncpymmx(void *dest, const void |
|
| Line 14 char *strncpymmx(void *dest, const void |
|
| { |
{ |
| return (char *) memcpymmx(dest, src, n); |
return (char *) memcpymmx(dest, src, n); |
| } |
} |
| int align(const int n) |
|
| |
static int align(const int n) |
| { |
{ |
| return ((n >> 3) + (n % 8 != 0)) << 3; |
return ((n >> 3) + (n % 8 != 0)) << 3; |
| } |
} |
| Line 76 int memcmpmmx(const void *s1, const void |
|
| Line 78 int memcmpmmx(const void *s1, const void |
|
| } |
} |
| |
|
| #if defined(SELF) || defined(SELFTEST) || defined(SELF_MMX) |
#if defined(SELF) || defined(SELFTEST) || defined(SELF_MMX) |
| |
|
| /* testujeme memcpymmx */ |
/* testujeme memcpymmx */ |
| int main(int argc, char *argv[]) |
int main(int argc, char *argv[]) |
| { |
{ |
| Line 95 int main(int argc, char *argv[]) |
|
| Line 98 int main(int argc, char *argv[]) |
|
| memcpymmx(pole2, pole1, bsize); |
memcpymmx(pole2, pole1, bsize); |
| exit(0); |
exit(0); |
| } |
} |
| |
|
| #endif |
#endif |
| |
|