60 changed files with 260 additions and 365 deletions
-
13BUILD/SETUP.sh
-
117BUILD/check-cpu
-
1client/mysql.cc
-
21client/mysqltest.cc
-
1cmake/os/WindowsCache.cmake
-
2cmd-line-utils/readline/Makefile.am
-
1config.h.cmake
-
1configure.cmake
-
2configure.in
-
6extra/comp_err.c
-
12extra/replace.c
-
5extra/yassl/src/crypto_wrapper.cpp
-
6extra/yassl/taocrypt/include/blowfish.hpp
-
16extra/yassl/taocrypt/include/runtime.hpp
-
3extra/yassl/taocrypt/src/aes.cpp
-
6extra/yassl/taocrypt/src/algebra.cpp
-
3extra/yassl/taocrypt/src/blowfish.cpp
-
32extra/yassl/taocrypt/src/integer.cpp
-
23extra/yassl/taocrypt/src/misc.cpp
-
3extra/yassl/taocrypt/src/twofish.cpp
-
5extra/yassl/testsuite/test.hpp
-
21include/m_string.h
-
16include/my_bitmap.h
-
21include/my_global.h
-
2libmysql/Makefile.shared
-
2mysql-test/lib/My/SafeProcess/safe_process.cc
-
2mysys/mf_loadpath.c
-
12mysys/mf_pack.c
-
6mysys/my_bitmap.c
-
2mysys/my_gethwaddr.c
-
14mysys/my_getopt.c
-
1mysys/my_handler.c
-
2mysys/safemalloc.c
-
3mysys/thr_lock.c
-
1regex/regcomp.c
-
8sql/field.cc
-
3sql/item.cc
-
26sql/item_create.cc
-
2sql/log.cc
-
16sql/log_event.cc
-
6sql/log_event_old.cc
-
13sql/mysqld.cc
-
3sql/rpl_rli.cc
-
4sql/rpl_utility.cc
-
6sql/slave.cc
-
6sql/sql_base.cc
-
3sql/sql_repl.cc
-
2sql/udf_example.c
-
4sql/unireg.h
-
4storage/heap/hp_hash.c
-
4storage/heap/hp_test2.c
-
8storage/myisam/mi_search.c
-
22storage/myisam/mi_test2.c
-
2storage/myisam/mi_unique.c
-
5storage/myisammrg/ha_myisammrg.cc
-
2strings/CMakeLists.txt
-
8strings/Makefile.am
-
66strings/bcmp.c
-
10strings/str_test.c
-
8strings/xml.c
@ -1,66 +0,0 @@ |
|||
/* Copyright (C) 2000 MySQL AB |
|||
|
|||
This program is free software; you can redistribute it and/or modify |
|||
it under the terms of the GNU General Public License as published by |
|||
the Free Software Foundation; version 2 of the License. |
|||
|
|||
This program is distributed in the hope that it will be useful, |
|||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
GNU General Public License for more details. |
|||
|
|||
You should have received a copy of the GNU General Public License |
|||
along with this program; if not, write to the Free Software |
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ |
|||
|
|||
/* |
|||
bcmp(s1, s2, len) returns 0 if the "len" bytes starting at "s1" are |
|||
identical to the "len" bytes starting at "s2", non-zero if they are |
|||
different. |
|||
Now only used with purify because purify gives wrong warnings when |
|||
comparing a shorter string with bcmp. |
|||
*/ |
|||
|
|||
#include <my_global.h> |
|||
#include "m_string.h" |
|||
|
|||
#ifdef HAVE_purify |
|||
#undef bcmp |
|||
#undef HAVE_BCMP |
|||
#endif |
|||
|
|||
#if !defined(bcmp) && !defined(HAVE_BCMP) |
|||
|
|||
#if defined(MC68000) && defined(DS90) |
|||
|
|||
int bcmp(s1,s2, len) |
|||
const char *s1; |
|||
const char *s2; |
|||
uint len; /* 0 <= len <= 65535 */ |
|||
{ |
|||
asm(" movl 12(a7),d0 "); |
|||
asm(" subqw #1,d0 "); |
|||
asm(" blt .L5 "); |
|||
asm(" movl 4(a7),a1 "); |
|||
asm(" movl 8(a7),a0 "); |
|||
asm(".L4: cmpmb (a0)+,(a1)+ "); |
|||
asm(" dbne d0,.L4 "); |
|||
asm(".L5: addqw #1,d0 "); |
|||
} |
|||
|
|||
#else |
|||
|
|||
#ifndef HAVE_purify |
|||
size_t bcmp(register const uchar *s1,register const uchar *s2, |
|||
register size_t len) |
|||
#else |
|||
size_t my_bcmp(register const uchar *s1,register const uchar *s2, |
|||
register size_t len) |
|||
#endif |
|||
{ |
|||
while (len-- != 0 && *s1++ == *s2++) ; |
|||
return len+1; |
|||
} |
|||
|
|||
#endif |
|||
#endif /* BSD_FUNCS */ |
Write
Preview
Loading…
Cancel
Save
Reference in new issue