source: webkit/trunk/JavaScriptCore/wtf/AlwaysInline.h@ 27297

Last change on this file since 27297 was 27297, checked in by aroben, 18 years ago

Change ALWAYS_INLINE and WTF_PRIVATE_INLINE to use forceinline on Windows

Speeds up SunSpider by 0.4%.

Reviewed by Steve and Maciej.

  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: Disable a warning during LTCG in release builds about double -> float conversion.
  • wtf/AlwaysInline.h:
  • wtf/FastMalloc.h:
  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1/*
2 * This file is part of the KDE libraries
3 * Copyright (C) 2005 Apple Computer, Inc
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 *
20 */
21
22#ifndef ALWAYS_INLINE
23#if COMPILER(GCC) && defined(NDEBUG)
24#define ALWAYS_INLINE inline __attribute__ ((__always_inline__))
25#elif COMPILER(MSVC) && defined(NDEBUG)
26#define ALWAYS_INLINE __forceinline
27#else
28#define ALWAYS_INLINE inline
29#endif
30#endif
Note: See TracBrowser for help on using the repository browser.