File:  [MW Coherent from dump] / coherent / f / usr / include / common / __parith.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:40 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

#ifndef	__COMMON___PARITH_H__
#define	__COMMON___PARITH_H__

/*
 * This internal header file is intended as the sole point of definition for
 * the internal data type "__ptr_arith_t".
 *
 * This type is used to represent the smallest unsigned integral type to which
 * a C-language pointer can be safely converted without loss of information
 * and vice versa. This type is not guaranteed to be able to safely hold the
 * values of pointer types with implementation-specific decoration such as
 * a "far" attribute, or such implementation-specific entities as physical
 * addresses.
 */

#include <common/feature.h>

#if	__COHERENT__

typedef	unsigned int	__ptr_arith_t;

#else

# error	The integral type equivalent to a pointer is not known.

#endif

#endif	/* ! defined (__COMMON___PARITH_H__) */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.