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
1157c688
Commit
1157c688
authored
Nov 06, 2000
by
tim@threads.polyesthetic.msg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes from teg@redhat.com - subtle bugs that only show up under
certain circumstances.
parent
58b37627
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
include/global.h
include/global.h
+8
-4
strings/strstr-sparc.s
strings/strstr-sparc.s
+2
-2
No files found.
include/global.h
View file @
1157c688
...
...
@@ -682,10 +682,14 @@ typedef char bool; /* Ordinary boolean values 0 1 */
*((T)+4)=(uchar) (((A) >> 32)); }
#define int8store(T,A) *((ulonglong *) (T))= (ulonglong) (A)
#define doubleget(V,M) { *((long *) &V) = *((long*) M); \
*(((long *) &V)+1) = *(((long*) M)+1); }
#define doublestore(T,V) { *((long *) T) = *((long*) &V); \
*(((long *) T)+1) = *(((long*) &V)+1); }
typedef
union
{
double
v
;
long
m
[
2
];
}
doubleget_union
;
#define doubleget(V,M) { ((doubleget_union *)&V)->m[0] = *((long*) M); \
((doubleget_union *)&V)->m[1] = *(((long*) M)+1); }
#define doublestore(T,V) { *((long *) T) = ((doubleget_union *)&V)->m[0]; \
*(((long *) T)+1) = ((doubleget_union *)&V)->m[1]; }
#define float4get(V,M) { *((long *) &(V)) = *((long*) (M)); }
#define float8get(V,M) doubleget((V),(M))
#define float4store(V,M) memcpy((byte*) V,(byte*) (&M),sizeof(float))
...
...
strings/strstr-sparc.s
View file @
1157c688
...
...
@@ -31,12 +31,12 @@ strstr:
!
if
(*
str
++
==
*
search
)
{
!
i
=(
char
*)
str
; j=(char*) search+1;
ldsb
[%
o1
],%
g6
!
g6
=
First
char
of
search
ldsb
[%
o1
],%
o2
!
g6
=
First
char
of
search
.
top
:
ldsb
[%
o0
],%
g3
!
g3
=
First
char
of
rest
of
str
cmp
%
g3
,
0
be
.
abort
!
Found
end
null
;
cmp
%
g3
,%
g6
cmp
%
g3
,%
o2
bne
.
top
add
%
o0
,
1
,%
o0
...
...
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