1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-06-26 06:53:14 +00:00

Fix for Android

This commit is contained in:
Carles Fernandez 2022-09-05 12:55:07 +02:00
parent ea386ece93
commit e509354751
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 3 additions and 4 deletions

View File

@ -10,7 +10,7 @@ on:
- 'src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/**'
workflow_dispatch:
name: Build on Android NDK
name: Build volk-gnssdr on Android NDK
jobs:
build:
name: Build on Android NDK ${{ matrix.arch.name }}

View File

@ -61,7 +61,6 @@
#include <volk_gnsssdr/volk_gnsssdr_complex.h>
#include <volk_gnsssdr/volk_gnsssdr_malloc.h>
#include <math.h>
#include <complex.h>
#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);
int n_vec;
unsigned int n;
#if _WIN32
#if _WIN32 || __ANDROID_API__
const float arga = cargf(phase_inc_rate);
#endif
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);
phase_doppler *= phase_inc;
#if _WIN32
#if _WIN32 || __ANDROID_API__
const float theta = (float)(n * n) * arga;
phase_doppler_rate = lv_cmake(cosf(theta), sinf(theta));
#else