2 # This is a shell archive. Remove anything before this line,
3 # then unpack it by saving it in a file and typing "sh file".
5 # Wrapped by on Fri Mar 12 08:41:28 CST 1993
6 # Contents: include/ include/limits.h include/math.h include/stddef.h
11 chmod u=rwx,g=rwx,o=rx include
13 echo x - include/limits.h
14 sed 's/^@//' > "include/limits.h" <<'@//E*O*F include/limits.h//'
18 #include_next <limits.h>
20 /* Minimum and maximum values a `char' can hold. */
21 #ifdef __CHAR_UNSIGNED__
28 #endif /* _LIMITS_H */
29 @//E*O*F include/limits.h//
30 chmod u=rw,g=rw,o=r include/limits.h
32 echo x - include/math.h
33 sed 's/^@//' > "include/math.h" <<'@//E*O*F include/math.h//'
37 #include_next <math.h>
42 #define HUGE_VAL 1.79769313486231570e+308
44 #define HUGE_VAL 8.98846567431157854e+307
47 #if __OPTIMIZE__ && ! __NO_INLINE
49 #define frexp(x,y) __inline_frexp ((x), (y))
50 #define ldexp(x,y) __inline_ldexp ((x), (y))
51 #define irint(x) __inline_irint (x)
52 #define frexpf(x,y) __inline_frexpf ((x), (y))
53 #define ldexpf(x,y) __inline_ldexpf ((x), (y))
54 #define irintf(x) __inline_irintf (x)
56 #if __convex_c2__ || __convex_c32__ || __convex_c34__ || __convex_c38__
58 #define atan(x) __inline_atan (x)
59 #define ceil(x) __inline_ceil (x)
60 #define cos(x) __inline_cos (x)
61 #define exp(x) __inline_exp (x)
62 #define floor(x) __inline_floor (x)
63 #define log(x) __inline_log (x)
64 #define log10(x) __inline_log10 (x)
65 #define modf(x,y) __inline_modf ((x), (y))
66 #define rint(x) __inline_rint (x)
67 #define sin(x) __inline_sin (x)
68 #define sqrt(x) __inline_sqrt (x)
70 #define atanf(x) __inline_atanf (x)
71 #define ceilf(x) __inline_ceilf (x)
72 #define cosf(x) __inline_cosf (x)
73 #define expf(x) __inline_expf (x)
74 #define floorf(x) __inline_floorf (x)
75 #define logf(x) __inline_logf (x)
76 #define log10f(x) __inline_log10f (x)
77 #define modff(x,y) __inline_modff ((x), (y))
78 #define rintf(x) __inline_rintf (x)
79 #define sinf(x) __inline_sinf (x)
80 #define sqrtf(x) __inline_sqrtf (x)
82 #endif /* __convex_c[23*]__ */
84 #endif /* __OPTIMIZE__ */
86 static __inline__ __const__ double __inline_atan (double x)
89 __asm__ ("atan.d %0" : "=d" (z) : "0" (x));
93 static __inline__ __const__ float __inline_atanf (float x)
96 __asm__ ("atan.s %0" : "=d" (z) : "0" (x));
100 static __inline__ __const__ double __inline_cos (double x)
103 __asm__ ("cos.d %0" : "=d" (z) : "0" (x));
107 static __inline__ __const__ float __inline_cosf (float x)
110 __asm__ ("cos.s %0" : "=d" (z) : "0" (x));
114 static __inline__ __const__ double __inline_exp (double x)
117 __asm__ ("exp.d %0" : "=d" (z) : "0" (x));
121 static __inline__ __const__ float __inline_expf (float x)
124 __asm__ ("exp.s %0" : "=d" (z) : "0" (x));
128 static __inline__ __const__ double __inline_log (double x)
131 __asm__ ("ln.d %0" : "=d" (z) : "0" (x));
135 static __inline__ __const__ float __inline_logf (float x)
138 __asm__ ("ln.s %0" : "=d" (z) : "0" (x));
142 static __inline__ __const__ double __inline_sin (double x)
145 __asm__ ("sin.d %0" : "=d" (z) : "0" (x));
149 static __inline__ __const__ float __inline_sinf (float x)
152 __asm__ ("sin.s %0" : "=d" (z) : "0" (x));
156 static __inline__ __const__ double __inline_sqrt (double x)
159 __asm__ ("sqrt.d %0" : "=d" (z) : "0" (x));
163 static __inline__ __const__ float __inline_sqrtf (float x)
166 __asm__ ("sqrt.s %0" : "=d" (z) : "0" (x));
170 static __inline__ __const__ double __inline_ceil (double x)
173 __asm__ ("frint.d %1,%0" : "=d" (z) : "d" (x));
178 static __inline__ __const__ float __inline_ceilf (float x)
181 __asm__ ("frint.s %1,%0" : "=d" (z) : "d" (x));
182 if (z < x) z += 1.0F;
186 static __inline__ __const__ double __inline_floor (double x)
189 __asm__ ("frint.d %1,%0" : "=d" (z) : "d" (x));
194 static __inline__ __const__ float __inline_floorf (float x)
197 __asm__ ("frint.s %1,%0" : "=d" (z) : "d" (x));
198 if (z > x) z -= 1.0F;
202 static __inline__ __const__ double __inline_log10 (double x)
204 return 0.43429448190325182765 * __inline_log (x);
207 static __inline__ __const__ float __inline_log10f (float x)
209 return 0.43429448190325182765F * __inline_logf (x);
212 static __inline__ double __inline_modf (double x, double *np)
215 __asm__ ("frint.d %1,%0" : "=d" (intpart) : "d" (x));
220 static __inline__ float __inline_modff (float x, float *np)
223 __asm__ ("frint.s %1,%0" : "=d" (intpart) : "d" (x));
228 static __inline__ double __inline_frexp (double x, int *np)
230 union u { double d; unsigned long long ll; } u;
236 *np = ((u.ll >> 52) & 03777) - 01776;
237 u.ll = (u.ll & 0x800fffffffffffffLL) | 0x3fe0000000000000LL;
239 *np = ((u.ll >> 52) & 03777) - 02000;
240 u.ll = (u.ll & 0x800fffffffffffffLL) | 0x4000000000000000LL;
246 static __inline__ float __inline_frexpf (float x, int *np)
248 union u { float f; unsigned int i; } u;
254 *np = ((u.i >> 23) & 0377) - 0176;
255 u.i = (u.i & 0x807fffff) | 0x3f000000;
257 *np = ((u.i >> 23) & 0377) - 0200;
258 u.i = (u.i & 0x807fffff) | 0x40000000;
264 static __inline__ double __inline_ldexp (double x, int n)
267 union { double d; long long ll; unsigned sexp : 12; } u;
270 int exp = n + (u.sexp & 03777);
271 long long nn = (long long) n << 52;
274 u.ll &= 0x8000000000000000LL, errno = 34;
275 else if (exp > 03776)
276 u.ll = u.ll & 0x8000000000000000LL | 0x7fefffffffffffffLL, errno = 34;
279 u.ll = 0, errno = 34;
280 else if (exp > 03777)
281 u.ll |= 0x7fffffffffffffffLL, errno = 34;
289 static __inline__ float __inline_ldexpf (float x, int n)
292 union { float f; int i; unsigned sexp : 9; } u;
295 int exp = n + (u.sexp & 0377);
299 u.i &= 0x80000000, errno = 34;
301 u.i = u.i & 0x80000000 | 0x7f7fffff, errno = 34;
306 u.i |= 0x7fffffff, errno = 34;
314 static __inline__ __const__ double __inline_rint (double x)
317 union { double d; unsigned long long ll; } u;
320 u.ll = (u.ll & 0x8000000000000000LL) | 0x3fe0000000000000LL;
322 u.ll = (u.ll & 0x8000000000000000LL) | 0x4000000000000000LL;
324 __asm__ ("frint.d %1,%0" : "=d" (z) : "d" (x + u.d));
328 static __inline__ __const__ float __inline_rintf (float x)
331 union { float f; unsigned int i; } u;
334 u.i = (u.i & 0x80000000) | 0x3f000000;
336 u.i = (u.i & 0x80000000) | 0x40000000;
338 __asm__ ("frint.s %1,%0" : "=d" (z) : "d" (x + u.f));
342 static __inline__ __const__ int __inline_irint (double x)
344 union { double d; unsigned long long ll; } u;
347 u.ll = (u.ll & 0x8000000000000000LL) | 0x3fe0000000000000LL;
349 u.ll = (u.ll & 0x8000000000000000LL) | 0x4000000000000000LL;
354 static __inline__ __const__ int __inline_irintf (float x)
356 union { float f; unsigned int i; } u;
359 u.i = (u.i & 0x80000000) | 0x3f000000;
361 u.i = (u.i & 0x80000000) | 0x40000000;
367 @//E*O*F include/math.h//
368 chmod u=rw,g=rw,o=r include/math.h
370 echo x - include/stddef.h
371 sed 's/^@//' > "include/stddef.h" <<'@//E*O*F include/stddef.h//'
379 /* In C++, wchar_t is a distinct basic type,
380 and we can expect __wchar_t to be defined by cc1plus. */
381 typedef __wchar_t wchar_t;
383 /* In C, cpp tells us which type to make an alias for. */
384 typedef __WCHAR_TYPE__ wchar_t;
387 #endif /* __WCHAR_T */
389 #include_next <stddef.h>
391 #endif /* _STDDEF_H */
392 @//E*O*F include/stddef.h//
393 chmod u=rw,g=rw,o=r include/stddef.h
395 echo x - include/stdlib.h
396 sed 's/^@//' > "include/stdlib.h" <<'@//E*O*F include/stdlib.h//'
402 #define alloca __non_builtin_alloca
403 #include_next <stdlib.h>
408 #include_next <stdlib.h>
410 #endif /* _CONVEX_SOURCE */
412 #endif /* _STDLIB_H */
413 @//E*O*F include/stdlib.h//
414 chmod u=rw,g=rw,o=r include/stdlib.h