#include <errno.h>

Go to the source code of this file.
Defines | |
| #define | ULONG_MAX ((unsigned long)(~0L)) |
| #define | LONG_MAX ((long)(ULONG_MAX >> 1)) |
| #define | PTR char * |
| #define | NULL (void *) 0 |
| #define | TYPE_0 0 |
| #define | BREAK_0 8 |
| #define | DEG_0 0 |
| #define | SEP_0 0 |
| #define | TYPE_1 1 |
| #define | BREAK_1 32 |
| #define | DEG_1 7 |
| #define | SEP_1 3 |
| #define | TYPE_2 2 |
| #define | BREAK_2 64 |
| #define | DEG_2 15 |
| #define | SEP_2 1 |
| #define | TYPE_3 3 |
| #define | BREAK_3 128 |
| #define | DEG_3 31 |
| #define | SEP_3 3 |
| #define | TYPE_4 4 |
| #define | BREAK_4 256 |
| #define | DEG_4 63 |
| #define | SEP_4 1 |
| #define | MAX_TYPES 5 |
Functions/Subroutines | |
| long int | random () |
| void | srandom (unsigned int x) |
| PTR | initstate (unsigned int seed, PTR arg_state, unsigned long n) |
| PTR | setstate (PTR arg_state) |
Variables | |
| static int | degrees [MAX_TYPES] = { DEG_0, DEG_1, DEG_2, DEG_3, DEG_4 } |
| static int | seps [MAX_TYPES] = { SEP_0, SEP_1, SEP_2, SEP_3, SEP_4 } |
| static long int | randtbl [DEG_3+1] |
| static long int * | fptr = &randtbl[SEP_3 + 1] |
| static long int * | rptr = &randtbl[1] |
| static long int * | state = &randtbl[1] |
| static int | rand_type = TYPE_3 |
| static int | rand_deg = DEG_3 |
| static int | rand_sep = SEP_3 |
| static long int * | end_ptr = &randtbl[sizeof(randtbl) / sizeof(randtbl[0])] |
| #define BREAK_0 8 |
| #define BREAK_1 32 |
| #define BREAK_2 64 |
| #define BREAK_3 128 |
| #define BREAK_4 256 |
| #define DEG_0 0 |
| #define DEG_1 7 |
| #define DEG_2 15 |
| #define DEG_3 31 |
| #define DEG_4 63 |
| #define LONG_MAX ((long)(ULONG_MAX >> 1)) |
Definition at line 67 of file random.c.
Referenced by _f_inqu(), check_defines(), Explore_Path(), OPT_STAB::Make_st_group(), random(), s_rsue_com(), and strtol().
| #define MAX_TYPES 5 |
| #define SEP_0 0 |
| #define SEP_1 3 |
| #define SEP_2 1 |
| #define SEP_3 3 |
| #define SEP_4 1 |
| #define TYPE_0 0 |
Definition at line 127 of file random.c.
Referenced by initstate(), random(), setstate(), and srandom().
| #define TYPE_1 1 |
| #define TYPE_2 2 |
| #define TYPE_3 3 |
| #define TYPE_4 4 |
| #define ULONG_MAX ((unsigned long)(~0L)) |
Definition at line 66 of file random.c.
Referenced by check_defines(), dwarf_add_fde_inst(), dwarf_get_macro_details(), hash1(), and strtoul().
| void srandom | ( | unsigned int | x | ) |
int degrees[MAX_TYPES] = { DEG_0, DEG_1, DEG_2, DEG_3, DEG_4 } [static] |
Definition at line 219 of file random.c.
Referenced by dump_switch_p(), dump_switch_p_1(), initstate(), parse_comp_unit(), random(), read_mapping(), and setstate().
Definition at line 198 of file random.c.
Referenced by _bfd_vms_write_hdr(), _frch(), _fwch(), _fwwd(), _parse(), elfNN_ia64_check_relocs(), get_fptr(), pe_implied_import_dll(), random(), setstate(), setup_format(), srandom(), verify_call_expr(), verify_target_expr(), and Write_Symbol().
int rand_deg = DEG_3 [static] |
int rand_sep = SEP_3 [static] |
int rand_type = TYPE_3 [static] |
Definition at line 215 of file random.c.
Referenced by initstate(), random(), setstate(), and srandom().
Initial value:
{ TYPE_3,
0x9a319039, 0x32d9c024, 0x9b663182, 0x5da1f342,
0xde3b81e0, 0xdf0a6fb5, 0xf103bc02, 0x48f340fb,
0x7449e56b, 0xbeb1dbb0, 0xab5c5918, 0x946554fd,
0x8c2e680f, 0xeb3d799f, 0xb11ee0b7, 0x2d436b86,
0xda672e2a, 0x1588ca88, 0xe369735d, 0x904f35f7,
0xd7158fd6, 0x6fa6f051, 0x616e6b96, 0xac94efdc,
0x36413f93, 0xc622c298, 0xf5a42ab8, 0x8a88d77b,
0xf5ad9d0e, 0x8999220b, 0x27fb47b9
}
Definition at line 199 of file random.c.
Referenced by _bfd_vms_write_tir(), _FRN(), _ld_read(), _rnl90to77(), b_out_slurp_reloc_table(), Cif_Open(), ecoff_slurp_reloc_table(), initstate(), NAME(), ppc64_elf_edit_opd(), random(), setstate(), slurp_reloc_table(), and srandom().
int seps[MAX_TYPES] = { SEP_0, SEP_1, SEP_2, SEP_3, SEP_4 } [static] |
1.5.6