Skip to content

Commit

Permalink
Revert "Merge branch 'dev' into dev"
Browse files Browse the repository at this point in the history
This reverts commit 03f2488, reversing
changes made to 41b2d80.
  • Loading branch information
Rinzii committed Apr 9, 2024
1 parent e689c4c commit 4aa31f3
Show file tree
Hide file tree
Showing 112 changed files with 1,568 additions and 3,625 deletions.
2 changes: 1 addition & 1 deletion .clang-format
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Language: Cpp
BasedOnStyle: LLVM
BasedOnStyle: Microsoft
AccessModifierOffset: -4
AlignConsecutiveAssignments: Consecutive
AlignConsecutiveMacros: Consecutive
Expand Down
7 changes: 0 additions & 7 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,14 @@
Checks: '-*,
bugprone-*,
-bugprone-easily-swappable-parameters,
modernize-*,
-modernize-use-trailing-return-type,
-modernize-use-constraints,
performance-*,
-performance-avoid-endl,
readability-*,
-readability-identifier-length,
-readability-magic-numbers,
cppcoreguidelines-*,
-cppcoreguidelines-avoid-magic-numbers,
cert-dcl21-cpp,
cert-dcl58-cpp,
cert-err34-c,
Expand Down
5 changes: 0 additions & 5 deletions .github/CODEOWNERS

This file was deleted.

20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[FR]"
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
1 change: 0 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.18)

set(CCMATH_BUILD_VERSION 0.1.3)
set(CCMATH_BUILD_VERSION 0.1.2)
set(INTERNAL_PROJ_DEFAULT_NAME ccmath)

project(${INTERNAL_PROJ_DEFAULT_NAME} VERSION ${CCMATH_BUILD_VERSION})
Expand Down
11 changes: 0 additions & 11 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@
"configurePreset": "default",
"configuration": "Release"
},
{
"name": "Release-clang",
"configurePreset": "ninja-clang",
"configuration": "Release"
},
{
"name": "RelWithDebInfo",
"configurePreset": "default",
Expand All @@ -116,12 +111,6 @@
"configuration": "Release",
"inheritConfigureEnvironment": true
},
{
"name": "Release-clang",
"configurePreset": "ninja-clang",
"configuration": "Release",
"inheritConfigureEnvironment": true
},
{
"name": "RelWithDebInfo",
"configurePreset": "default",
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ representative at an online or offline event.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
Ianpike98(at)gmail(dot)com.
Ianpike98@gmail.com.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand Down
13 changes: 0 additions & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
# Contribution Guidelines

> [!IMPORTANT]
> Currently the contribution guidelines are a work in progress. Please check back later for more information.
## Core Tenets of CCMath

* All implementations have to be constexpr compatible.
* All implementations MUST have the same output as the standards implementation.
* All implementations must at least work towards working with static_assert
* All implementations must aim to have comparable speeds to the standard.
* All implementations must be well tested.
* All implementations must be well documented with doxygen.
* Aim to have a consistent API with the standard library.

WIP
186 changes: 89 additions & 97 deletions README.md

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ target_link_libraries(${PROJECT_NAME} PUBLIC
)
target_include_directories(${PROJECT_NAME} PUBLIC .)
target_sources(${PROJECT_NAME} PRIVATE
helpers/randomizers.h
ccmath_benchmark_main.cpp
)

Expand Down
44 changes: 1 addition & 43 deletions benchmark/ccmath_benchmark_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ static void BM_ccm_abs_rand_int(benchmark::State& state) {
}
BENCHMARK(BM_ccm_abs_rand_int)->Range(8, 8<<10)->Complexity();
*/
/*
// Benchmarking std::abs with the same set of random integers
static void BM_std_abs_rand_double(benchmark::State& state) {
auto randomIntegers = generateRandomDoubles(static_cast<size_t>(state.range(0)), DefaultSeed);
Expand Down Expand Up @@ -130,6 +128,7 @@ static void BM_ccm_abs(benchmark::State& state) {
}
BENCHMARK(BM_ccm_abs)->Arg(16)->Arg(256)->Arg(4096)->Arg(65536)->Complexity();

/*
static void BM_std_log_rand_double(bm::State& state) {
auto randomDoubles = generateRandomDoubles(static_cast<size_t>(state.range(0)), DefaultSeed);
Expand Down Expand Up @@ -234,47 +233,6 @@ BENCHMARK(BM_std_lerp)->Args({16, 16, 16})->Args({256, 256, 256})->Args({4096, 4
*/

// fma
static void BM_std_fma(bm::State& state) {
for ([[maybe_unused]] auto _ : state) {
bm::DoNotOptimize(std::fma(state.range(0), state.range(1), state.range(2)));
}
state.SetComplexityN(state.range(0));
}
BENCHMARK(BM_std_fma)->Args({16, 16, 16})->Args({256, 256, 256})->Args({4096, 4096, 4096})->Args({65536, 65536, 65536})->Complexity();

static void BM_ccm_fma(bm::State& state) {
for ([[maybe_unused]] auto _ : state) {
bm::DoNotOptimize(ccm::fma(state.range(0), state.range(1), state.range(2)));
}
state.SetComplexityN(state.range(0));
}
BENCHMARK(BM_ccm_fma)->Args({16, 16, 16})->Args({256, 256, 256})->Args({4096, 4096, 4096})->Args({65536, 65536, 65536})->Complexity();

static void BM_std_fma_rand_double(bm::State& state) {
auto randomDoubles = generateRandomDoubles(static_cast<size_t>(state.range(0)), DefaultSeed);
while (state.KeepRunning()) {
for (auto x : randomDoubles) {
bm::DoNotOptimize(std::fma(x, x, x));
}
}
state.SetComplexityN(state.range(0));
}
BENCHMARK(BM_std_fma_rand_double)->Range(8, 8<<10)->Complexity();

static void BM_ccm_fma_rand_double(bm::State& state) {
auto randomDoubles = generateRandomDoubles(static_cast<size_t>(state.range(0)), DefaultSeed);
while (state.KeepRunning()) {
for (auto x : randomDoubles) {
bm::DoNotOptimize(ccm::fma(x, x, x));
}
}
state.SetComplexityN(state.range(0));
}
BENCHMARK(BM_ccm_fma_rand_double)->Range(8, 8<<10)->Complexity();



BENCHMARK_MAIN();


Expand Down
37 changes: 0 additions & 37 deletions benchmark/helpers/randomizers.h

This file was deleted.

165 changes: 0 additions & 165 deletions benchmark/tools/plot.py

This file was deleted.

Loading

0 comments on commit 4aa31f3

Please sign in to comment.