Public Types

mln::metal::math::impl::root< n, x, lo, hi > Struct Template Reference

#include <root.hh>

List of all members.

Public Types

enum  {
  mid = (lo + hi + 1) / 2, val_lo = root<n, x, lo,
  value = x < mlc_pow_int(mid, n) ? val_lo : val_hi, val_hi = root<n, x, mid = (lo + hi + 1) / 2,
  value = x < mlc_pow_int(mid, n) ? val_lo : val_hi
}
enum  { value = x < mlc_pow_int(mid, n) ? val_lo : val_hi }

Detailed Description

template<unsigned n, unsigned x, unsigned lo = 1, unsigned hi = x>
struct mln::metal::math::impl::root< n, x, lo, hi >

Definition at line 56 of file root.hh.


Member Enumeration Documentation

template<unsigned n, unsigned x, unsigned lo = 1, unsigned hi = x>
anonymous enum
Enumerator:
mid 
val_lo 
x 
lo 
value 
val_hi 
x 
mid 
value 

Definition at line 58 of file root.hh.

template<unsigned n, unsigned x, unsigned lo = 1, unsigned hi = x>
anonymous enum
Enumerator:
value 

Definition at line 63 of file root.hh.