Ultra 0.9.4
Loading...
Searching...
No Matches
cache.h File Reference
#include <algorithm>
#include <bit>
#include <mutex>
#include <optional>
#include <shared_mutex>
#include <vector>
#include "kernel/fitness.h"
#include "kernel/hash_t.h"
#include "kernel/cache.tcc"

Go to the source code of this file.

Classes

class  ultra::cache< F, LOCK_GROUP_SIZE >

Namespaces

namespace  ultra

Typedefs

using ultra::bitwidth = unsigned
 Type alias for the number of bits.

Functions

std::size_t ultra::internal::div_ceil (std::size_t x, std::size_t y)

Detailed Description

Remarks
This file is part of ULTRA.
License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/

Function Documentation

◆ div_ceil()

std::size_t ultra::internal::div_ceil ( std::size_t x,
std::size_t y )
inlinenodiscard

Fast ceiling integer division.

Parameters
[in]xdividend
[in]ydivisor
Returns
ceiling of the quotient