progminer zano miner fork https://github.com/hyle-team/progminer
This commit is contained in:
25
zano/libethash/primes.h
Normal file
25
zano/libethash/primes.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/* ethash: C/C++ implementation of Ethash, the Ethereum Proof of Work algorithm.
|
||||
* Copyright 2018 Pawel Bylica.
|
||||
* Licensed under the Apache License, Version 2.0. See the LICENSE file.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <ethash/ethash.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Finds the largest prime number not greater than the provided upper bound.
|
||||
*
|
||||
* @param upper_bound The upper bound. SHOULD be greater than 1.
|
||||
* @return The largest prime number `p` such `p <= upper_bound`.
|
||||
* In case `upper_bound <= 1`, returns 0.
|
||||
*/
|
||||
int ethash_find_largest_prime(int upper_bound) NOEXCEPT;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user