Changeset 3f7fe9e in mainline for abi/include/_bits/int128_t.h


Ignore:
Timestamp:
2018-10-01T18:36:42Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5cef315
Parents:
1938b381
git-author:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-09-29 16:13:55)
git-committer:
Jiří Zárevúcky <jiri.zarevucky@…> (2018-10-01 18:36:42)
Message:

Clean up headers

Depends on <limits.h> and <stdint.h> being provided, which is a step up from
depending on mostly undocumented predefined macros.
In principle, <limits.h> and <stdint.h> mostly describe properties of
the compiler, so even though we depend on certain values for their contents,
actually defining them in the library is kind of reversal of concerns.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • abi/include/_bits/int128_t.h

    r1938b381 r3f7fe9e  
    11/*
    2  * Copyright (c) 2006 Josef Cejka
     2 * Copyright (c) 2018 CZ.NIC, z.s.p.o.
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup libc
     29/*
     30 * Authors:
     31 *      Jiří Zárevúcky (jzr) <zarevucky.jiri@gmail.com>
     32 */
     33
     34/** @addtogroup bits
    3035 * @{
    3136 */
    3237/** @file
     38 * Define nonstandard 128-bit types if they are supported by the compiler.
     39 * GCC only provides this on some architectures. We use it on IA-64.
    3340 */
    3441
    35 #ifndef LIBC_STDINT_H_
    36 #define LIBC_STDINT_H_
     42#ifndef _BITS_INT128_T_H_
     43#define _BITS_INT128_T_H_
    3744
    38 #ifdef __cplusplus
    39 extern "C" {
    40 #endif
    41 
    42 #include <_bits/stdint.h>
    43 
    44 #ifdef __cplusplus
    45 }
     45#ifdef __SIZEOF_INT128__
     46typedef __int128 int128_t;
     47typedef unsigned __int128 uint128_t;
    4648#endif
    4749
Note: See TracChangeset for help on using the changeset viewer.