Ignore:
Timestamp:
Aug 27, 2007, 6:06:17 AM (18 years ago)
Author:
bird
Message:

Use kStuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kStuff/kProfile/prfcorepre.cpp.h

    r3537 r3565  
    11/* $Id: $ */
    22/** @file
     3
     4
     5
     6
     7
    38 *
    4  * kProfiler - Core Pre Code (template).
     9 * .
    510 *
    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.
    715 *
     16
     17
     18
     19
    820 *
    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
    2424 *
    2525 */
     
    5555            (n) = (min); \
    5656        else { \
    57             const uint32_t u32 = ((n) + ( (align) - 1)) & ~((align) - 1); \
     57            const u32 = ((n) + ( (align) - 1)) & ~((align) - 1); \
    5858            if (u32 >= (n)) \
    5959                (n) = u32; \
     
    6262
    6363/** @def KPRF_OFFSETOF
    64  * My usual extended OFFSETOF macro, except this returns uint32_t and mangles the type name.
     64 * My usual extended OFFSETOF macro, except this returns and mangles the type name.
    6565 * @internal
    6666 */
    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 )
    6868
    6969/** @def PRF_SIZEOF
Note: See TracChangeset for help on using the changeset viewer.