Changed best from 0xffffff to (~0). They mean the same, but the previous version might present a issue when compilling on different archs