-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ comment: | |
ignore: | ||
- "test/benchmarks/*" | ||
- "test/fakeminer/*" | ||
- "test/integration/*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# 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. | ||
|
||
add_subdirectory(compilation) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# 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. | ||
|
||
add_library(test-compile-c90 STATIC compilation_test.c) | ||
target_link_libraries(test-compile-c90 PRIVATE ethash) | ||
set_target_properties(test-compile-c90 PROPERTIES C_STANDARD 90 C_EXTENSIONS OFF) | ||
|
||
add_library(test-compile-c99 STATIC compilation_test.c) | ||
target_link_libraries(test-compile-c99 PRIVATE ethash) | ||
set_target_properties(test-compile-c99 PROPERTIES C_STANDARD 99 C_EXTENSIONS OFF) | ||
|
||
add_library(test-compile-c11 STATIC compilation_test.c) | ||
target_link_libraries(test-compile-c11 PRIVATE ethash) | ||
set_target_properties(test-compile-c11 PROPERTIES C_STANDARD 11 C_EXTENSIONS OFF) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* 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. | ||
*/ | ||
|
||
#include <ethash/ethash.h> | ||
|
||
int test() | ||
{ | ||
int sum = 0; | ||
sum += ETHASH_EPOCH_LENGTH; | ||
sum += ETHASH_LIGHT_CACHE_ITEM_SIZE; | ||
sum += ETHASH_FULL_DATASET_ITEM_SIZE; | ||
return sum; | ||
} |