mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-09-29 23:41:05 +00:00
Fix for Android
This commit is contained in:
parent
ea386ece93
commit
e509354751
2
.github/workflows/volk_android.yml
vendored
2
.github/workflows/volk_android.yml
vendored
@ -10,7 +10,7 @@ on:
|
|||||||
- 'src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/**'
|
- 'src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/**'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
name: Build on Android NDK
|
name: Build volk-gnssdr on Android NDK
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build on Android NDK ${{ matrix.arch.name }}
|
name: Build on Android NDK ${{ matrix.arch.name }}
|
||||||
|
@ -61,7 +61,6 @@
|
|||||||
#include <volk_gnsssdr/volk_gnsssdr_complex.h>
|
#include <volk_gnsssdr/volk_gnsssdr_complex.h>
|
||||||
#include <volk_gnsssdr/volk_gnsssdr_malloc.h>
|
#include <volk_gnsssdr/volk_gnsssdr_malloc.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <complex.h>
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef LV_HAVE_GENERIC
|
#ifdef LV_HAVE_GENERIC
|
||||||
@ -73,7 +72,7 @@ static inline void volk_gnsssdr_32fc_32f_high_dynamic_rotator_dot_prod_32fc_xn_g
|
|||||||
lv_32fc_t phase_doppler = (*phase);
|
lv_32fc_t phase_doppler = (*phase);
|
||||||
int n_vec;
|
int n_vec;
|
||||||
unsigned int n;
|
unsigned int n;
|
||||||
#if _WIN32
|
#if _WIN32 || __ANDROID_API__
|
||||||
const float arga = cargf(phase_inc_rate);
|
const float arga = cargf(phase_inc_rate);
|
||||||
#endif
|
#endif
|
||||||
for (n_vec = 0; n_vec < num_a_vectors; n_vec++)
|
for (n_vec = 0; n_vec < num_a_vectors; n_vec++)
|
||||||
@ -93,7 +92,7 @@ static inline void volk_gnsssdr_32fc_32f_high_dynamic_rotator_dot_prod_32fc_xn_g
|
|||||||
}
|
}
|
||||||
tmp32_1 = *in_common++ * (*phase);
|
tmp32_1 = *in_common++ * (*phase);
|
||||||
phase_doppler *= phase_inc;
|
phase_doppler *= phase_inc;
|
||||||
#if _WIN32
|
#if _WIN32 || __ANDROID_API__
|
||||||
const float theta = (float)(n * n) * arga;
|
const float theta = (float)(n * n) * arga;
|
||||||
phase_doppler_rate = lv_cmake(cosf(theta), sinf(theta));
|
phase_doppler_rate = lv_cmake(cosf(theta), sinf(theta));
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user