ASIC and FPGA miner in c for bitcoin