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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
8f888ab1
Commit
8f888ab1
authored
May 25, 2018
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup log2() portability checks
parent
3e63fa6e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
15 deletions
+0
-15
cmake/os/WindowsCache.cmake
cmake/os/WindowsCache.cmake
+0
-1
config.h.cmake
config.h.cmake
+0
-1
configure.cmake
configure.cmake
+0
-2
include/my_global.h
include/my_global.h
+0
-11
No files found.
cmake/os/WindowsCache.cmake
View file @
8f888ab1
...
@@ -87,7 +87,6 @@ SET(HAVE_LDIV 1 CACHE INTERNAL "")
...
@@ -87,7 +87,6 @@ SET(HAVE_LDIV 1 CACHE INTERNAL "")
SET
(
HAVE_LIMITS_H 1 CACHE INTERNAL
""
)
SET
(
HAVE_LIMITS_H 1 CACHE INTERNAL
""
)
SET
(
HAVE_LOCALE_H 1 CACHE INTERNAL
""
)
SET
(
HAVE_LOCALE_H 1 CACHE INTERNAL
""
)
SET
(
HAVE_LOCALTIME_R 1 CACHE INTERNAL
""
)
SET
(
HAVE_LOCALTIME_R 1 CACHE INTERNAL
""
)
#SET(HAVE_LOG2 CACHE INTERNAL "")
SET
(
HAVE_LRAND48 CACHE INTERNAL
""
)
SET
(
HAVE_LRAND48 CACHE INTERNAL
""
)
SET
(
HAVE_LSTAT CACHE INTERNAL
""
)
SET
(
HAVE_LSTAT CACHE INTERNAL
""
)
SET
(
HAVE_MADVISE CACHE INTERNAL
""
)
SET
(
HAVE_MADVISE CACHE INTERNAL
""
)
...
...
config.h.cmake
View file @
8f888ab1
...
@@ -165,7 +165,6 @@
...
@@ -165,7 +165,6 @@
#cmakedefine HAVE_LDIV 1
#cmakedefine HAVE_LDIV 1
#cmakedefine HAVE_LRAND48 1
#cmakedefine HAVE_LRAND48 1
#cmakedefine HAVE_LOCALTIME_R 1
#cmakedefine HAVE_LOCALTIME_R 1
#cmakedefine HAVE_LOG2 1
#cmakedefine HAVE_LSTAT 1
#cmakedefine HAVE_LSTAT 1
#cmakedefine HAVE_MEMALIGN 1
#cmakedefine HAVE_MEMALIGN 1
/*
#cmakedefine HAVE_MLOCK 1 see Bug#54662 */
/*
#cmakedefine HAVE_MLOCK 1 see Bug#54662 */
...
...
configure.cmake
View file @
8f888ab1
...
@@ -477,8 +477,6 @@ CHECK_SYMBOL_EXISTS(TIOCSTAT "sys/ioctl.h" TIOCSTAT_IN_SYS_IOCTL)
...
@@ -477,8 +477,6 @@ CHECK_SYMBOL_EXISTS(TIOCSTAT "sys/ioctl.h" TIOCSTAT_IN_SYS_IOCTL)
CHECK_SYMBOL_EXISTS
(
FIONREAD
"sys/filio.h"
FIONREAD_IN_SYS_FILIO
)
CHECK_SYMBOL_EXISTS
(
FIONREAD
"sys/filio.h"
FIONREAD_IN_SYS_FILIO
)
CHECK_SYMBOL_EXISTS
(
gettimeofday
"sys/time.h"
HAVE_GETTIMEOFDAY
)
CHECK_SYMBOL_EXISTS
(
gettimeofday
"sys/time.h"
HAVE_GETTIMEOFDAY
)
CHECK_SYMBOL_EXISTS
(
log2 math.h HAVE_LOG2
)
#
#
# Test for endianness
# Test for endianness
#
#
...
...
include/my_global.h
View file @
8f888ab1
...
@@ -843,17 +843,6 @@ inline unsigned long long my_double2ulonglong(double d)
...
@@ -843,17 +843,6 @@ inline unsigned long long my_double2ulonglong(double d)
#define M_LN2 0.69314718055994530942
#define M_LN2 0.69314718055994530942
#endif
#endif
#ifndef HAVE_LOG2
/*
This will be slightly slower and perhaps a tiny bit less accurate than
doing it the IEEE754 way but log2() should be available on C99 systems.
*/
static
inline
double
log2
(
double
x
)
{
return
(
log
(
x
)
/
M_LN2
);
}
#endif
/*
/*
Max size that must be added to a so that we know Size to make
Max size that must be added to a so that we know Size to make
addressable obj.
addressable obj.
...
...
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