Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
docking
ocladock-fpga
Commits
db054c9a
Commit
db054c9a
authored
Nov 15, 2018
by
Leonardo Solis
Browse files
#25, added inline attribute to map_angle_<>() used in Krnl_GA
parent
0fd8899e
Changes
1
Hide whitespace changes
Inline
Side-by-side
ofdock_taskpar_xl/device/Krnl_GA.cl
View file @
db054c9a
...
@@ -188,7 +188,7 @@ pipe int chan_IGLArbiter_Off __attribute__((xcl_reqd_pipe_depth(PIPE_DEPT
...
@@ -188,7 +188,7 @@ pipe int chan_IGLArbiter_Off __attribute__((xcl_reqd_pipe_depth(PIPE_DEPT
//
by
adding/subtracting
n*ang_max
to/from
it.
//
by
adding/subtracting
n*ang_max
to/from
it.
//
Originally
from:
searchoptimum.c
//
Originally
from:
searchoptimum.c
//
--------------------------------------------------------------------------
//
--------------------------------------------------------------------------
__attribute__
((
always_inline
))
float
map_angle_180
(
float
angle
)
float
map_angle_180
(
float
angle
)
{
{
float
x
=
angle
;
float
x
=
angle
;
...
@@ -201,6 +201,7 @@ float map_angle_180(float angle)
...
@@ -201,6 +201,7 @@ float map_angle_180(float angle)
return
x
;
return
x
;
}
}
__attribute__
((
always_inline
))
float
map_angle_360
(
float
angle
)
float
map_angle_360
(
float
angle
)
{
{
float
x
=
angle
;
float
x
=
angle
;
...
...
Leonardo Solis
@solis
mentioned in commit
e9dc7a4c
·
Jan 04, 2021
mentioned in commit
e9dc7a4c
mentioned in commit e9dc7a4c4acd1be873d4d7d651c49739d0e54fa7
Toggle commit list
Write
Preview
Supports
Markdown
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