Skip to content

Commit

Permalink
Update include guards in tools, remove unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSeemaier committed Sep 11, 2023
1 parent a045b77 commit 1edc9c8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 75 deletions.
62 changes: 0 additions & 62 deletions kagen/tools/benchmark.h

This file was deleted.

2 changes: 2 additions & 0 deletions kagen/tools/converter.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include "kagen/definitions.h"

#include <algorithm>
Expand Down
9 changes: 3 additions & 6 deletions kagen/tools/mersenne.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,17 @@
*
* All rights reserved. Published under the BSD-2 license in the LICENSE file.
******************************************************************************/
#pragma once

#ifndef _MERSENNE_H_
#define _MERSENNE_H_
#include "kagen/definitions.h"

#include <random>

namespace kagen {

class Mersenne {
public:
Mersenne() : Mersenne(0) {}
Mersenne(SInt seed) : gen_(seed), dis_(0.0, 1.0) {}
Mersenne(const SInt seed) : gen_(seed), dis_(0.0, 1.0) {}

void RandomInit(SInt seed) {
gen_.seed(seed);
Expand Down Expand Up @@ -48,6 +47,4 @@ class Mersenne {
std::mt19937_64 gen_;
std::uniform_real_distribution<double> dis_;
};

} // namespace kagen
#endif
2 changes: 2 additions & 0 deletions kagen/tools/newton.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#pragma once

#include <cstdlib>

namespace kagen {
Expand Down
2 changes: 0 additions & 2 deletions kagen/tools/random_permutation.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*
* All rights reserved. Published under the BSD-2 license in the LICENSE file.
******************************************************************************/

#pragma once

#include <cassert>
Expand All @@ -17,7 +16,6 @@
#include "xxhash.h"

namespace kagen::random_permutation {

// Some bit twiddling helper functions.
template <typename Data>
constexpr uint8_t num_bits() {
Expand Down
7 changes: 2 additions & 5 deletions kagen/tools/sorted_mersenne.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
*
* All rights reserved. Published under the BSD-2 license in the LICENSE file.
******************************************************************************/
#pragma once

#ifndef _SORTED_MERSENNE_H_
#define _SORTED_MERSENNE_H_
#include "kagen/definitions.h"

#include <random>

namespace kagen {

class SortedMersenne {
public:
SortedMersenne() : SortedMersenne(0) {}
Expand Down Expand Up @@ -56,6 +55,4 @@ class SortedMersenne {
SInt num_samples_;
double ln_cur_max_;
};

} // namespace kagen
#endif

0 comments on commit 1edc9c8

Please sign in to comment.