Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- signed char isNumber(unsigned int result)
- {
- switch(result)
- {
- case 1: return 1; // 1
- case 2: return 2; // 2
- case 4: return 3; // 3
- case 16: return 4; // 4
- case 32: return 5; // 5
- case 64: return 6; // 6
- case 256: return 7; // 7
- case 512: return 8; // 8
- case 1024: return 9; // 9
- case 8192: return 0; // 0
- case 4096: return -1;
- default: return -2;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement