Searched refs:half (Results 1 - 25 of 65) sorted by relevance

123

/haiku-fatelf/src/add-ons/translators/exr/openexr/half/
H A Dhalf.h41 // half -- a 16-bit floating point number class:
43 // Type half can represent positive and negative numbers whose
49 // Type half behaves (almost) like the built-in C++ floating point
50 // types. In arithmetic expressions, half, float and double can be
53 // half a (3.5);
59 // Conversions from half to float are lossless; all half numbers
62 // Conversions from float to half may not preserve the float's
63 // value exactly. If a float is not representable as a half, the
64 // float value is rounded to the nearest representable half
90 class half class
435 half::half () function in class:half
446 half::half (float f) function in class:half
[all...]
H A DhalfLimits.h47 // C++ standard library-style numeric_limits for class half
52 #include "half.h"
57 class numeric_limits <half>
63 static half min () throw () {return HALF_NRM_MIN;}
64 static half max () throw () {return HALF_MAX;}
72 static half epsilon () throw () {return HALF_EPSILON;}
73 static half round_error () throw () {return HALF_EPSILON / 2;}
85 static half infinity () throw () {return half::posInf();}
86 static half quiet_Na
[all...]
H A DhalfFunction.h43 // of half --> T functions
53 // evaluates the function for all finite half values in the interval
55 // For finite half values that are not in [domainMin, domainMax], the
61 // half values by calling the the halfFunction object's operator()
69 // halfFunction<half> hsin (sin);
71 // halfFunction<half> hsqrt (sqrt, // function
73 // half::qNan(), // sqrt(x) for x < 0
74 // half::posInf(), // sqrt(+inf)
75 // half::qNan(), // sqrt(-inf)
76 // half
[all...]
H A Dhalf.cpp42 // class half --
48 #include "half.h"
53 // Lookup tables for half-to-float and float-to-half conversion
57 __declspec(dllexport) half::uif _toFloat[1 << 16] =
62 const half::uif half::_toFloat[1 << 16] =
64 const unsigned short half::_eLut[1 << 9] =
69 // Overflow handler for float-to-half conversion;
75 half
[all...]
/haiku-fatelf/src/add-ons/translators/exr/openexr/ilmimf/
H A DImfConvert.h49 #include "half.h"
55 // Conversion from half or float to unsigned int:
73 unsigned int halfToUint (half h);
78 // Conversion from unsigned int or float to half:
83 // finite, closest possible half
98 half uintToHalf (unsigned int ui);
99 half floatToHalf (float f);
H A DImfLut.h43 // of half --> half functions to pixel data,
56 // Lookup table for individual half channels.
75 void apply (half *data,
89 halfFunction <half> _lut;
129 halfFunction <half> _lut;
137 // Zero explicitly remains zero. The first non-zero half will map to 1
142 half round12log (half x);
154 half operato
[all...]
H A DImfRgba.h45 #include "half.h"
56 half r;
57 half g;
58 half b;
59 half a;
62 Rgba (half r, half g, half b, half a = 1.f): r (r), g (g), b (b), a (a) {}
H A DImfConvert.cpp88 halfToUint (half h)
113 half
117 return half::posInf();
119 return half (ui);
123 half
129 return half::posInf();
132 return half::negInf();
135 return half (f);
H A DImfMisc.cpp74 size = Xdr::size <half> ();
221 half fillVal = half (fillValue);
225 *(half *) writePtr = fillVal;
278 half h;
308 *(half *) writePtr = uintToHalf (ui);
317 Xdr::read <CharPtrIO> (readPtr, *(half *) writePtr);
328 *(half *) writePtr = floatToHalf (f);
354 half h;
406 half
[all...]
H A Db44ExpLogTable.cpp52 #include <half.h>
60 // Main - prints the half-to-float lookup table
85 half h;
114 half h;
H A DImfLut.cpp40 // of half --> half functions to pixel data,
53 HalfLut::apply (half *data, int nData, int stride) const
87 *(half *)pixel = _lut (*(half *)pixel);
152 half
153 round12log (half x)
H A DImfPxr24Compressor.cpp72 #include <half.h>
342 half pixel;
344 pixel = *(const half *) inPtr;
345 inPtr += sizeof (half);
496 half * hPtr = (half *) writePtr;
498 writePtr += sizeof (half);
/haiku-fatelf/src/system/libroot/posix/glibc/arch/generic/
H A De_coshf.c25 static const float one = 1.0, half=0.5; variable
27 static float one = 1.0, half=0.5, huge = 1.0e30; variable
57 return half*t+half/t;
60 /* |x| in [22, log(maxdouble)] return half*exp(|x|) */
61 if (ix < 0x42b17180) return half*__ieee754_expf(fabsf(x));
65 w = __ieee754_expf(half*fabsf(x));
66 t = half*w;
H A De_cosh.c42 static const double one = 1.0, half=0.5, huge = 1.0e300; variable
44 static double one = 1.0, half=0.5, huge = 1.0e300; variable
76 return half*t+half/t;
79 /* |x| in [22, log(maxdouble)] return half*exp(|x|) */
80 if (ix < 0x40862e42) return half*__ieee754_exp(fabs(x));
85 w = __ieee754_exp(half*fabs(x));
86 t = half*w;
H A De_coshl.c41 static const long double one = 1.0, half=0.5, huge = 1.0e4900L; variable
43 static long double one = 1.0, half=0.5, huge = 1.0e4900L; variable
75 return half*t+half/t;
78 /* |x| in [22, ln(maxdouble)] return half*exp(|x|) */
80 return half*__ieee754_expl(fabsl(x));
86 w = __ieee754_expl(half*fabsl(x));
87 t = half*w;
H A Dk_sinf.c28 half = 5.0000000000e-01,/* 0x3f000000 */ variable
53 else return x-((z*(half*y-v*r)-y)-v*S1);
H A Dmpexp.h87 /**/ half = {{0x3fe00000, 0x00000000} }; /* 1/2 */ variable
146 /**/ half = {{0x00000000, 0x3fe00000} }; /* 1/2 */ variable
156 #define HALF half.d
H A De_lgammal_r.c102 half = 0.5L, variable
268 y = __cosl (pi * (half - y));
389 r += half * y + y * p1/p2;
400 r += (-half * y + p1 / p2);
412 r = half * y + p / q;
438 r = (x - half) * (t - one) + w;
/haiku-fatelf/src/add-ons/translators/exr/
H A DEXRGamma.h21 float operator() (half h);
/haiku-fatelf/src/add-ons/translators/exr/openexr/imath/
H A DImathHalfLimits.h42 // Imath-style limits for class half.
47 #include "half.h"
53 struct limits <half>
/haiku-fatelf/src/system/libroot/posix/glibc/arch/x86/
H A De_atanh.S30 ASM_TYPE_DIRECTIVE(half,@object)
31 half: .double 0.5 label
32 ASM_SIZE_DIRECTIVE(half)
70 fcoml MO(half) // |x| : 0.5*ln2
H A De_atanhf.S30 ASM_TYPE_DIRECTIVE(half,@object)
31 half: .double 0.5 label
32 ASM_SIZE_DIRECTIVE(half)
70 fcoml MO(half) // |x| : 0.5*ln2
H A De_atanhl.S33 ASM_TYPE_DIRECTIVE(half,@object)
34 half: .double 0.5 label
35 ASM_SIZE_DIRECTIVE(half)
77 fcoml MO(half) // |x| : 0.5*ln2
/haiku-fatelf/src/bin/gdb/gdb/
H A Dblock.c78 int bot, top, half; local
100 half = (top - bot + 1) >> 1;
101 b = BLOCKVECTOR_BLOCK (bl, bot + half);
103 bot += half;
105 top = bot + half;
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/bfs/
H A Dbfs_attribute_iterator_test.cpp255 int32 half = count / 2; local
258 half & 1 ? half - 1 : half + 1, half - 2, half + 2);

Completed in 83 milliseconds

123