Skip to content

Commit

Permalink
Added more corrections related to presubmit check arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
shajder committed Apr 12, 2023
1 parent 84b511e commit 53e0854
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test_conformance/conversions/fplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
#ifndef CONVERSIONS_FPLIB_H
#define CONVERSIONS_FPLIB_H

#include <stdbool.h>
#include <stdint.h>

Expand All @@ -28,3 +31,5 @@ typedef enum

float qcom_u64_2_f32(uint64_t data, bool sat, roundingMode rnd);
float qcom_s64_2_f32(int64_t data, bool sat, roundingMode rnd);

#endif
10 changes: 10 additions & 0 deletions test_conformance/conversions/test_conversions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,16 @@

#include "harness/mt19937.h"

#if (defined(__arm__) || defined(__aarch64__)) && defined(__GNUC__)
#include "fplib.h"
#endif

#if (defined(__arm__) || defined(__aarch64__)) && defined(__GNUC__)
/* Rounding modes and saturation for use with qcom 64 bit to float conversion library */
bool qcom_sat;
roundingMode qcom_rm;
#endif

////////////////////////////////////////////////////////////////////////////////////////

static int ParseArgs(int argc, const char **argv);
Expand Down

0 comments on commit 53e0854

Please sign in to comment.