/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef __CONV_DOT_H
#define __CONV_DOT_H
/*
* Local include file for conversion library.
*/
#include <conv.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Some format strings differ depending on whether they are used for 32-bit
* or 64-bit values.
*/
#if defined(_ELF64)
#else
#endif
/*
* There are routines in libconv that are built once for each ELFCLASS
* because they are formatting Xword values. However, all ELF constants
* lie in 32-bit ranges, due to the need be usable for ELFCLASS32. Hence,
* the value of the ELFCLASS64 support here is purely to detect unexpected
* garbage values above the 32-bit range.
*
* The CONV_XWORD_64TEST() macro tests the upper half of an ELFCLASS64 Xword,
* and formats the value in hex if non-zero bits are seen. For ELFCLASS32,
* it is a no-op.
*/
#ifdef _ELF64
if (_value & 0xffffffff00000000) \
#else
#endif
/* # of elements in an array */
/*
* Functions intended for use inter-file, within libconv only
*/
#ifdef __cplusplus
}
#endif
#endif /* __CONV_DOT_H */