From ea2f6ecb469cf722291677f3a1e39545e2851813 Mon Sep 17 00:00:00 2001 From: JSzitas Date: Sat, 13 Jul 2024 15:51:18 +0200 Subject: [PATCH] Change compiler on windows test --- .github/workflows/cmake-multi-platform.yml | 8 ++++---- tinyqr.h | 7 +++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index e995f98..1fb9aa2 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -17,7 +17,7 @@ jobs: fail-fast: false # Set up a matrix to run the following 3 configurations: - # 1. + # 1. # 2. # 3. # @@ -25,11 +25,11 @@ jobs: matrix: os: [ubuntu-latest, windows-latest] build_type: [Release] - c_compiler: [gcc, clang, cl] + c_compiler: [gcc, clang] include: - os: windows-latest - c_compiler: cl - cpp_compiler: cl + c_compiler: gcc + cpp_compiler: g++ - os: ubuntu-latest c_compiler: gcc cpp_compiler: g++ diff --git a/tinyqr.h b/tinyqr.h index 38c4c8a..783a43b 100644 --- a/tinyqr.h +++ b/tinyqr.h @@ -59,13 +59,12 @@ inline __attribute__((always_inline)) scalar_t inv_sqrt(scalar_t x) { } // fast inverse square root - might buy us a tiny bit, and I have been looking // for forever to use this :) -/* template <> [[maybe_unused]] inline __attribute__((always_inline)) float inv_sqrt(float x) { - long i = *reinterpret_cast(&x); // evil floating point bit level -hacking // NOLINT [runtime/int] i = 0x5f3759df - (i >> 1); // what the fuck? + long i = *reinterpret_cast(&x); // NOLINT [runtime/int] + i = 0x5f3759df - (i >> 1); return *reinterpret_cast(&i); -}*/ +} template inline __attribute__((always_inline)) std::tuple givens_rotation(const scalar_t a, const scalar_t b) {