This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
nihui
/
ncnn
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
46
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
ld1 and st1 handle data endian mode per element
tags/20180129
nihuini
8 years ago
parent
08e261f423
commit
d2ee4e7d27
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
src/mat.cpp
+ 2
- 2
src/mat.cpp
View File
@@ -272,10 +272,10 @@ Mat Mat::from_float16(const unsigned short* data, int size)
{
asm volatile(
"0: \n"
"ld
r d0, [%1], #8
\n"
"ld
1 {v0.4h}, [%1], #8
\n"
"fcvtl v1.4s, v0.4h \n"
"subs %w0, %w0, #1 \n"
"st
r q1, [%2], #16
\n"
"st
1 {v1.4s}, [%2], #16
\n"
"bne 0b \n"
: "=r"(nn), // %0
"=r"(data), // %1
Write
Preview
Loading…
Cancel
Save