Alien-LibJIT
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
libjit/ChangeLog view on Meta::CPAN
names to try to work around the "setjmp" macro (needed for Win32).
2004-06-07 Rhys Weatherley <rweather@southern-storm.com.au>
* tools/gen-apply.c: gen-apply fixes for Alpha platforms.
* jit/jit-interp.c: alignment problem with "push_const_float32"
on 64-bit platforms.
* jit/jit-intrinsic.c: work around a SIGFPE for sqrt(-1) on Alpha;
it should return NaN instead.
* jit/jit-value.c: fix a warning.
* configure.in, jit/jit-insn.c: use "sigsetjmp" instead of
"setjmp", because "setjmp" may be a macro on some systems.
* jit-gen-arm.h: add floating-point instruction macros.
* jit/jit-gen-arm.h, jit/jit-rules-arm.c, jit/jit-rules-arm.h,
jit/jit-rules-arm.sel: expand floating-point instructions for ARM.
libjit/dpas/dpas-builtin.c view on Meta::CPAN
{"Sin", DPAS_BUILTIN_SIN, dpas_sin, 1},
{"Sinh", DPAS_BUILTIN_SINH, dpas_sinh, 1},
{"Sqrt", DPAS_BUILTIN_SQRT, dpas_sqrt, 1},
{"Tan", DPAS_BUILTIN_TAN, dpas_tan, 1},
{"Tanh", DPAS_BUILTIN_TANH, dpas_tanh, 1},
{"Trunc", DPAS_BUILTIN_TRUNC, dpas_trunc, 1},
{"Abs", DPAS_BUILTIN_ABS, dpas_abs, 1},
{"Min", DPAS_BUILTIN_MIN, dpas_min, 2},
{"Max", DPAS_BUILTIN_MAX, dpas_max, 2},
{"Sign", DPAS_BUILTIN_SIGN, dpas_sign, 1},
{"IsNaN", DPAS_BUILTIN_ISNAN, dpas_isnan, 1},
{"IsInf", DPAS_BUILTIN_ISINF, dpas_isinf, 1},
{"Finite", DPAS_BUILTIN_FINITE, dpas_finite, 1},
};
#define num_builtins (sizeof(builtins) / sizeof(dpas_builtin))
int dpas_is_builtin(const char *name)
{
int index;
for(index = 0; index < num_builtins; ++index)
{
libjit/jit/jit-intrinsic.c view on Meta::CPAN
return a built-in exception code to indicate the type of exception
to be thrown (the caller is responsible for throwing the actual
exception). @xref{Exceptions}, for a list of built-in exception codes.
The following functions are defined in @code{<jit/jit-intrinsic.h>}:
@*/
/*
* Special values that indicate "not a number" for floating-point types.
* Visual C++ won't let us compute NaN's at compile time, so we have to
* work around it with a run-time hack.
*/
#if defined(_MSC_VER) && defined(_M_IX86)
static unsigned int const float32_nan = 0x7FC00000;
static unsigned __int64 const float64_nan = 0x7FF8000000000000LL;
#define jit_float32_nan (*((jit_float32 *)&float32_nan))
#define jit_float64_nan (*((jit_float64 *)&float64_nan))
#define jit_nfloat_nan ((jit_nfloat)(*((jit_float64 *)&float64_nan)))
#else
#define jit_float32_nan ((jit_float32)(0.0 / 0.0))
libjit/tests/math.pas view on Meta::CPAN
runf("math_f_max_1_6", Max(ShortReal(1.0), ShortReal(6.0)), ShortReal(6.0), 0.00001);
runf("math_f_min_1_6", Min(ShortReal(1.0), ShortReal(6.0)), ShortReal(1.0), 0.00001);
runf("math_f_sin_0", Sin(ShortReal(0.0)), ShortReal(0.0), 0.00001);
runf("math_f_sin_pi_2", Sin(ShortReal(pi / 2)), ShortReal(1.0), 0.00001);
f := ShortReal(pi);
runf("math_f_sin_pi", Sin(f), ShortReal(0.0), 0.00001);
runf("math_f_cos_0", Cos(ShortReal(0.0)), ShortReal(1.0), 0.00001);
runf("math_f_sqrt_1", Sqrt(ShortReal(1.0)), ShortReal(1.0), 0.00001);
runf("math_f_sqrt_2", Sqrt(ShortReal(2.0)), ShortReal(1.4142), 0.0001);
f := Sqrt(ShortReal(-1.0));
run("math_f_sqrt_m1", IsNaN(f));
runf("math_f_ceil_1.5", Ceil(ShortReal(1.5)), ShortReal(2.0), 0.00001);
runf("math_f_ceil_m1.5", Ceil(ShortReal(-1.5)), ShortReal(-1.0), 0.00001);
runf("math_f_floor_1.5", Floor(ShortReal(1.5)), ShortReal(1.0), 0.00001);
runf("math_f_floor_m1.5", Floor(ShortReal(-1.5)), ShortReal(-2.0), 0.00001);
runf("math_f_rint_1.5", Rint(ShortReal(1.5)), ShortReal(2.0), 0.00001);
runf("math_f_rint_2.5", Rint(ShortReal(2.5)), ShortReal(2.0), 0.00001);
runf("math_f_round_1.5", Round(ShortReal(1.5)), ShortReal(2.0), 0.00001);
runf("math_f_round_2.5", Round(ShortReal(2.5)), ShortReal(3.0), 0.00001);
runf("math_f_trunc_1.5", Trunc(ShortReal(1.5)), ShortReal(1.0), 0.00001);
runf("math_f_trunc_2.5", Trunc(ShortReal(2.5)), ShortReal(2.0), 0.00001);
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.655 second using v1.00-cache-2.02-grep-82fe00e-cpan-2c419f77a38b )