Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 26. október 2026

Rozdiely pre libcfg+/src/platon/str/strmmx.c medzi verziami 1.12 a 1.13

verzia 1.12, 2003/02/25 11:17:03 verzia 1.13, 2010/04/24 10:32:06
Riadok 30  char *PLATON_FUNC(strncpymmx)(void *dest
Riadok 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)
Riadok 46  void *PLATON_FUNC(memcpymmx)(void *dest,
Riadok 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];
Riadok 64  void *PLATON_FUNC(memsetmmx)(void *s, in
Riadok 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)
Riadok 89  int PLATON_FUNC(memcmpmmx)(const void *s
Riadok 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:
Odstranené z verzie1.12  
zmenené riadky
  Pridané vo verzii1.13

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok