Prusa Slicer 2.6.0
Loading...
Searching...
No Matches
agg::mul_one< Shift > Struct Template Reference

#include <src/agg/agg_basics.h>

Static Public Member Functions

static AGG_INLINE unsigned mul (unsigned a, unsigned b)
 

Detailed Description

template<unsigned Shift>
struct agg::mul_one< Shift >

Member Function Documentation

◆ mul()

template<unsigned Shift>
static AGG_INLINE unsigned agg::mul_one< Shift >::mul ( unsigned  a,
unsigned  b 
)
inlinestatic
230 {
231 unsigned q = a * b + (1 << (Shift-1));
232 return (q + (q >> Shift)) >> Shift;
233 }

The documentation for this struct was generated from the following file: