Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate duplicated PoW testing code into a file #66

Merged
merged 1 commit into from
Sep 13, 2018

Conversation

marktwtn
Copy link
Collaborator

@marktwtn marktwtn commented Sep 11, 2018

The selected hardware acceleration are added by user-defined macro.

Output message:

$ make check:
*** Validating build/test-trinary ***
        [ Verified ]
*** Validating build/test-curl ***
        [ Verified ]
*** Validating build/test-dcurl ***
        [ Verified ]
*** Validating build/test-multi-pow ***
        [ Verified ]
*** Validating build/test-pow ***
CPU - SSE
Success.

tests/test-pow.c Show resolved Hide resolved
tests/test-pow.c Outdated Show resolved Hide resolved
tests/test-pow.c Outdated Show resolved Hide resolved
tests/test-pow.c Show resolved Hide resolved
tests/test-pow.c Show resolved Hide resolved
tests/test-pow.c Outdated Show resolved Hide resolved
@furuame
Copy link
Member

furuame commented Sep 11, 2018

Could you attach the output message (after running make check in your new commit) in your PR's description?

for (int i = 243 - 1; i >= 243 - mwm; i--) {
assert(ret_trits->data[i] == 0);
}
ImplContext ImplContextArr[ ] = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this way, you have to enumerate two sets of implementations. Can you reduce the amount of #if and #endif statements by some C99 tricks?

@jserv
Copy link
Member

jserv commented Sep 11, 2018

This pull request was meant to resolve issue #60. You shall append Close #60 in the end of Git commit message.

The selected hardware acceleration are added by user-defined macro.
$ make check output message:
*** Validating build/test-trinary ***
        [ Verified ]
*** Validating build/test-curl ***
        [ Verified ]
*** Validating build/test-dcurl ***
        [ Verified ]
*** Validating build/test-multi-pow ***
        [ Verified ]
*** Validating build/test-pow ***
CPU - SSE
Success.
        [ Verified ]

Close DLTcollab#60.
@jserv jserv merged commit 39f6ca4 into DLTcollab:dev Sep 13, 2018
@marktwtn marktwtn deleted the unify-pow-test branch September 13, 2018 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants