File:  [gforth] / gforth / engine / 128bit.h
Revision 1.3: download - view: text, annotated - select for diffs
Sat Aug 9 13:24:25 2008 UTC (15 years, 8 months ago) by anton
Branches: MAIN
CVS tags: v0-7-0, HEAD
The Makefile now uses an EMACS variable
Eliminated most compilation warnings

    1: /* supply [u]int128_t as DOUBLE_CELL_TYPEs under some conditions
    2: 
    3:   Copyright (C) 2005,2007,2008 Free Software Foundation, Inc.
    4: 
    5:   This file is part of Gforth.
    6: 
    7:   Gforth is free software; you can redistribute it and/or
    8:   modify it under the terms of the GNU General Public License
    9:   as published by the Free Software Foundation, either version 3
   10:   of the License, or (at your option) any later version.
   11: 
   12:   This program is distributed in the hope that it will be useful,
   13:   but WITHOUT ANY WARRANTY; without even the implied warranty of
   14:   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   15:   GNU General Public License for more details.
   16: 
   17:   You should have received a copy of the GNU General Public License
   18:   along with this program; if not, see http://www.gnu.org/licenses/.
   19: */
   20: 
   21: #if !defined(DOUBLE_CELL_TYPE) || !defined(DOUBLE_UCELL_TYPE)
   22: #if (SIZEOF_CHAR_P==8)
   23: #ifdef FORCE_LL
   24: /* #warning hand-defined int128_t */
   25: typedef int int128_t __attribute__((__mode__(TI)));
   26: typedef unsigned int uint128_t __attribute__((__mode__(TI)));
   27: #define DOUBLE_CELL_TYPE int128_t
   28: #define DOUBLE_UCELL_TYPE uint128_t
   29: #else /* !defined(FORCE_LL) */
   30: #define BUGGY_LONG_LONG
   31: #endif /* !defined(FORCE_LL) */
   32: #else /* (SIZEOF_CHAR_P!=8) */
   33: #define BUGGY_LONG_LONG
   34: #endif /* (SIZEOF_CHAR_P==8) */
   35: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>