Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
educg-net-12099-788067
proj97-la-seL4-tyyteam-857
Commits
a253b7fa
Unverified
Commit
a253b7fa
authored
2 years ago
by
Leoncoci
Committed by
GitHub
2 years ago
Browse files
Options
Download
Patches
Plain Diff
test:test for Cparser
parent
0543b650
master
dev
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/arch/loongarch/larchintrin.h
+12
-4
include/arch/loongarch/larchintrin.h
with
12 additions
and
4 deletions
+12
-4
include/arch/loongarch/larchintrin.h
+
12
−
4
View file @
a253b7fa
...
@@ -43,12 +43,20 @@ typedef struct rdtime
...
@@ -43,12 +43,20 @@ typedef struct rdtime
}
__rdtime_t
;
}
__rdtime_t
;
extern
inline
int
builtin_loongarch_rdtime_d
(
void
)
#ifdef __loongarch64
extern
drdtime_t
//__attribute__ ((__gnu_inline__, __always_inline__, __artificial__))
__builtin_loongarch_rdtime_d
(
void
)
{
{
int
a
;
drdtime_t
drdtime
;
return
a
;
__asm__
volatile
(
"rdtime.d
\t
%[val],%[tid]
\n\t
"
:
[
val
]
"=&r"
(
drdtime
.
dvalue
),[
tid
]
"=&r"
(
drdtime
.
dtimeid
)
:
);
return
drdtime
;
}
}
#define __rdtime_d builtin_loongarch_rdtime_d
#define __rdtime_d __builtin_loongarch_rdtime_d
#endif
extern
inline
__rdtime_t
extern
inline
__rdtime_t
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets