/
usr
/
include
/
mysql
/
server
/
/usr/include/mysql/server
mkdir
upload
Name
Size
Mode
Actions
mysql/
-
0755
rm
private/
-
0755
rm
big_endian.h
4505
0644
edit
dl
rm
byte_order_generic.h
5242
0644
edit
dl
rm
byte_order_generic_x86.h
4282
0644
edit
dl
rm
byte_order_generic_x86_64.h
4129
0644
edit
dl
rm
decimal.h
4921
0644
edit
dl
rm
errmsg.h
4409
0644
edit
dl
rm
handler_ername.h
4603
0644
edit
dl
rm
handler_state.h
758
0644
edit
dl
rm
json_lib.h
14217
0644
edit
dl
rm
keycache.h
8827
0644
edit
dl
rm
little_endian.h
3572
0644
edit
dl
rm
mariadb_capi_rename.h
3418
0644
edit
dl
rm
ma_dyncol.h
8045
0644
edit
dl
rm
mysql.h
40047
0644
edit
dl
rm
mysqld_ername.h
128496
0644
edit
dl
rm
mysqld_error.h
48384
0644
edit
dl
rm
mysql_com.h
31139
0644
edit
dl
rm
mysql_com_server.h
1313
0644
edit
dl
rm
mysql_embed.h
1124
0644
edit
dl
rm
mysql_time.h
2420
0644
edit
dl
rm
mysql_version.h
1289
0644
edit
dl
rm
my_alloc.h
2067
0644
edit
dl
rm
my_alloca.h
1431
0644
edit
dl
rm
my_attribute.h
3578
0644
edit
dl
rm
my_byteorder.h
2053
0644
edit
dl
rm
my_cmp.h
914
0644
edit
dl
rm
my_compiler.h
5266
0644
edit
dl
rm
my_config.h
14543
0644
edit
dl
rm
my_dbug.h
9953
0644
edit
dl
rm
my_decimal_limits.h
2074
0644
edit
dl
rm
my_dir.h
3887
0644
edit
dl
rm
my_getopt.h
5604
0644
edit
dl
rm
my_global.h
32880
0644
edit
dl
rm
my_list.h
1506
0644
edit
dl
rm
my_net.h
2029
0644
edit
dl
rm
my_pthread.h
27615
0644
edit
dl
rm
my_sys.h
49093
0644
edit
dl
rm
my_valgrind.h
4261
0644
edit
dl
rm
my_xml.h
2832
0644
edit
dl
rm
m_ctype.h
70089
0644
edit
dl
rm
m_string.h
10249
0644
edit
dl
rm
pack.h
1105
0644
edit
dl
rm
sql_common.h
5268
0644
edit
dl
rm
sql_state.h
14955
0644
edit
dl
rm
sslopt-case.h
1534
0644
edit
dl
rm
sslopt-longopts.h
2595
0644
edit
dl
rm
sslopt-vars.h
1405
0644
edit
dl
rm
typelib.h
2396
0644
edit
dl
rm
Edit:
/usr/include/mysql/server/byte_order_generic_x86_64.h
(4129B)
/* Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. Copyright (c) 2020, MariaDB Corporation. 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */ /* Optimized function-like macros for the x86 architecture (_WIN32 included). */ #define sint2korr(A) (int16) (*((int16 *) (A))) #define sint3korr(A) ((int32) ((((uchar) (A)[2]) & 128) ? \ (((uint32) 255L << 24) | \ (((uint32) (uchar) (A)[2]) << 16) |\ (((uint32) (uchar) (A)[1]) << 8) | \ ((uint32) (uchar) (A)[0])) : \ (((uint32) (uchar) (A)[2]) << 16) |\ (((uint32) (uchar) (A)[1]) << 8) | \ ((uint32) (uchar) (A)[0]))) #define sint4korr(A) (int32) (*((int32 *) (A))) #define uint2korr(A) (uint16) (*((uint16 *) (A))) #define uint3korr(A) (uint32) (((uint32) ((uchar) (A)[0])) |\ (((uint32) ((uchar) (A)[1])) << 8) |\ (((uint32) ((uchar) (A)[2])) << 16)) #define uint4korr(A) (uint32) (*((uint32 *) (A))) static inline ulonglong uint5korr(const void *p) { ulonglong a= *(uint32 *) p; ulonglong b= *(4 + (uchar *) p); return a | (b << 32); } static inline ulonglong uint6korr(const void *p) { ulonglong a= *(uint32 *) p; ulonglong b= *(uint16 *) (4 + (char *) p); return a | (b << 32); } #define uint8korr(A) (ulonglong) (*((ulonglong *) (A))) #define sint8korr(A) (longlong) (*((longlong *) (A))) #define int2store(T,A) do { uchar *pT= (uchar*)(T);\ *((uint16*)(pT))= (uint16) (A);\ } while (0) #define int3store(T,A) do { *(T)= (uchar) ((A));\ *(T+1)=(uchar) (((uint) (A) >> 8));\ *(T+2)=(uchar) (((A) >> 16));\ } while (0) #define int4store(T,A) do { uchar *pT= (uchar*)(T);\ *((uint32 *) (pT))= (uint32) (A); \ } while (0) #define int5store(T,A) do { uchar *pT= (uchar*)(T);\ *((uint32 *) (pT))= (uint32) (A); \ *((pT)+4)=(uchar) (((A) >> 32));\ } while (0) #define int6store(T,A) do { uchar *pT= (uchar*)(T);\ *((uint32 *) (pT))= (uint32) (A); \ *((uint16*)(pT+4))= (uint16) (A >> 32);\ } while (0) #define int8store(T,A) do { uchar *pT= (uchar*)(T);\ *((ulonglong *) (pT))= (ulonglong) (A);\ } while(0) #if defined(__GNUC__) #define HAVE_mi_uint5korr #define HAVE_mi_uint6korr #define HAVE_mi_uint7korr #define HAVE_mi_uint8korr /* Read numbers stored in high-bytes-first order */ static inline ulonglong mi_uint5korr(const void *p) { ulonglong a= *(uint32 *) p; ulonglong b= *(4 + (uchar *) p); ulonglong v= (a | (b << 32)) << 24; asm ("bswapq %0" : "=r" (v) : "0" (v)); return v; } static inline ulonglong mi_uint6korr(const void *p) { ulonglong a= *(uint32 *) p; ulonglong b= *(uint16 *) (4 + (char *) p); ulonglong v= (a | (b << 32)) << 16; asm ("bswapq %0" : "=r" (v) : "0" (v)); return v; } static inline ulonglong mi_uint7korr(const void *p) { ulonglong a= *(uint32 *) p; ulonglong b= *(uint16 *) (4 + (char *) p); ulonglong c= *(6 + (uchar *) p); ulonglong v= (a | (b << 32) | (c << 48)) << 8; asm ("bswapq %0" : "=r" (v) : "0" (v)); return v; } static inline ulonglong mi_uint8korr(const void *p) { ulonglong v= *(ulonglong *) p; asm ("bswapq %0" : "=r" (v) : "0" (v)); return v; } #endif
Save
cmd:
run