#define LIBMEM_MB  )     (LIBMEM_KB(X)*1024)
 

Convert megabytes to bytes, e.g. LIBMEM_MB(10) = 10*1024*1024.