I cant find it anywhere on github.
https://bitcointalksearch.org/topic/ethminer-0941-genoil-11-1368785
It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
typedef union _Node
{
uint dwords[16];
uint2 qwords[8];
uint4 dqwords[4];
} Node;
static void SHA3_512(uint2 *s, uint isolate)
{
uint2 st[25];
for(uint i = 0; i < 8; ++i) st[i] = s[i];
for (uint i = 8; i != 25; ++i)
{
st[i] = (uint2){ 0, 0 };
}
((uint2 *)st)[8].x = 0x00000001;
((uint2 *)st)[8].y = 0x80000000;
//s[8] = 0x8000000000000001UL;
//keccak_f1600_no_absorb(s, 8, isolate);
KECCAK_PROCESS(st, 8, 8, isolate);
for(uint i = 0; i < 8; ++i) s[i] = st[i];
}
__kernel void ethash_calculate_dag_item(uint start, __global const Node *Cache, __global Node *DAG, uint LIGHT_SIZE, uint isolate)
{
uint NodeIdx = start + get_global_id(0);
//if (NodeIdx > DAG_SIZE) return;
Node DAGNode = Cache[NodeIdx % LIGHT_SIZE];
DAGNode.dwords[0] ^= NodeIdx;
SHA3_512(DAGNode.qwords, isolate);
for(uint i = 0; i < 256; ++i)
{
uint ParentIdx = fnv(NodeIdx ^ i, DAGNode.dwords[i & 15]) % LIGHT_SIZE;
__global const Node *ParentNode = Cache + ParentIdx;
#pragma unroll
for(uint x = 0; x < 4; ++x)
{
DAGNode.dqwords[x] *= (uint4)(FNV_PRIME);
DAGNode.dqwords[x] ^= ParentNode->dqwords[x];
}
}
SHA3_512(DAGNode.qwords, isolate);
DAG[NodeIdx] = DAGNode;
}