* a.out.gnu.h, a.out.sun4.h: Make SEGMENT_SIZE able to depend
[deliverable/binutils-gdb.git] / gas / hex-value.c
CommitLineData
fecd2382
RP
1/* hex_value.c - char=>radix-value -
2 Copyright (C) 1987, 1990, 1991 Free Software Foundation, Inc.
3
4This file is part of GAS, the GNU Assembler.
5
6GAS is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
6026cd06 8the Free Software Foundation; either version 2, or (at your option)
fecd2382
RP
9any later version.
10
11GAS is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GAS; see the file COPYING. If not, write to
18the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20/* static const char rcsid[] = "$Id$"; */
21
22/*
23 * Export: Hex_value[]. Converts digits to their radix-values.
24 * As distributed assumes 8 bits per char (256 entries) and ASCII.
25 */
26
27#define __ (42) /* blatently illegal digit value */
28 /* exceeds any normal radix */
29#if !defined(__STDC__) && !defined(const)
30#define const /* empty */
31#endif
32const char
33hex_value [256] = { /* for fast ASCII -> binary */
34 __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
35 __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
36 __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
37 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, __, __, __, __, __, __,
38 __, 10, 11, 12, 13, 14, 15, __, __, __, __, __, __, __, __, __,
39 __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
40 __, 10, 11, 12, 13, 14, 15, __, __, __, __, __, __, __, __, __,
41 __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
42 __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
43 __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
44 __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
45 __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
46 __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
47 __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
48 __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __,
49 __, __, __, __, __, __, __, __, __, __, __, __, __, __, __, __
50 };
51
52#ifdef VMS
53dummy2()
54{
55}
56#endif
57/* end:hex_value.c */
This page took 0.030227 seconds and 4 git commands to generate.