Optimize Keccak implementation and remove Crypto++ dependency#47
Optimize Keccak implementation and remove Crypto++ dependency#47chfast wants to merge 3 commits intoethereum:masterfrom chfast:keccak
Conversation
src/libethash/keccak.cpp
Outdated
There was a problem hiding this comment.
This fails on Windows since msvc seems to not havenoexcept.
Can you add something like:
#ifndef _MSC_VER
#define NOEXCEPT noexcept
#else
#define NOEXCEPT
#endifand use that instead?
There was a problem hiding this comment.
It's not needed in the function? So you mean you will remove the attribute in general?
There was a problem hiding this comment.
Yep. Compiler will know that without my help.
|
Can you also update python's sha3.c would need to be renamed to keccak.cpp there too. |
|
Some license headers are missing. |
|
Not sure about CC0 - GPL compatibility. |
|
fails on the CI? |
|
Hmmm .. this will also need rebasing now. As for the CI it's the python tests that fail since python's setup.py needs updating after the file changes. |
|
CI fails is because my added file is C++11 and requires The solution might be to restrict implementation to C or C++ only. |
As I talked with @LefterisJP and @gavofyork some time ago this is some code from my pet project https://github.com/chfast/ethminer.