chromium/third_party/skia/src/pathops/SkPathOpsTypes.cpp

/*
 * Copyright 2012 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
#include "src/pathops/SkPathOpsTypes.h"

#include "include/private/base/SkFloatingPoint.h"
#include "include/private/base/SkMath.h"
#include "include/private/base/SkTemplates.h"
#include "src/base/SkFloatBits.h"

#include <algorithm>
#include <cstdint>
#include <cstring>

static bool arguments_denormalized(float a, float b, int epsilon) {}

// from http://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/
// FIXME: move to SkFloatBits.h
static bool equal_ulps(float a, float b, int epsilon, int depsilon) {}

static bool equal_ulps_no_normal_check(float a, float b, int epsilon, int depsilon) {}

static bool equal_ulps_pin(float a, float b, int epsilon, int depsilon) {}

static bool d_equal_ulps(float a, float b, int epsilon) {}

static bool not_equal_ulps(float a, float b, int epsilon) {}

static bool not_equal_ulps_pin(float a, float b, int epsilon) {}

static bool d_not_equal_ulps(float a, float b, int epsilon) {}

static bool less_ulps(float a, float b, int epsilon) {}

static bool less_or_equal_ulps(float a, float b, int epsilon) {}

// equality using the same error term as between
bool AlmostBequalUlps(float a, float b) {}

bool AlmostPequalUlps(float a, float b) {}

bool AlmostDequalUlps(float a, float b) {}

bool AlmostDequalUlps(double a, double b) {}

bool AlmostEqualUlps(float a, float b) {}

bool AlmostEqualUlpsNoNormalCheck(float a, float b) {}

bool AlmostEqualUlps_Pin(float a, float b) {}

bool NotAlmostEqualUlps(float a, float b) {}

bool NotAlmostEqualUlps_Pin(float a, float b) {}

bool NotAlmostDequalUlps(float a, float b) {}

bool RoughlyEqualUlps(float a, float b) {}

bool AlmostBetweenUlps(float a, float b, float c) {}

bool AlmostLessUlps(float a, float b) {}

bool AlmostLessOrEqualUlps(float a, float b) {}

int UlpsDistance(float a, float b) {}

SkOpGlobalState::SkOpGlobalState(SkOpContourHead* head,
                                 SkArenaAlloc* allocator
                                 SkDEBUGPARAMS(bool debugSkipAssert)
                                 SkDEBUGPARAMS(const char* testName))
    :{}