| 36 | const std::string end_of_file( "<[�_You're_off_the_edge_of_the_map,_mate._Here_there_be_monsters_�]>" ); |
| 37 | |
| 38 | static bool pow235(size_t num, size_t &pow2, size_t &pow3, size_t &pow5) |
| 39 | { |
| 40 | //a helper function to decide if a number is only radix 2, 3 and 5 |
| 41 | if (num % 2 != 0 && num % 3 != 0 && num % 5 != 0) |
| 42 | return false; |
| 43 | |
| 44 | while (num > 1) |
| 45 | { |
| 46 | if (num % 5 == 0) |
| 47 | { |
| 48 | num /= 5; |
| 49 | pow5++; |
| 50 | continue; |
| 51 | } |
| 52 | if (num % 3 == 0) |
| 53 | { |
| 54 | num /= 3; |
| 55 | pow3++; |
| 56 | continue; |
| 57 | } |
| 58 | if (num % 2 == 0) |
| 59 | { |
| 60 | num /= 2; |
| 61 | pow2++; |
| 62 | continue; |
| 63 | } |
| 64 | return false; |
| 65 | } |
| 66 | return true; |
| 67 | } |
| 68 | |
| 69 | static bool split1D_for_inplace(size_t num, vector<vector<size_t> > &splitNums, clfftPrecision precision, size_t threshold) |
| 70 | { |
no outgoing calls
no test coverage detected