libk  Check-in [1fba7a324a]

Overview
Comment:fix check for 128-bit int type
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1fba7a324a8e5b68a6f7470bb7e0cf071e5f875d990054d97b94526261532c4f
User & Date: lexi on 2019-08-25 02:47:23
Other Links: manifest | tags
Context
2019-08-25
03:55
remove useless script, delete junk files, credit contributors, add documentation for typesize.c check-in: 312e446cfc user: lexi tags: trunk
02:47
fix check for 128-bit int type check-in: 1fba7a324a user: lexi tags: trunk
02:42
arch: add script to generate linux syscall tables from generic headers; add arm.lin.64 (untested) check-in: c15c92895e user: lachs0r tags: trunk
Changes

Modified mod/kcore/type.h.m from [88fed336c0] to [b30ab22689].

    27     27   
    28     28   ifdef(“type_bit64”,“
    29     29   	typedef unsigned type_bit64 u64;
    30     30   	typedef   signed type_bit64 s64;
    31     31   	ifdef(“type_bit128”,,“
    32     32   	/* even if no native type is 128 bits long, clang and
    33     33   	 * gcc have extensions to support 128 bit arithmetic
    34         -	 * on 64-bit hardware */
    35         -#		if defined(__GNUC__) || defined(__clang__)
           34  +	 * on some 64-bit hardware */
           35  +#		ifdef __SIZEOF_INT128__
    36     36   			typedef __uint128_t u128;
    37     37   			typedef  __int128_t s128;
    38     38   #		else
    39     39   			/* if we don`'t have access to that extension
    40     40   			 * or native 128-bit types, then we just use
    41     41   			 * the largest native type specified in the
    42     42   			 * C standard */