00001 /* clib/include/able/sizes.h 00002 * 00003 * ABLE standard size constants 00004 * 00005 * Copyright 2007 Simtec Electronics 00006 * 00007 * Permission is hereby granted, free of charge, to any person 00008 * obtaining a copy of this software and associated documentation 00009 * files (the "Software"), to deal in the Software without 00010 * restriction, including without limitation the rights to use, copy, 00011 * modify, merge, publish, distribute, sublicense, and/or sell copies 00012 * of the Software, and to permit persons to whom the Software is 00013 * furnished to do so, subject to the following conditions: 00014 * 00015 * The above copyright notice and this permission notice shall be 00016 * included in all copies or substantial portions of the Software. 00017 * 00018 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00019 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00020 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00021 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 00022 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 00023 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00024 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00025 * SOFTWARE. 00026 * 00027 */ 00028 00029 #ifndef _ABLE_CLIB_ABLE_SIZES_H 00030 #define _ABLE_CLIB_ABLE_SIZES_H 1 00031 00032 /* Sizes in bytes */ 00033 #define SIZE_KB (1 << 10) 00034 #define SIZE_MB (1 << 20) 00035 #define SIZE_GB (1 << 30) 00036 00037 #define SIZE_1KB (1 << 10) 00038 #define SIZE_2KB (2 << 10) 00039 #define SIZE_4KB (4 << 10) 00040 #define SIZE_8KB (8 << 10) 00041 #define SIZE_16KB (16 << 10) 00042 #define SIZE_32KB (32 << 10) 00043 #define SIZE_64KB (64 << 10) 00044 #define SIZE_128KB (128 << 10) 00045 #define SIZE_256KB (256 << 10) 00046 #define SIZE_512KB (512 << 10) 00047 00048 #define SIZE_1MB (1 << 20) 00049 #define SIZE_2MB (2 << 20) 00050 #define SIZE_4MB (4 << 20) 00051 #define SIZE_8MB (8 << 20) 00052 #define SIZE_16MB (16 << 20) 00053 #define SIZE_32MB (32 << 20) 00054 #define SIZE_64MB (64 << 20) 00055 #define SIZE_128MB (128 << 20) 00056 #define SIZE_256MB (256 << 20) 00057 #define SIZE_512MB (512 << 20) 00058 00059 #define SIZE_1GB (1 << 30) 00060 #define SIZE_2GB (2ULL << 30) 00061 #define SIZE_4GB (4ULL << 30) 00062 00063 00064 #endif /* _ABLE_CLIB_ABLE_SIZES_H */