Fix compile warnings in residfp

This commit is contained in:
Jasmine Iwanek
2024-07-14 18:27:24 -04:00
parent d455e3dbc0
commit e7989601f9
3 changed files with 16 additions and 12 deletions

View File

@@ -131,9 +131,9 @@ FilterModelConfig6581::FilterModelConfig6581() :
vmax); vmax);
#endif #endif
#pragma omp parallel sections // #pragma omp parallel sections
{ {
#pragma omp section // #pragma omp section
{ {
#ifdef _OPENMP #ifdef _OPENMP
OpAmp opampModel( OpAmp opampModel(
@@ -167,7 +167,7 @@ FilterModelConfig6581::FilterModelConfig6581() :
} }
} }
#pragma omp section // #pragma omp section
{ {
#ifdef _OPENMP #ifdef _OPENMP
OpAmp opampModel( OpAmp opampModel(
@@ -199,7 +199,7 @@ FilterModelConfig6581::FilterModelConfig6581() :
} }
} }
#pragma omp section // #pragma omp section
{ {
#ifdef _OPENMP #ifdef _OPENMP
OpAmp opampModel( OpAmp opampModel(
@@ -230,7 +230,7 @@ FilterModelConfig6581::FilterModelConfig6581() :
} }
} }
#pragma omp section // #pragma omp section
{ {
#ifdef _OPENMP #ifdef _OPENMP
OpAmp opampModel( OpAmp opampModel(
@@ -261,7 +261,7 @@ FilterModelConfig6581::FilterModelConfig6581() :
} }
} }
#pragma omp section // #pragma omp section
{ {
const double nVddt = N16 * (Vddt - vmin); const double nVddt = N16 * (Vddt - vmin);
@@ -275,7 +275,7 @@ FilterModelConfig6581::FilterModelConfig6581() :
} }
} }
#pragma omp section // #pragma omp section
{ {
// EKV model: // EKV model:
// //

View File

@@ -143,9 +143,9 @@ FilterModelConfig8580::FilterModelConfig8580() :
vmax); vmax);
#endif #endif
#pragma omp parallel sections // #pragma omp parallel sections
{ {
#pragma omp section // #pragma omp section
{ {
#ifdef _OPENMP #ifdef _OPENMP
OpAmp opampModel( OpAmp opampModel(
@@ -179,7 +179,7 @@ FilterModelConfig8580::FilterModelConfig8580() :
} }
} }
#pragma omp section // #pragma omp section
{ {
#ifdef _OPENMP #ifdef _OPENMP
OpAmp opampModel( OpAmp opampModel(
@@ -211,7 +211,7 @@ FilterModelConfig8580::FilterModelConfig8580() :
} }
} }
#pragma omp section // #pragma omp section
{ {
#ifdef _OPENMP #ifdef _OPENMP
OpAmp opampModel( OpAmp opampModel(
@@ -242,7 +242,7 @@ FilterModelConfig8580::FilterModelConfig8580() :
} }
} }
#pragma omp section // #pragma omp section
{ {
#ifdef _OPENMP #ifdef _OPENMP
OpAmp opampModel( OpAmp opampModel(

View File

@@ -68,15 +68,19 @@ static float exponentialDistance(float distance, int i)
return pow(distance, -i); return pow(distance, -i);
} }
#if 0
MAYBE_UNUSED static float linearDistance(float distance, int i) MAYBE_UNUSED static float linearDistance(float distance, int i)
{ {
return 1.f / (1.f + i * distance); return 1.f / (1.f + i * distance);
} }
#endif
#if 0
MAYBE_UNUSED static float quadraticDistance(float distance, int i) MAYBE_UNUSED static float quadraticDistance(float distance, int i)
{ {
return 1.f / (1.f + (i*i) * distance); return 1.f / (1.f + (i*i) * distance);
} }
#endif
/// Calculate triangle waveform /// Calculate triangle waveform
static unsigned int triXor(unsigned int val) static unsigned int triXor(unsigned int val)