And drop the ifdefs. If you can't use numbers available at runtime, you shouldn't be guessing at build-time. My ARM phone has more mem than some of my older desktops.