Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
12a91417
Commit
12a91417
authored
Mar 14, 2015
by
Bo Yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert pull request 175: Add support for the TILE-Gx processor family.
parent
9d31c227
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
83 deletions
+0
-83
Makefile.am
src/Makefile.am
+0
-1
atomicops.h
src/google/protobuf/stubs/atomicops.h
+0
-2
atomicops_internals_tile_gcc.h
src/google/protobuf/stubs/atomicops_internals_tile_gcc.h
+0
-77
platform_macros.h
src/google/protobuf/stubs/platform_macros.h
+0
-3
No files found.
src/Makefile.am
View file @
12a91417
...
@@ -54,7 +54,6 @@ nobase_include_HEADERS = \
...
@@ -54,7 +54,6 @@ nobase_include_HEADERS = \
google/protobuf/stubs/atomicops.h
\
google/protobuf/stubs/atomicops.h
\
google/protobuf/stubs/atomicops_internals_aix.h
\
google/protobuf/stubs/atomicops_internals_aix.h
\
google/protobuf/stubs/atomicops_internals_arm64_gcc.h
\
google/protobuf/stubs/atomicops_internals_arm64_gcc.h
\
google/protobuf/stubs/atomicops_internals_tile_gcc.h
\
google/protobuf/stubs/atomicops_internals_arm_gcc.h
\
google/protobuf/stubs/atomicops_internals_arm_gcc.h
\
google/protobuf/stubs/atomicops_internals_arm_qnx.h
\
google/protobuf/stubs/atomicops_internals_arm_qnx.h
\
google/protobuf/stubs/atomicops_internals_atomicword_compat.h
\
google/protobuf/stubs/atomicops_internals_atomicword_compat.h
\
...
...
src/google/protobuf/stubs/atomicops.h
View file @
12a91417
...
@@ -207,8 +207,6 @@ GOOGLE_PROTOBUF_ATOMICOPS_ERROR
...
@@ -207,8 +207,6 @@ GOOGLE_PROTOBUF_ATOMICOPS_ERROR
#include <google/protobuf/stubs/atomicops_internals_arm64_gcc.h>
#include <google/protobuf/stubs/atomicops_internals_arm64_gcc.h>
#elif defined(GOOGLE_PROTOBUF_ARCH_ARM_QNX)
#elif defined(GOOGLE_PROTOBUF_ARCH_ARM_QNX)
#include <google/protobuf/stubs/atomicops_internals_arm_qnx.h>
#include <google/protobuf/stubs/atomicops_internals_arm_qnx.h>
#elif defined(GOOGLE_PROTOBUF_ARCH_TILE)
#include <google/protobuf/stubs/atomicops_internals_tile_gcc.h>
#elif defined(GOOGLE_PROTOBUF_ARCH_MIPS) || defined(GOOGLE_PROTOBUF_ARCH_MIPS64)
#elif defined(GOOGLE_PROTOBUF_ARCH_MIPS) || defined(GOOGLE_PROTOBUF_ARCH_MIPS64)
#include <google/protobuf/stubs/atomicops_internals_mips_gcc.h>
#include <google/protobuf/stubs/atomicops_internals_mips_gcc.h>
#elif defined(__native_client__)
#elif defined(__native_client__)
...
...
src/google/protobuf/stubs/atomicops_internals_tile_gcc.h
deleted
100644 → 0
View file @
9d31c227
#ifndef GOOGLE_PROTOBUF_ATOMICOPS_INTERNALS_TILE_GCC_H_
#define GOOGLE_PROTOBUF_ATOMICOPS_INTERNALS_TILE_GCC_H_
namespace
google
{
namespace
protobuf
{
namespace
internal
{
inline
void
NoBarrier_Store
(
volatile
Atomic32
*
ptr
,
Atomic32
value
)
{
asm
volatile
(
"st4 %0, %1"
:
"=r"
(
*
ptr
)
:
"m"
(
value
));
}
inline
Atomic32
NoBarrier_Load
(
volatile
const
Atomic32
*
ptr
)
{
Atomic32
dest
;
asm
volatile
(
"ld4s %0, %1"
:
"=r"
(
dest
)
:
"m"
(
*
ptr
));
return
dest
;
}
inline
void
NoBarrier_Store
(
volatile
Atomic64
*
ptr
,
Atomic64
value
)
{
asm
volatile
(
"st %0, %1"
:
"=r"
(
*
ptr
)
:
"m"
(
value
));
}
inline
Atomic64
NoBarrier_Load
(
volatile
const
Atomic64
*
ptr
)
{
Atomic64
dest
;
asm
volatile
(
"ld %0, %1"
:
"=r"
(
dest
)
:
"m"
(
*
ptr
));
return
dest
;
}
inline
Atomic64
Acquire_Load
(
volatile
const
Atomic64
*
ptr
)
{
return
NoBarrier_Load
(
ptr
);
}
inline
void
Release_Store
(
volatile
Atomic64
*
ptr
,
Atomic64
value
)
{
NoBarrier_Store
(
ptr
,
value
);
}
inline
Atomic64
Acquire_CompareAndSwap
(
volatile
Atomic64
*
ptr
,
Atomic64
old_value
,
Atomic64
new_value
)
{
Atomic64
tmp
;
asm
volatile
(
"mtspr CMPEXCH_VALUE, %3
\n\t
"
"cmpexch %0, %1, %2"
:
"=r"
(
tmp
),
"=m"
(
*
ptr
)
:
"r"
(
new_value
),
"r"
(
old_value
));
return
tmp
;
}
inline
Atomic64
NoBarrier_AtomicExchange
(
volatile
Atomic64
*
ptr
,
Atomic64
new_value
)
{
Atomic64
old_value
;
asm
volatile
(
"exch %0, %1, %2"
:
"=r"
(
old_value
),
"=m"
(
*
ptr
)
:
"r"
(
new_value
));
return
old_value
;
}
inline
Atomic64
NoBarrier_AtomicIncrement
(
volatile
Atomic64
*
ptr
,
Atomic64
value
)
{
Atomic64
dest
;
asm
volatile
(
"fetchadd %0, %1, %2"
:
"=r"
(
dest
),
"=m"
(
*
ptr
)
:
"r"
(
value
));
return
*
ptr
;
}
}
// namespace internal
}
// namespace protobuf
}
// namespace google
#endif // GOOGLE_PROTOBUF_ATOMICOPS_INTERNALS_TILE_GCC_H_
src/google/protobuf/stubs/platform_macros.h
View file @
12a91417
...
@@ -52,9 +52,6 @@
...
@@ -52,9 +52,6 @@
#elif defined(__ARMEL__)
#elif defined(__ARMEL__)
#define GOOGLE_PROTOBUF_ARCH_ARM 1
#define GOOGLE_PROTOBUF_ARCH_ARM 1
#define GOOGLE_PROTOBUF_ARCH_32_BIT 1
#define GOOGLE_PROTOBUF_ARCH_32_BIT 1
#elif defined(__tile__)
#define GOOGLE_PROTOBUF_ARCH_TILE 1
#define GOOGLE_PROTOBUF_ARCH_64_BIT 1
#elif defined(__aarch64__)
#elif defined(__aarch64__)
#define GOOGLE_PROTOBUF_ARCH_AARCH64 1
#define GOOGLE_PROTOBUF_ARCH_AARCH64 1
#define GOOGLE_PROTOBUF_ARCH_64_BIT 1
#define GOOGLE_PROTOBUF_ARCH_64_BIT 1
...
...
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