Home
last modified time | relevance | path

Searched refs:posit (Results 1 – 25 of 753) sorted by relevance

12345678910>>...31

/dports/math/universal/universal-3.48/
H A DCommandLineTools.md130 pc : posit components
168 construct the posit
211 posit<8,0> 8 bits
212 posit<16,1> 16 bits
213 posit<32,2> 32 bits
214 posit<64,3> 64 bits
215 posit<128,4> 128 bits
216 posit<256,5> 256 bits
220 posit<4,0> 8 bits
221 posit<8,0> 8 bits
[all …]
/dports/math/universal/universal-3.48/include/universal/number/posit/specialized/
H A Dposit_2_0.hpp86 posit(const posit&) = default;
87 posit(posit&&) = default;
88 posit& operator=(const posit&) = default;
89 posit& operator=(posit&&) = default;
182 posit p; in operator -()
201 posit& operator+=(const posit& b) { in operator +=()
206 posit& operator-=(const posit& b) { in operator -=()
211 posit& operator*=(const posit& b) { in operator *=()
216 posit& operator/=(const posit& b) { in operator /=()
226 posit tmp(*this); in operator ++()
[all …]
H A Dposit_8_0.hpp42 posit(const posit&) = default;
43 posit(posit&&) = default;
44 posit& operator=(const posit&) = default;
45 posit& operator=(posit&&) = default;
125 posit p; in operator -()
129 posit& operator+=(const posit& b) { in operator +=()
136 posit& operator-=(const posit& b) { in operator -=()
143 posit& operator*=(const posit& b) { in operator *=()
150 posit& operator/=(const posit& b) { in operator /=()
164 posit tmp(*this); in operator ++()
[all …]
H A Dposit_3_0.hpp113 posit(const posit&) = default;
114 posit(posit&&) = default;
115 posit& operator=(const posit&) = default;
116 posit& operator=(posit&&) = default;
215 posit p; in operator -()
246 posit& operator+=(const posit& b) { in operator +=()
251 posit& operator-=(const posit& b) { in operator -=()
256 posit& operator*=(const posit& b) { in operator *=()
261 posit& operator/=(const posit& b) { in operator /=()
271 posit tmp(*this); in operator ++()
[all …]
H A Dposit_4_0.hpp124 posit(const posit&) = default;
125 posit(posit&&) = default;
126 posit& operator=(const posit&) = default;
127 posit& operator=(posit&&) = default;
240 posit p; in operator -()
243 posit& operator+=(const posit& b) { in operator +=()
248 posit& operator-=(const posit& b) { in operator -=()
253 posit& operator*=(const posit& b) { in operator *=()
258 posit& operator/=(const posit& b) { in operator /=()
268 posit tmp(*this); in operator ++()
[all …]
H A Dposit_3_1.hpp71 posit(const posit&) = default;
72 posit(posit&&) = default;
73 posit& operator=(const posit&) = default;
74 posit& operator=(posit&&) = default;
133 posit p; in operator -()
136 posit& operator+=(const posit& b) { in operator +=()
141 posit& operator-=(const posit& b) { in operator -=()
146 posit& operator*=(const posit& b) { in operator *=()
151 posit& operator/=(const posit& b) { in operator /=()
161 posit tmp(*this); in operator ++()
[all …]
H A Dposit_16_1.hpp40 posit(const posit&) = default;
41 posit(posit&&) = default;
42 posit& operator=(const posit&) = default;
43 posit& operator=(posit&&) = default;
125 posit p; in operator -()
128 posit& operator+=(const posit& b) { in operator +=()
194 posit& operator-=(const posit& b) { in operator -=()
273 posit& operator*=(const posit& b) { in operator *=()
329 posit& operator/=(const posit& b) { in operator /=()
408 posit tmp(*this); in operator ++()
[all …]
H A Dposit_32_2.hpp40 posit(const posit&) = default;
41 posit(posit&&) = default;
42 posit& operator=(const posit&) = default;
43 posit& operator=(posit&&) = default;
123 posit p; in operator -()
127 posit& operator+=(const posit& b) { in operator +=()
192 posit& operator-=(const posit& b) { in operator -=()
279 posit& operator*=(const posit& b) { in operator *=()
340 posit& operator/=(const posit& b) { in operator /=()
428 posit tmp(*this); in operator ++()
[all …]
/dports/math/universal/universal-3.48/include/universal/number/posit/
H A Dposit_impl.hpp483 constexpr posit(const posit&) = default;
484 constexpr posit(posit&&) = default;
486 posit& operator=(const posit&) = default;
487 posit& operator=(posit&&) = default;
491 posit(const posit<nnbits, ees>& a) { in posit() function in sw::universal::posit
713 posit& operator+=(const posit& rhs) { in operator +=()
755 posit& operator-=(const posit& rhs) { in operator -=()
797 posit& operator*=(const posit& rhs) { in operator *=()
840 posit& operator/=(const posit& rhs) { in operator /=()
973 posit p; in abs()
[all …]
H A Dposit_c_api.h124 double: POSIT_GLUE4(posit,nbits,_from,d), \
125 float: POSIT_GLUE4(posit,nbits,_from,f), \
128 int: POSIT_GLUE4(posit,nbits,_from,si), \
150 double: POSIT_GLUE5(posit,nbits,_,op,d), \
151 float: POSIT_GLUE5(posit,nbits,_,op,f), \
153 long: POSIT_GLUE5(posit,nbits,_,op,sl), \
154 int: POSIT_GLUE5(posit,nbits,_,op,si), \
168 double: POSIT_GLUE5(posit,nbits,_,d,op), \
169 float: POSIT_GLUE5(posit,nbits,_,f,op), \
171 long: POSIT_GLUE5(posit,nbits,_,sl,op), \
[all …]
H A Dposit_fwd.hpp17 template<size_t nbits, size_t es> class posit;
18 template<size_t nbits, size_t es> posit<nbits, es> abs(const posit<nbits, es>& p);
19 template<size_t nbits, size_t es> posit<nbits, es> sqrt(const posit<nbits, es>& p);
20 template<size_t nbits, size_t es> constexpr posit<nbits, es>& minpos(posit<nbits, es>& p);
21 template<size_t nbits, size_t es> constexpr posit<nbits, es>& maxpos(posit<nbits, es>& p);
22 template<size_t nbits, size_t es> constexpr posit<nbits, es> minpos();
23 template<size_t nbits, size_t es> constexpr posit<nbits, es> maxpos();
24 …plate<size_t nbits, size_t es, size_t fbits> posit<nbits, es>& convert(const internal::value<fbits…
28 …acity> internal::value<2 * (nbits - 2 - es)> quire_mul(const posit<nbits, es>&, const posit<nbits,…
/dports/math/universal/universal-3.48/tests/numerical/utils/
H A Dlookup_arithmetic.cpp132 posit(const posit&) = default;
133 posit(posit&&) = default;
134 posit& operator=(const posit&) = default;
135 posit& operator=(posit&&) = default;
139 posit& operator+=(const posit& b) { in operator +=()
186 posit(const posit&) = default;
187 posit(posit&&) = default;
188 posit& operator=(const posit&) = default;
189 posit& operator=(posit&&) = default;
194 posit<5,0>& operator+=(const posit& b) { in operator +=()
[all …]
/dports/math/universal/universal-3.48/include/universal/number/posit/math/
H A Dtrigonometry.hpp19 posit<nbits,es> sin(posit<nbits,es> x) { in sin()
21 return posit<nbits,es>(std::sin(double(x))); in sin()
26 posit<nbits,es> cos(posit<nbits,es> x) { in cos()
33 posit<nbits,es> tan(posit<nbits,es> x) { in tan()
40 posit<nbits,es> atan(posit<nbits,es> x) { in atan()
47 posit<nbits,es> atan2(posit<nbits,es> y, posit<nbits,es> x) { in atan2()
53 posit<nbits,es> acos(posit<nbits,es> x) { in acos()
59 posit<nbits,es> asin(posit<nbits,es> x) { in asin()
65 posit<nbits,es> cot(posit<nbits,es> x) { in cot()
71 posit<nbits,es> sec(posit<nbits,es> x) { in sec()
[all …]
H A Dsqrt.hpp132 posit<nbits, es> y = posit<nbits, es>(0.41731f) + posit<nbits, es>(0.59016f) * fr; in fast_sqrt()
203 inline posit<3, 0> sqrt(const posit<3, 0>& a) { in sqrt()
216 inline posit<3, 1> sqrt(const posit<3, 1>& a) { in sqrt()
229 inline posit<4, 0> sqrt(const posit<4, 0>& a) { in sqrt()
243 inline posit<5, 0> sqrt(const posit<5, 0>& a) { in sqrt()
256 inline posit<8, 0> sqrt(const posit<8, 0>& a) { in sqrt()
269 inline posit<8, 1> sqrt(const posit<8, 1>& a) { in sqrt()
294 inline posit<16, 1> sqrt(const posit<16, 1>& a) { in sqrt()
388 inline posit<32, 2> sqrt(const posit<32, 2>& a) { in sqrt()
484 inline posit<64, 3> sqrt(const posit<64, 3>& a) { in sqrt()
[all …]
H A Dhyperbolic.hpp18 posit<nbits,es> sinh(posit<nbits,es> x) { in sinh()
19 return posit<nbits,es>(std::sinh(double(x))); in sinh()
24 posit<nbits,es> cosh(posit<nbits,es> x) { in cosh()
25 return posit<nbits,es>(std::cosh(double(x))); in cosh()
30 posit<nbits,es> tanh(posit<nbits,es> x) { in tanh()
31 return posit<nbits,es>(std::tanh(double(x))); in tanh()
36 posit<nbits,es> atanh(posit<nbits,es> x) { in atanh()
37 return posit<nbits,es>(std::atanh(double(x))); in atanh()
42 posit<nbits,es> acosh(posit<nbits,es> x) { in acosh()
43 return posit<nbits,es>(std::acosh(double(x))); in acosh()
[all …]
H A Dhypot.hpp47 posit<nbits,es> hypot(posit<nbits,es> x, posit<nbits,es> y) { in hypot()
48 return posit<nbits,es>(std::hypot(double(x),double(y))); in hypot()
52 posit<nbits,es> hypotf(posit<nbits,es> x, posit<nbits,es> y) { in hypotf()
53 return posit<nbits,es>(std::hypotf(float(x),float(y))); in hypotf()
57 posit<nbits,es> hypotl(posit<nbits,es> x, posit<nbits,es> y) { in hypotl()
58 return posit<nbits,es>(std::hypotl((long double)(x),(long double)(y))); in hypotl()
H A Dlogarithm.hpp15 posit<nbits,es> log(posit<nbits,es> x) { in log()
16 return posit<nbits,es>(std::log(double(x))); in log()
21 posit<nbits,es> log2(posit<nbits,es> x) { in log2()
22 return posit<nbits,es>(std::log2(double(x))); in log2()
27 posit<nbits,es> log10(posit<nbits,es> x) { in log10()
28 return posit<nbits,es>(std::log10(double(x))); in log10()
33 posit<nbits,es> log1p(posit<nbits,es> x) { in log1p()
34 return posit<nbits,es>(std::log1p(double(x))); in log1p()
/dports/math/universal/universal-3.48/playground/
H A Dskeleton.cpp60 posit<32, 2> E_pos(d); in LongDoubleExample()
88 posit<nbits, es> p; in PiExamples()
108 posit<nbits, 0> p(1.0); --p; in DynamicRangeTable()
112 posit<nbits, 1> p(1.0); --p; in DynamicRangeTable()
116 posit<nbits, 2> p(1.0); --p; in DynamicRangeTable()
213 posit<8, 0> p8a; in Conversions()
214 posit<16, 1> p16; in Conversions()
215 posit<32, 2> p32; in Conversions()
219 p16 = posit<16, 1>(p8a); in Conversions()
220 p32 = posit<32, 2>(p8a); in Conversions()
[all …]
/dports/math/universal/universal-3.48/applications/complex/
H A Dcompute.cpp129posit<2, 0>> copysign(std::complex<sw::universal::posit<2, 0>> x, std::complex<sw::universal::posi… in copysign()
133posit<3, 0>> copysign(std::complex<sw::universal::posit<3, 0>> x, std::complex<sw::universal::posi… in copysign()
137posit<3, 1>> copysign(std::complex<sw::universal::posit<3, 1>> x, std::complex<sw::universal::posi… in copysign()
141posit<4, 0>> copysign(std::complex<sw::universal::posit<4, 0>> x, std::complex<sw::universal::posi… in copysign()
145posit<8, 0>> copysign(std::complex<sw::universal::posit<8, 0>> x, std::complex<sw::universal::posi… in copysign()
149posit<8, 1>> copysign(std::complex<sw::universal::posit<8, 1>> x, std::complex<sw::universal::posi… in copysign()
153posit<16, 1>> copysign(std::complex<sw::universal::posit<16, 1>> x, std::complex<sw::universal::po… in copysign()
157posit<32, 2>> copysign(std::complex<sw::universal::posit<32, 2>> x, std::complex<sw::universal::po… in copysign()
161posit<64, 3>> copysign(std::complex<sw::universal::posit<64, 3>> x, std::complex<sw::universal::po… in copysign()
165posit<128, 4>> copysign(std::complex<sw::universal::posit<128, 4>> x, std::complex<sw::universal:: in copysign()
[all …]
/dports/math/universal/universal-3.48/education/number/posit/
H A Dscales.cpp135 posit<3, 0> p3_0; in ReportPositScales()
136 posit<3, 1> p3_1; in ReportPositScales()
137 posit<3, 2> p3_2; in ReportPositScales()
138 posit<3, 3> p3_3; in ReportPositScales()
139 posit<3, 4> p3_4; in ReportPositScales()
140 posit<4, 0> p4_0; in ReportPositScales()
141 posit<4, 1> p4_1; in ReportPositScales()
142 posit<4, 2> p4_2; in ReportPositScales()
143 posit<4, 3> p4_3; in ReportPositScales()
144 posit<4, 4> p4_4; in ReportPositScales()
[all …]
/dports/math/universal/universal-3.48/tools/cmd/
H A Dplimits.cpp17 …std::cout << posit_tag << "min() : " << std::numeric_limits< posit<nbits, es> >::min()… in ReportNumericLimitsOfPosit()
18 …std::cout << posit_tag << "max() : " << std::numeric_limits< posit<nbits, es> >::max()… in ReportNumericLimitsOfPosit()
19 …std::cout << posit_tag << "lowest() : " << std::numeric_limits< posit<nbits, es> >::lowes… in ReportNumericLimitsOfPosit()
20 …std::cout << posit_tag << "epsilon() : " << std::numeric_limits< posit<nbits, es> >::epsil… in ReportNumericLimitsOfPosit()
22 …std::cout << posit_tag << "digits : " << std::numeric_limits< posit<nbits, es> >::digit… in ReportNumericLimitsOfPosit()
23 …std::cout << posit_tag << "digits10 : " << std::numeric_limits< posit<nbits, es> >::digit… in ReportNumericLimitsOfPosit()
25 …std::cout << posit_tag << "is_signed : " << std::numeric_limits< posit<nbits, es> >::is_si… in ReportNumericLimitsOfPosit()
26 …std::cout << posit_tag << "is_integer : " << std::numeric_limits< posit<nbits, es> >::is_in… in ReportNumericLimitsOfPosit()
27 …std::cout << posit_tag << "is_exact : " << std::numeric_limits< posit<nbits, es> >::is_ex… in ReportNumericLimitsOfPosit()
39 …std::cout << posit_tag << "is_iec559 : " << std::numeric_limits< posit<nbits, es> >::is_ie… in ReportNumericLimitsOfPosit()
[all …]
H A Dposit.cpp44 posit<8, 0> p8_0(ld); in main()
45 posit<8, 1> p8_1(ld); in main()
46 posit<8, 2> p8_2(ld); in main()
47 posit<8, 3> p8_3(ld); in main()
48 posit<16, 1> p16_1(ld); in main()
49 posit<16, 2> p16_2(ld); in main()
50 posit<16, 3> p16_3(ld); in main()
51 posit<24, 1> p24_1(ld); in main()
52 posit<24, 2> p24_2(ld); in main()
53 posit<24, 3> p24_3(ld); in main()
[all …]
/dports/math/universal/universal-3.48/c_api/shim/posit/
H A Dposit_c_api.cpp138 sw::universal::posit<nbits, es> b
143 static std::tuple<sw::universal::posit<nbits, es>,sw::universal::posit<nbits, es>> op(
145 sw::universal::posit<nbits, es> b
151 sw::universal::posit<nbits, es> a
157 op(sw::universal::posit<nbits, es> a, sw::universal::posit<nbits, es> b) __VA_ARGS__ \
161 public: static std::tuple<sw::universal::posit<nbits, es>,sw::universal::posit<nbits, es>> \
162 op(sw::universal::posit<nbits, es> a, sw::universal::posit<nbits, es> b) __VA_ARGS__ \
211 posit<nbits, es> pa(a); in from()
220 posit<nbits, es> x; in op22()
221 posit<nbits, es> y; in op22()
[all …]
/dports/math/universal/universal-3.48/applications/
H A DREADME.md8 Ginormous posit configurations
11 posit< 80,2> useed scale 4 minpos scale -312 maxpos scale 312
12 posit< 80,3> useed scale 8 minpos scale -624 maxpos scale 624
13 posit< 80,4> useed scale 16 minpos scale -1248 maxpos scale 1248
14 posit< 96,2> useed scale 4 minpos scale -376 maxpos scale 376
15 posit< 96,3> useed scale 8 minpos scale -752 maxpos scale 752
16 posit< 96,4> useed scale 16 minpos scale -1504 maxpos scale 1504
17 posit<112,2> useed scale 4 minpos scale -440 maxpos scale 440
18 posit<112,3> useed scale 8 minpos scale -880 maxpos scale 880
19 posit<112,4> useed scale 16 minpos scale -1760 maxpos scale 1760
[all …]
/dports/math/gismo/gismo-21.12.0/extensions/gsUnum/
H A DgsUnum.h10 typedef sw::unum::posit<256,5> posit_256_5;
11 typedef sw::unum::posit<128,4> posit_128_4;
12 typedef sw::unum::posit< 64,3> posit_64_3;
13 typedef sw::unum::posit< 32,2> posit_32_2;
14 typedef sw::unum::posit< 16,1> posit_16_1;
15 typedef sw::unum::posit< 8,1> posit_8_1;
16 typedef sw::unum::posit< 8,0> posit_8_0;
17 typedef sw::unum::posit< 4,0> posit_4_0;
18 typedef sw::unum::posit< 3,1> posit_3_1;
19 typedef sw::unum::posit< 3,0> posit_3_0;
[all …]

12345678910>>...31