Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d6f7a6a1
Commit
d6f7a6a1
authored
Oct 15, 2007
by
jani@hynda.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes to merge between 5.1-main and 5.1-marvel
parent
7887babe
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
include/my_atomic.h
include/my_atomic.h
+5
-5
include/my_bit.h
include/my_bit.h
+4
-2
mysys/my_create.c
mysys/my_create.c
+1
-0
mysys/my_delete.c
mysys/my_delete.c
+1
-0
No files found.
include/my_atomic.h
View file @
d6f7a6a1
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
#ifdef HAVE_INLINE
#ifdef HAVE_INLINE
#define make_atomic_add(S) \
#define make_atomic_add(S) \
static inline
int ## S my_atomic_add ## S( \
STATIC_INLINE
int ## S my_atomic_add ## S( \
int ## S volatile *a, int ## S v) \
int ## S volatile *a, int ## S v) \
{ \
{ \
make_atomic_add_body(S); \
make_atomic_add_body(S); \
...
@@ -43,7 +43,7 @@ static inline int ## S my_atomic_add ## S( \
...
@@ -43,7 +43,7 @@ static inline int ## S my_atomic_add ## S( \
}
}
#define make_atomic_swap(S) \
#define make_atomic_swap(S) \
static inline
int ## S my_atomic_swap ## S( \
STATIC_INLINE
int ## S my_atomic_swap ## S( \
int ## S volatile *a, int ## S v) \
int ## S volatile *a, int ## S v) \
{ \
{ \
make_atomic_swap_body(S); \
make_atomic_swap_body(S); \
...
@@ -51,7 +51,7 @@ static inline int ## S my_atomic_swap ## S( \
...
@@ -51,7 +51,7 @@ static inline int ## S my_atomic_swap ## S( \
}
}
#define make_atomic_cas(S) \
#define make_atomic_cas(S) \
static inline
int my_atomic_cas ## S(int ## S volatile *a, \
STATIC_INLINE
int my_atomic_cas ## S(int ## S volatile *a, \
int ## S *cmp, int ## S set) \
int ## S *cmp, int ## S set) \
{ \
{ \
int8 ret; \
int8 ret; \
...
@@ -60,7 +60,7 @@ static inline int my_atomic_cas ## S(int ## S volatile *a, \
...
@@ -60,7 +60,7 @@ static inline int my_atomic_cas ## S(int ## S volatile *a, \
}
}
#define make_atomic_load(S) \
#define make_atomic_load(S) \
static inline
int ## S my_atomic_load ## S(int ## S volatile *a) \
STATIC_INLINE
int ## S my_atomic_load ## S(int ## S volatile *a) \
{ \
{ \
int ## S ret; \
int ## S ret; \
make_atomic_load_body(S); \
make_atomic_load_body(S); \
...
@@ -68,7 +68,7 @@ static inline int ## S my_atomic_load ## S(int ## S volatile *a) \
...
@@ -68,7 +68,7 @@ static inline int ## S my_atomic_load ## S(int ## S volatile *a) \
}
}
#define make_atomic_store(S) \
#define make_atomic_store(S) \
static inline
void my_atomic_store ## S( \
STATIC_INLINE
void my_atomic_store ## S( \
int ## S volatile *a, int ## S v) \
int ## S volatile *a, int ## S v) \
{ \
{ \
make_atomic_store_body(S); \
make_atomic_store_body(S); \
...
...
include/my_bit.h
View file @
d6f7a6a1
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
Some useful bit functions
Some useful bit functions
*/
*/
C_MODE_START
#ifdef HAVE_INLINE
#ifdef HAVE_INLINE
extern
const
char
_my_bits_nbits
[
256
];
extern
const
char
_my_bits_nbits
[
256
];
...
@@ -97,11 +98,12 @@ STATIC_INLINE uint32 my_reverse_bits(uint32 key)
...
@@ -97,11 +98,12 @@ STATIC_INLINE uint32 my_reverse_bits(uint32 key)
_my_bits_reverse_table
[(
key
>>
24
)
];
_my_bits_reverse_table
[(
key
>>
24
)
];
}
}
#else
#else
/* HAVE_INLINE */
extern
uint
my_bit_log2
(
ulong
value
);
extern
uint
my_bit_log2
(
ulong
value
);
extern
uint32
my_round_up_to_next_power
(
uint32
v
);
extern
uint32
my_round_up_to_next_power
(
uint32
v
);
uint32
my_clear_highest_bit
(
uint32
v
);
uint32
my_clear_highest_bit
(
uint32
v
);
uint32
my_reverse_bits
(
uint32
key
);
uint32
my_reverse_bits
(
uint32
key
);
extern
uint
my_count_bits
(
ulonglong
v
);
extern
uint
my_count_bits
(
ulonglong
v
);
extern
uint
my_count_bits_ushort
(
ushort
v
);
extern
uint
my_count_bits_ushort
(
ushort
v
);
#endif
#endif
/* HAVE_INLINE */
C_MODE_END
mysys/my_create.c
View file @
d6f7a6a1
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
#include <my_dir.h>
#include <my_dir.h>
#include "mysys_err.h"
#include "mysys_err.h"
#include <errno.h>
#include <errno.h>
#include <my_sys.h>
#if defined(__WIN__)
#if defined(__WIN__)
#include <share.h>
#include <share.h>
#endif
#endif
...
...
mysys/my_delete.c
View file @
d6f7a6a1
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
#include "mysys_priv.h"
#include "mysys_priv.h"
#include "mysys_err.h"
#include "mysys_err.h"
#include <my_sys.h>
int
my_delete
(
const
char
*
name
,
myf
MyFlags
)
int
my_delete
(
const
char
*
name
,
myf
MyFlags
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment