Changeset 3565 for trunk/kStuff/kProfile/prfcorepre.cpp.h
- Timestamp:
- Aug 27, 2007, 6:06:17 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/kStuff/kProfile/prfcorepre.cpp.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/kStuff/kProfile/prfcorepre.cpp.h
r3537 r3565 1 1 /* $Id: $ */ 2 2 /** @file 3 4 5 6 7 3 8 * 4 * kProfiler - Core Pre Code (template).9 * . 5 10 * 6 * Copyright (c) 2006 knut st. osmundsen <[email protected]> 11 * kProfiler is free software; you can redistribute it and/or 12 * modify it under the terms of the GNU Lesser General Public 13 * License as published by the Free Software Foundation; either 14 * version 2.1 of the License, or (at your option) any later version. 7 15 * 16 17 18 19 8 20 * 9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 * it under the terms of the GNU General Public License as published by 13 * the Free Software Foundation; either version 2 of the License, or 14 * (at your option) any later version. 15 * 16 * kLIBC is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * You should have received a copy of the GNU General Public License 22 * along with kLIBC; if not, write to the Free Software 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 * You should have received a copy of the GNU Lesser General Public 22 * License along with kProfiler; if not, write to the Free Software 23 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 24 24 * 25 25 */ … … 55 55 (n) = (min); \ 56 56 else { \ 57 const uint32_tu32 = ((n) + ( (align) - 1)) & ~((align) - 1); \57 const u32 = ((n) + ( (align) - 1)) & ~((align) - 1); \ 58 58 if (u32 >= (n)) \ 59 59 (n) = u32; \ … … 62 62 63 63 /** @def KPRF_OFFSETOF 64 * My usual extended OFFSETOF macro, except this returns uint32_tand mangles the type name.64 * My usual extended OFFSETOF macro, except this returns and mangles the type name. 65 65 * @internal 66 66 */ 67 #define KPRF_OFFSETOF(kPrfType, Member) ( ( uint32_t)(uintptr_t)&((KPRF_TYPE(P,kPrfType))0)->Member )67 #define KPRF_OFFSETOF(kPrfType, Member) ( ()&((KPRF_TYPE(P,kPrfType))0)->Member ) 68 68 69 69 /** @def PRF_SIZEOF
Note:
See TracChangeset
for help on using the changeset viewer.
