Halide
FastIntegerDivide.h File Reference
#include "Buffer.h"
#include "Expr.h"

Go to the source code of this file.

Namespaces

 Halide
 This file defines the class FunctionDAG, which is our representation of a Halide pipeline, and contains methods to using Halide's bounds tools to query properties of it.
 
 Halide::IntegerDivideTable
 Built-in images used for fast_integer_divide below.
 

Functions

Buffer< uint8_tHalide::IntegerDivideTable::integer_divide_table_u8 ()
 
Buffer< uint8_tHalide::IntegerDivideTable::integer_divide_table_s8 ()
 
Buffer< uint16_tHalide::IntegerDivideTable::integer_divide_table_u16 ()
 
Buffer< uint16_tHalide::IntegerDivideTable::integer_divide_table_s16 ()
 
Buffer< uint32_tHalide::IntegerDivideTable::integer_divide_table_u32 ()
 
Buffer< uint32_tHalide::IntegerDivideTable::integer_divide_table_s32 ()
 
Expr Halide::fast_integer_divide (Expr numerator, Expr denominator)
 Integer division by small values can be done exactly as multiplies and shifts. More...
 
Expr Halide::fast_integer_modulo (Expr numerator, Expr denominator)
 Use the fast integer division tables to implement a modulo operation via the Euclidean identity: ab = a - (a/b)*b. More...