Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[28] Add missing special functions to ffmath #31

Merged
merged 9 commits into from
Nov 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
deepsource check
  • Loading branch information
camilo committed Nov 15, 2024
commit 3fa0c8effcb5bcf6c1157ff8ccad4a19d9f0443b
8 changes: 4 additions & 4 deletions qfis.c
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@ static float qFIS_SMF( const qFIS_IO_Base_t * const in,
const float *p,
const size_t n )
{
float a, b, tmp, y;
float a, b, tmp, y = 0.0F;
float x = in[ 0 ].value;
(void)n;

Expand All @@ -1060,7 +1060,7 @@ static float qFIS_SMF( const qFIS_IO_Base_t * const in,
y = ( 1.0F - ( 2.0F*tmp*tmp ) );
}
else {
y = 0.0F;
/* Nothing to do here */
}

return y;
Expand Down Expand Up @@ -1094,7 +1094,7 @@ static float qFIS_ZMF( const qFIS_IO_Base_t * const in,
const float *p,
const size_t n )
{
float a, b, tmp, y;
float a, b, tmp, y = 0.0F;
float x = in[ 0 ].value;
(void)n;

Expand All @@ -1115,7 +1115,7 @@ static float qFIS_ZMF( const qFIS_IO_Base_t * const in,
y = 2.0F*tmp*tmp;
}
else {
y = 0.0F;
/* Nothing to do here */
}

return y;
Expand Down
Loading