It is pretty much just an adaption of FSLs FAST algorithm, with some modifications for OpenCL. I recommend to take the original source code, which works under Cygwin, GCC and MinGW.