Import Geant4 0.1.0 source tree
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#ifndef __CMATH__
|
||||
#define __CMATH__
|
||||
|
||||
#include <math.h>
|
||||
inline float abs (float x) { return fabs (x); }
|
||||
inline double abs (double x) { return fabs (x); }
|
||||
inline long double abs (long double x) { return fabs (x); }
|
||||
|
||||
|
||||
#endif // __CMATH__
|
||||
@@ -0,0 +1 @@
|
||||
#include<stdio.h>
|
||||
@@ -0,0 +1,8 @@
|
||||
// The -*- C++ -*- standard library header.
|
||||
// This file is part of the GNU ANSI C++ Library.
|
||||
|
||||
#ifndef __CSTDLIB__
|
||||
#define __CSTDLIB__
|
||||
#include <stdlib.h>
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef __STD_CSTRING
|
||||
#define __STD_CSTRING
|
||||
|
||||
#include <string.h>
|
||||
int strcasecmp(const char *s1, const char *s2) { return strcmp(s1,s2); }
|
||||
|
||||
#endif /*__STD_CSTRING*/
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
#ifndef HASH_MAP_H
|
||||
#define HASH_MAP_H
|
||||
// wrapper for Objectspace hash map...
|
||||
#include <hashmap.h>
|
||||
|
||||
#ifndef HASHCHARSTAR_H
|
||||
#define HASHCHARSTAR_H
|
||||
inline size_t __stl_hash_string(const char* s)
|
||||
{
|
||||
unsigned long h = 0;
|
||||
for ( ; *s; ++s)
|
||||
h = 5*h + *s;
|
||||
|
||||
return size_t(h);
|
||||
}
|
||||
struct hash<const char*>
|
||||
{
|
||||
size_t operator()(const char* s) const { return __stl_hash_string(s); }
|
||||
};
|
||||
|
||||
struct hash<char*>
|
||||
{
|
||||
size_t operator()(const char* s) const { return __stl_hash_string(s); }
|
||||
};
|
||||
|
||||
#endif // HASHCHARSTAR_H
|
||||
|
||||
#endif // HASH_MAP_H
|
||||
@@ -0,0 +1,10 @@
|
||||
#ifndef __CMATH__
|
||||
#define __CMATH__
|
||||
|
||||
#include <math.h>
|
||||
inline float abs (float x) { return fabs (x); }
|
||||
inline double abs (double x) { return fabs (x); }
|
||||
inline long double abs (long double x) { return fabs (x); }
|
||||
|
||||
|
||||
#endif // __CMATH__
|
||||
@@ -0,0 +1 @@
|
||||
#include<stdio.h>
|
||||
@@ -0,0 +1,8 @@
|
||||
// The -*- C++ -*- standard library header.
|
||||
// This file is part of the GNU ANSI C++ Library.
|
||||
|
||||
#ifndef __CSTDLIB__
|
||||
#define __CSTDLIB__
|
||||
#include <stdlib.h>
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include <string.h>
|
||||
@@ -0,0 +1,28 @@
|
||||
#ifndef HASH_MAP_H
|
||||
#define HASH_MAP_H
|
||||
// wrapper for Objectspace hash map...
|
||||
#include <hashmap.h>
|
||||
|
||||
#ifndef HASHCHARSTAR_H
|
||||
#define HASHCHARSTAR_H
|
||||
inline size_t __stl_hash_string(const char* s)
|
||||
{
|
||||
unsigned long h = 0;
|
||||
for ( ; *s; ++s)
|
||||
h = 5*h + *s;
|
||||
|
||||
return size_t(h);
|
||||
}
|
||||
struct hash<const char*>
|
||||
{
|
||||
size_t operator()(const char* s) const { return __stl_hash_string(s); }
|
||||
};
|
||||
|
||||
struct hash<char*>
|
||||
{
|
||||
size_t operator()(const char* s) const { return __stl_hash_string(s); }
|
||||
};
|
||||
|
||||
#endif // HASHCHARSTAR_H
|
||||
|
||||
#endif // HASH_MAP_H
|
||||
@@ -0,0 +1,28 @@
|
||||
#ifndef HASH_MAP_H
|
||||
#define HASH_MAP_H
|
||||
// wrapper for Objectspace hash map...
|
||||
#include <hashmap.h>
|
||||
|
||||
#ifndef HASHCHARSTAR_H
|
||||
#define HASHCHARSTAR_H
|
||||
inline size_t __stl_hash_string(const char* s)
|
||||
{
|
||||
unsigned long h = 0;
|
||||
for ( ; *s; ++s)
|
||||
h = 5*h + *s;
|
||||
|
||||
return size_t(h);
|
||||
}
|
||||
struct hash<const char*>
|
||||
{
|
||||
size_t operator()(const char* s) const { return __stl_hash_string(s); }
|
||||
};
|
||||
|
||||
struct hash<char*>
|
||||
{
|
||||
size_t operator()(const char* s) const { return __stl_hash_string(s); }
|
||||
};
|
||||
|
||||
#endif // HASHCHARSTAR_H
|
||||
|
||||
#endif // HASH_MAP_H
|
||||
@@ -0,0 +1,10 @@
|
||||
#ifndef __CMATH__
|
||||
#define __CMATH__
|
||||
|
||||
#include <math.h>
|
||||
inline float abs (float x) { return fabs (x); }
|
||||
inline double abs (double x) { return fabs (x); }
|
||||
inline long double abs (long double x) { return fabs (x); }
|
||||
|
||||
|
||||
#endif // __CMATH__
|
||||
@@ -0,0 +1 @@
|
||||
#include<stdio.h>
|
||||
@@ -0,0 +1,8 @@
|
||||
// The -*- C++ -*- standard library header.
|
||||
// This file is part of the GNU ANSI C++ Library.
|
||||
|
||||
#ifndef __CSTDLIB__
|
||||
#define __CSTDLIB__
|
||||
#include <stdlib.h>
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1 @@
|
||||
#include <string.h>
|
||||
@@ -0,0 +1,28 @@
|
||||
#ifndef HASH_MAP_H
|
||||
#define HASH_MAP_H
|
||||
// wrapper for Objectspace hash map...
|
||||
#include <hashmap.h>
|
||||
|
||||
#ifndef HASHCHARSTAR_H
|
||||
#define HASHCHARSTAR_H
|
||||
inline size_t __stl_hash_string(const char* s)
|
||||
{
|
||||
unsigned long h = 0;
|
||||
for ( ; *s; ++s)
|
||||
h = 5*h + *s;
|
||||
|
||||
return size_t(h);
|
||||
}
|
||||
struct hash<const char*>
|
||||
{
|
||||
size_t operator()(const char* s) const { return __stl_hash_string(s); }
|
||||
};
|
||||
|
||||
struct hash<char*>
|
||||
{
|
||||
size_t operator()(const char* s) const { return __stl_hash_string(s); }
|
||||
};
|
||||
|
||||
#endif // HASHCHARSTAR_H
|
||||
|
||||
#endif // HASH_MAP_H
|
||||
Reference in New Issue
Block a user