Searched refs:half_period (Results 1 – 8 of 8) sorted by relevance
38 static inline CoordinateType half_period() in half_period() function75 static inline CoordinateType half_period() in half_period() function111 math::mod(value + constants::half_period(), constants::period()) in normalize_up()112 - constants::half_period(); in normalize_up()118 math::mod(value - constants::half_period(), constants::period()) in normalize_down()119 + constants::half_period(); in normalize_down()126 if (math::equals(math::abs(longitude), constants::half_period())) in apply()128 longitude = constants::half_period(); in apply()130 else if (longitude > constants::half_period()) in apply()133 if (math::equals(longitude, -constants::half_period())) in apply()[all …]
57 int half_period; in __i2c_set_bus_speed() local64 half_period = (get_periph_clk_rate() / speed) / 2; in __i2c_set_bus_speed()65 if (half_period > 0xFF) in __i2c_set_bus_speed()68 half_period = (get_hclk_clk_rate() / speed) / 2; in __i2c_set_bus_speed()69 if (half_period > 0x3FF) in __i2c_set_bus_speed()73 writel(half_period, &base->clk_hi); in __i2c_set_bus_speed()74 writel(half_period, &base->clk_lo); in __i2c_set_bus_speed()
51 return constants::half_period() / CalculationType(180); in apply()156 calc_t const pi = constants::half_period(); in apply()180 calc_t s1x_anti = s1x + constants::half_period(); in apply()
115 if (math::larger(lon_max - lon_min, constants::half_period())) in apply()
168 if (math::larger(lon_max - lon_min, Constants::half_period())) in get_min_max_longitudes()
124 return math::abs(lon1 - lon2) > constants::half_period(); // > pi in crosses_antimeridian()
127 calc_t const pi = constants::half_period(); in apply()
303 coord_type const pi_2 = constants::half_period() / 2; in polar_to_equatorial()