Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for libcfg+/src/platon/str/strmmx.c between version 1.12 and 1.13

version 1.12, 2003/02/25 11:17:03 version 1.13, 2010/04/24 10:32:06
Line 30  char *PLATON_FUNC(strncpymmx)(void *dest
Line 30  char *PLATON_FUNC(strncpymmx)(void *dest
         ret[n] = '\0';          ret[n] = '\0';
         return ret;          return ret;
 }  }
 /* Function copy memory regions  
  */  #if defined(__sparc__)
   
   /* XXX: this should be done probably through macros, if possible */
   
   void *PLATON_FUNC(memcpymmx)(void *dest, const void *src, size_t n)
   {
           return memcpy(dest, src, n);
   }
   
   void *PLATON_FUNC(memsetmmx)(void *s, int c, size_t n)
   {
           return memset(s, c, n);
   }
   
   int PLATON_FUNC(memcmpmmx)(const void *s1, const void *s2, size_t n)
   {
           return memcmp(s1, s2, n);
   }
   
   #else
   
   /* Function copy memory regions using MMX */
 void *PLATON_FUNC(memcpymmx)(void *dest, const void *src, size_t n)  void *PLATON_FUNC(memcpymmx)(void *dest, const void *src, size_t n)
 {  {
         if ((n % 8) != 0)          if ((n % 8) != 0)
Line 46  void *PLATON_FUNC(memcpymmx)(void *dest,
Line 67  void *PLATON_FUNC(memcpymmx)(void *dest,
                         :"memory");                          :"memory");
         return dest;          return dest;
 }  }
 /* Function set every item of buffer to char 'c'  
  */  /* Function set every item of buffer to char 'c' using MMX */
 void *PLATON_FUNC(memsetmmx)(void *s, int c, size_t n)  void *PLATON_FUNC(memsetmmx)(void *s, int c, size_t n)
 {  {
         char set[8];          char set[8];
Line 64  void *PLATON_FUNC(memsetmmx)(void *s, in
Line 85  void *PLATON_FUNC(memsetmmx)(void *s, in
         return s;          return s;
 }  }
   
 /* Function compare two memory regions,return 0 or 1  /* Function compare two memory regions using MMX, returns 0 or 1 */
  */  
 int PLATON_FUNC(memcmpmmx)(const void *s1, const void *s2, size_t n)  int PLATON_FUNC(memcmpmmx)(const void *s1, const void *s2, size_t n)
 {  {
         if ((n % 8) != 0)          if ((n % 8) != 0)
Line 89  int PLATON_FUNC(memcmpmmx)(const void *s
Line 109  int PLATON_FUNC(memcmpmmx)(const void *s
         return 0;          return 0;
 }  }
   
   #endif /* #if defined(__sparc__) */
   
 #if defined(SELF) || defined(SELFTEST) || defined(SELF_MMX)  #if defined(SELF) || defined(SELFTEST) || defined(SELF_MMX)
   
 int main(int argc, char *argv[])  int main(int argc, char *argv[])

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top