Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fx_s4716
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
battle_C_6
fx_s4716
Commits
912ac766
Commit
912ac766
authored
4 years ago
by
Sangbaek Lee
Browse files
Options
Downloads
Patches
Plain Diff
add fx_s4716_longlong.c
parent
36b79619
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
fx_s4716_longlong.c
+43
-0
43 additions, 0 deletions
fx_s4716_longlong.c
with
43 additions
and
0 deletions
fx_s4716_longlong.c
0 → 100644
+
43
−
0
View file @
912ac766
#include
"fx_s4716_longlong.h"
const
fx_s4716
sinTable
[
92
]
=
{
0
,
1143
,
2287
,
3429
,
4571
,
5711
,
6850
,
7986
,
9120
,
10252
,
11380
,
12504
,
13625
,
14742
,
15854
,
16961
,
18064
,
19160
,
20251
,
21336
,
22414
,
23486
,
24550
,
25606
,
26655
,
27696
,
28729
,
29752
,
30767
,
31772
,
32768
,
33753
,
34728
,
35693
,
36647
,
37589
,
38521
,
39440
,
40347
,
41243
,
42125
,
42995
,
43852
,
44695
,
45525
,
46340
,
47142
,
47929
,
48702
,
49460
,
50203
,
50931
,
51643
,
52339
,
53019
,
53683
,
54331
,
54963
,
55577
,
56175
,
56755
,
57319
,
57864
,
58393
,
58903
,
59395
,
59870
,
60326
,
60763
,
61183
,
61583
,
61965
,
62328
,
62672
,
62997
,
63302
,
63589
,
63856
,
64103
,
64331
,
64540
,
64729
,
64898
,
65047
,
65176
,
65286
,
65376
,
65446
,
65496
,
65526
,
65536
,
65526
};
long
long
fx_to_longlong
(
fx_s4716
a
){
return
a
>>
16
;
}
fx_s4716
longlong_to_fx
(
long
long
a
){
return
a
<<
16
;
}
fx_s4716
fx_s4716_longlong_mul
(
fx_s4716
a
,
fx_s4716
b
){
long
long
result
=
FX_S4716_LONGLONG_MUL1
(
a
,
b
);
return
result
;
}
fx_s4716
fx_s4716_longlong_mul1
(
fx_s4716
a
,
fx_s4716
b
){
long
long
result
=
FX_S4716_LONGLONG_MUL2
(
a
,
b
);
return
result
;
}
fx_s4716
fx_s4716_longlong_mul2
(
fx_s4716
a
,
fx_s4716
b
){
long
long
result
=
FX_S4716_LONGLONG_MUL3
(
a
,
b
);
return
result
;
}
fx_s4716
fx_s4716_longlong_div
(
fx_s4716
a
,
fx_s4716
b
){
long
long
result
=
FX_S4716_LONGLONG_DIV1
(
a
,
b
);
return
result
;
}
fx_s4716
fx_s4716_longlong_div1
(
fx_s4716
a
,
fx_s4716
b
){
long
long
result
=
FX_S4716_LONGLONG_DIV2
(
a
,
b
);
return
result
;
}
fx_s4716
fx_s4716_longlong_div2
(
fx_s4716
a
,
fx_s4716
b
){
long
long
result
=
FX_S4716_LONGLONG_DIV3
(
a
,
b
);
return
result
;
}
fx_s4716
fx_s4716_longlong_sin
(
fx_s4716
a
){
long
long
result
=
sinTable
[
a
];
return
result
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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