提交 f9db9eca 编写于 作者: R Rich Felker

add and use internal header for *rand48 lcg

上级 01294da7
#include <stdint.h> #include <stdint.h>
#include "rand48.h"
uint64_t __rand48_step(unsigned short *xi, unsigned short *lc) uint64_t __rand48_step(unsigned short *xi, unsigned short *lc)
{ {
......
#include "rand48.h"
unsigned short __seed48[7] = { 0, 0, 0, 0xe66d, 0xdeec, 0x5, 0xb }; unsigned short __seed48[7] = { 0, 0, 0, 0xe66d, 0xdeec, 0x5, 0xb };
#include <stdlib.h> #include <stdlib.h>
#include <inttypes.h> #include <inttypes.h>
#include "rand48.h"
uint64_t __rand48_step(unsigned short *xi, unsigned short *lc);
extern unsigned short __seed48[7];
double erand48(unsigned short s[3]) double erand48(unsigned short s[3])
{ {
......
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "rand48.h"
extern unsigned short __seed48[7];
void lcong48(unsigned short p[7]) void lcong48(unsigned short p[7])
{ {
......
#include <stdlib.h> #include <stdlib.h>
#include <inttypes.h> #include <inttypes.h>
#include "rand48.h"
uint64_t __rand48_step(unsigned short *xi, unsigned short *lc);
extern unsigned short __seed48[7];
long nrand48(unsigned short s[3]) long nrand48(unsigned short s[3])
{ {
......
#include <stdlib.h> #include <stdlib.h>
#include <inttypes.h> #include <inttypes.h>
#include "rand48.h"
uint64_t __rand48_step(unsigned short *xi, unsigned short *lc);
extern unsigned short __seed48[7];
long jrand48(unsigned short s[3]) long jrand48(unsigned short s[3])
{ {
......
#include <stdint.h>
uint64_t __rand48_step(unsigned short *xi, unsigned short *lc);
extern unsigned short __seed48[7];
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include "rand48.h"
extern unsigned short __seed48[7];
unsigned short *seed48(unsigned short *s) unsigned short *seed48(unsigned short *s)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册