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
98c2dbee
Commit
98c2dbee
authored
4 years ago
by
Sangbaek Lee
Browse files
Options
Downloads
Patches
Plain Diff
test file
parent
810fd2cd
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
fx_s4716_double.h
+0
-15
0 additions, 15 deletions
fx_s4716_double.h
with
0 additions
and
15 deletions
fx_s4716_double.h
+
0
−
15
View file @
98c2dbee
...
...
@@ -20,7 +20,6 @@ typedef long long fx_s4716;
#define F_POWER_2_16 65536.0
#define F_POWER_2_8 256.0
<<<<<<<
HEAD
#define FX_TO_DOUBLE(a) (a)/(F_POWER_2_16)
#define DOUBLE_TO_FX(a) ((a)*(F_POWER_2_16))
//#define DOUBLE_TO_FX(a) (long long)((a)*(F_POWER_2_16))
...
...
@@ -34,17 +33,3 @@ typedef long long fx_s4716;
#define FX_INV_PI (DOUBLE_TO_FX(1/(M_PI)))
#define FX_S4716_DOUBLE_SQRT(a) ((sqrt(a))/(F_POWER_2_8))
#define FX_S4716_DOUBLE_POW(a) ((pow((double)a, 2.0))*(F_POWER_2_16))
=======
#define fx_to_double(a) ((a)/f_POWER_2_16)
#define double_to_fx(a) (long long)((a)*f_POWER_2_16)
#define fx_s4716_double_add(a, b) ((a)+(b))
#define fx_s4716_double_sub(a, b) ((a)-(b))
#define fx_s4716_double_mul(a, b) (double_to_fx((fx_to_double(a))*(fx_to_double(b))))
#define fx_s4716_double_div(a, b) (double_to_fx((fx_to_double(a))/(fx_to_double(b)))
#define fx_PI double_to_fx(3.141592653)
#define fx_s4716_double_sqrt(a) (sqrt(a)/(f_POWER_2_16/2))
#define fx_s4716_double_pow(a) (pow((double)a, 2.0)*f_POWER_2_16)
>>>>>>>
df53c2167bf929e48681a774ce8e82a774ee80aa
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