120 add = 0x3825490000000f00,
121 sub = 0x3825490000000f01,
122 mul = 0x3825490000000f02,
123 div = 0x3825490000000f03,
124 rem = 0x3825490000000f04,
142 im = 0x3825490000001100,
144 iM = 0x3825490000001101,
146 Im = 0x3825490000001102,
148 IM = 0x3825490000001103,
160 ahff = 0x3825490000001200,
162 ahfF = 0x3825490000001201,
164 ahFf = 0x3825490000001202,
166 ahFF = 0x3825490000001203,
167 aHff = 0x3825490000001204,
170 aHfF = 0x3825490000001205,
172 aHFf = 0x3825490000001206,
174 aHFF = 0x3825490000001207,
175 Ahff = 0x3825490000001208,
178 AhfF = 0x3825490000001209,
180 AhFf = 0x382549000000120a,
182 AhFF = 0x382549000000120b,
183 AHff = 0x382549000000120c,
185 AHfF = 0x382549000000120d,
187 AHFf = 0x382549000000120e,
189 AHFF = 0x382549000000120f,
208 sq = 0x3825490000001400,
209 cb = 0x3825490000001401,
220 lbb = 0x3825490000001500,
222 lbB = 0x3825490000001501,
225 lBb = 0x3825490000001502,
228 lBB = 0x3825490000001503,
229 Lbb = 0x3825490000001504,
231 LbB = 0x3825490000001505,
233 LBb = 0x3825490000001506,
235 LBB = 0x3825490000001507,
246 f = 0x3825490000001600,
247 fc = 0x3825490000001601,
258 t = 0x3825490000001700,
259 l = 0x3825490000001701,
278 f = 0x3825490000001900,
279 c = 0x3825490000001901,
280 r = 0x3825490000001902,
281 t = 0x3825490000001903,
292 ugle = 0x3825490000001a00,
294 uglE = 0x3825490000001a01,
296 ugLe = 0x3825490000001a02,
298 ugLE = 0x3825490000001a03,
300 uGle = 0x3825490000001a04,
302 uGlE = 0x3825490000001a05,
304 uGLe = 0x3825490000001a06,
306 uGLE = 0x3825490000001a07,
308 Ugle = 0x3825490000001a08,
310 UglE = 0x3825490000001a09,
312 UgLe = 0x3825490000001a0a,
314 UgLE = 0x3825490000001a0b,
316 UGle = 0x3825490000001a0c,
318 UGlE = 0x3825490000001a0d,
320 UGLe = 0x3825490000001a0e,
322 UGLE = 0x3825490000001a0f,
334 s2f = 0x3825490000001b00,
335 u2f = 0x3825490000001b01,
336 f2s = 0x3825490000001b02,
337 f2u = 0x3825490000001b03,
338 f2f = 0x3825490000001b04,
369#define MIM_math_NORMALIZER_IMPL \
370 void register_normalizers(Normalizers& normalizers) {\
371 normalizers[flags_t(arith::add)] = &normalize_arith<arith::add>; \
372 normalizers[flags_t(arith::sub)] = &normalize_arith<arith::sub>; \
373 normalizers[flags_t(arith::mul)] = &normalize_arith<arith::mul>; \
374 normalizers[flags_t(arith::div)] = &normalize_arith<arith::div>; \
375 normalizers[flags_t(arith::rem)] = &normalize_arith<arith::rem>; \
376 normalizers[flags_t(extrema::im)] = &normalize_extrema<extrema::im>; \
377 normalizers[flags_t(extrema::iM)] = &normalize_extrema<extrema::iM>; \
378 normalizers[flags_t(extrema::Im)] = &normalize_extrema<extrema::Im>; \
379 normalizers[flags_t(extrema::IM)] = &normalize_extrema<extrema::IM>; \
380 normalizers[flags_t(tri::ahff)] = &normalize_tri<tri::ahff>; \
381 normalizers[flags_t(tri::ahfF)] = &normalize_tri<tri::ahfF>; \
382 normalizers[flags_t(tri::ahFf)] = &normalize_tri<tri::ahFf>; \
383 normalizers[flags_t(tri::ahFF)] = &normalize_tri<tri::ahFF>; \
384 normalizers[flags_t(tri::aHff)] = &normalize_tri<tri::aHff>; \
385 normalizers[flags_t(tri::aHfF)] = &normalize_tri<tri::aHfF>; \
386 normalizers[flags_t(tri::aHFf)] = &normalize_tri<tri::aHFf>; \
387 normalizers[flags_t(tri::aHFF)] = &normalize_tri<tri::aHFF>; \
388 normalizers[flags_t(tri::Ahff)] = &normalize_tri<tri::Ahff>; \
389 normalizers[flags_t(tri::AhfF)] = &normalize_tri<tri::AhfF>; \
390 normalizers[flags_t(tri::AhFf)] = &normalize_tri<tri::AhFf>; \
391 normalizers[flags_t(tri::AhFF)] = &normalize_tri<tri::AhFF>; \
392 normalizers[flags_t(tri::AHff)] = &normalize_tri<tri::AHff>; \
393 normalizers[flags_t(tri::AHfF)] = &normalize_tri<tri::AHfF>; \
394 normalizers[flags_t(tri::AHFf)] = &normalize_tri<tri::AHFf>; \
395 normalizers[flags_t(tri::AHFF)] = &normalize_tri<tri::AHFF>; \
396 normalizers[flags_t(Annex::Base<pow>)] = &normalize_pow; \
397 normalizers[flags_t(rt::sq)] = &normalize_rt<rt::sq>; \
398 normalizers[flags_t(rt::cb)] = &normalize_rt<rt::cb>; \
399 normalizers[flags_t(exp::lbb)] = &normalize_exp<exp::lbb>; \
400 normalizers[flags_t(exp::lbB)] = &normalize_exp<exp::lbB>; \
401 normalizers[flags_t(exp::lBb)] = &normalize_exp<exp::lBb>; \
402 normalizers[flags_t(exp::lBB)] = &normalize_exp<exp::lBB>; \
403 normalizers[flags_t(exp::Lbb)] = &normalize_exp<exp::Lbb>; \
404 normalizers[flags_t(exp::LbB)] = &normalize_exp<exp::LbB>; \
405 normalizers[flags_t(exp::LBb)] = &normalize_exp<exp::LBb>; \
406 normalizers[flags_t(exp::LBB)] = &normalize_exp<exp::LBB>; \
407 normalizers[flags_t(er::f)] = &normalize_er<er::f>; \
408 normalizers[flags_t(er::fc)] = &normalize_er<er::fc>; \
409 normalizers[flags_t(gamma::t)] = &normalize_gamma<gamma::t>; \
410 normalizers[flags_t(gamma::l)] = &normalize_gamma<gamma::l>; \
411 normalizers[flags_t(Annex::Base<abs>)] = &normalize_abs; \
412 normalizers[flags_t(round::f)] = &normalize_round<round::f>; \
413 normalizers[flags_t(round::c)] = &normalize_round<round::c>; \
414 normalizers[flags_t(round::r)] = &normalize_round<round::r>; \
415 normalizers[flags_t(round::t)] = &normalize_round<round::t>; \
416 normalizers[flags_t(cmp::ugle)] = &normalize_cmp<cmp::ugle>; \
417 normalizers[flags_t(cmp::uglE)] = &normalize_cmp<cmp::uglE>; \
418 normalizers[flags_t(cmp::ugLe)] = &normalize_cmp<cmp::ugLe>; \
419 normalizers[flags_t(cmp::ugLE)] = &normalize_cmp<cmp::ugLE>; \
420 normalizers[flags_t(cmp::uGle)] = &normalize_cmp<cmp::uGle>; \
421 normalizers[flags_t(cmp::uGlE)] = &normalize_cmp<cmp::uGlE>; \
422 normalizers[flags_t(cmp::uGLe)] = &normalize_cmp<cmp::uGLe>; \
423 normalizers[flags_t(cmp::uGLE)] = &normalize_cmp<cmp::uGLE>; \
424 normalizers[flags_t(cmp::Ugle)] = &normalize_cmp<cmp::Ugle>; \
425 normalizers[flags_t(cmp::UglE)] = &normalize_cmp<cmp::UglE>; \
426 normalizers[flags_t(cmp::UgLe)] = &normalize_cmp<cmp::UgLe>; \
427 normalizers[flags_t(cmp::UgLE)] = &normalize_cmp<cmp::UgLE>; \
428 normalizers[flags_t(cmp::UGle)] = &normalize_cmp<cmp::UGle>; \
429 normalizers[flags_t(cmp::UGlE)] = &normalize_cmp<cmp::UGlE>; \
430 normalizers[flags_t(cmp::UGLe)] = &normalize_cmp<cmp::UGLe>; \
431 normalizers[flags_t(cmp::UGLE)] = &normalize_cmp<cmp::UGLE>; \
432 normalizers[flags_t(conv::s2f)] = &normalize_conv<conv::s2f>; \
433 normalizers[flags_t(conv::u2f)] = &normalize_conv<conv::u2f>; \
434 normalizers[flags_t(conv::f2s)] = &normalize_conv<conv::f2s>; \
435 normalizers[flags_t(conv::f2u)] = &normalize_conv<conv::f2u>; \
436 normalizers[flags_t(conv::f2f)] = &normalize_conv<conv::f2f>; \
529template<>
struct fe::is_bit_enum<
mim::plug::math::arith> : std::true_type {};
530template<>
struct fe::is_bit_enum<
mim::plug::math::extrema> : std::true_type {};
531template<>
struct fe::is_bit_enum<
mim::plug::math::tri> : std::true_type {};
532template<>
struct fe::is_bit_enum<
mim::plug::math::rt> : std::true_type {};
533template<>
struct fe::is_bit_enum<
mim::plug::math::exp> : std::true_type {};
534template<>
struct fe::is_bit_enum<
mim::plug::math::er> : std::true_type {};
535template<>
struct fe::is_bit_enum<
mim::plug::math::gamma> : std::true_type {};
536template<>
struct fe::is_bit_enum<
mim::plug::math::round> : std::true_type {};
537template<>
struct fe::is_bit_enum<
mim::plug::math::cmp> : std::true_type {};
538template<>
struct fe::is_bit_enum<
mim::plug::math::conv> : std::true_type {};
Helper class to retrieve Infer::arg if present.
static constexpr plugin_t Plugin_Id
Ref normalize_rt(Ref type, Ref c, Ref arg)
Ref normalize_abs(Ref type, Ref c, Ref arg)
Ref normalize_exp(Ref type, Ref c, Ref arg)
Ref normalize_tri(Ref type, Ref c, Ref arg)
Ref normalize_conv(Ref dst_t, Ref c, Ref x)
Ref normalize_extrema(Ref type, Ref c, Ref arg)
Ref normalize_er(Ref type, Ref c, Ref arg)
void register_normalizers(Normalizers &normalizers)
Ref normalize_round(Ref type, Ref c, Ref arg)
Ref normalize_arith(Ref type, Ref c, Ref arg)
Ref normalize_gamma(Ref type, Ref c, Ref arg)
Ref normalize_cmp(Ref type, Ref c, Ref arg)
Ref normalize_pow(Ref type, Ref c, Ref arg)
absl::flat_hash_map< flags_t, NormalizeFn > Normalizers
static constexpr size_t Num
static constexpr flags_t Base