Compare commits

...
Sign in to create a new pull request.

1 commit

Author SHA1 Message Date
Alexander Borsuk
8146de61fb [github] Fixed deprecated iOS build cache action
Signed-off-by: Alexander Borsuk <me@alex.bio>
2024-02-13 23:28:16 +02:00
5 changed files with 9 additions and 4 deletions

View file

@ -63,7 +63,7 @@ jobs:
run: ./configure.sh
- name: Configure ccache
uses: mikehardy/buildcache-action@v2.1.0
uses: biodranik/buildcache-action@v2.1.0
with:
cache_key: ${{ github.workflow }}-${{ matrix.buildType }}

View file

@ -106,7 +106,7 @@ if (NOT CMAKE_BUILD_TYPE)
endif()
# Global compile options for all configurations.
add_compile_options(-ffast-math)
#add_compile_options(-ffast-math)
# Built-in CMake configurations: Debug, Release, RelWithDebInfo, MinSizeRel
if (${CMAKE_BUILD_TYPE} STREQUAL "Debug")

View file

@ -53,7 +53,6 @@ if (googleFirebaseServicesEnabled) {
}
apply plugin: 'com.github.triplet.play'
apply plugin: 'ru.cian.huawei-publish-gradle-plugin'
def run(cmd) {
def stdout = new ByteArrayOutputStream()
exec {

View file

@ -11,6 +11,7 @@ namespace base
template <typename Float>
bool AlmostEqualULPs(Float x, Float y, uint32_t maxULPs)
{
std::cerr << "AlmostEqualULPs x=" << x << ", y=" << y << ", maxULPs=" << maxULPs << "\n";
static_assert(std::is_floating_point<Float>::value, "");
static_assert(std::numeric_limits<Float>::is_iec559, "");
@ -42,6 +43,7 @@ bool AlmostEqualULPs(Float x, Float y, uint32_t maxULPs)
else
diff = UIntType(Abs(xInt)) + UIntType(Abs(yInt));
std::cerr << "maxulps diff: " << diff << "\n";
return diff <= maxULPs;
}

View file

@ -16,8 +16,12 @@ void TestPointDDir(PointD const & dst, PointD const & src)
{
double len1 = dst.Length();
double len2 = src.Length();
std::cerr << "dst: " << DebugPrint(dst) << ", src: " << DebugPrint(src) << "\n";
TEST_ALMOST_EQUAL_ULPS(dst.x/len1, src.x/len2, ());
TEST_ALMOST_EQUAL_ULPS(dst.y/len1, src.y/len2, ());
auto v1 = dst.y/len1;
auto v2 = src.y/len2;
std::cerr << "diff: " << fabs(v2 - v1) << "\n";
TEST_ALMOST_EQUAL_ULPS(v1, v2, ());
}
UNIT_TEST(SmoothedDirections)