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
5981f5d1
Commit
5981f5d1
authored
May 14, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
parents
4c774e0c
0d3b0838
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
strings/my_strtoll10.c
strings/my_strtoll10.c
+7
-7
No files found.
strings/my_strtoll10.c
View file @
5981f5d1
...
...
@@ -22,9 +22,9 @@
#define ULONGLONG_MAX (~(ulonglong) 0)
#define MAX_NEGATIVE_NUMBER ((ulonglong) LL(0x8000000000000000))
#define INIT_CNT 9
#define LFACTOR LL(1000000000)
#define LFACTOR1 LL(10000000000)
#define LFACTOR2 LL(100000000000)
#define LFACTOR
U
LL(1000000000)
#define LFACTOR1
U
LL(10000000000)
#define LFACTOR2
U
LL(100000000000)
static
unsigned
long
lfactor
[
9
]
=
{
...
...
@@ -113,8 +113,8 @@ longlong my_strtoll10(const char *nptr, char **endptr, int *error)
negative
=
1
;
if
(
++
s
==
end
)
goto
no_conv
;
cutoff
=
MAX_NEGATIVE_NUMBER
/
L
L
(
100000000000
)
;
cutoff2
=
(
MAX_NEGATIVE_NUMBER
%
L
L
(
100000000000
)
)
/
100
;
cutoff
=
MAX_NEGATIVE_NUMBER
/
L
FACTOR2
;
cutoff2
=
(
MAX_NEGATIVE_NUMBER
%
L
FACTOR2
)
/
100
;
cutoff3
=
MAX_NEGATIVE_NUMBER
%
100
;
}
else
...
...
@@ -125,8 +125,8 @@ longlong my_strtoll10(const char *nptr, char **endptr, int *error)
if
(
++
s
==
end
)
goto
no_conv
;
}
cutoff
=
ULONGLONG_MAX
/
L
L
(
100000000000
)
;
cutoff2
=
ULONGLONG_MAX
%
L
L
(
100000000000
)
/
100
;
cutoff
=
ULONGLONG_MAX
/
L
FACTOR2
;
cutoff2
=
ULONGLONG_MAX
%
L
FACTOR2
/
100
;
cutoff3
=
ULONGLONG_MAX
%
100
;
}
...
...
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