Changeset View
Changeset View
Standalone View
Standalone View
extern/draco/draco/src/draco/core/divide.h
- This file was moved from extern/draco/dracoenc/src/draco/core/divide.h.
| Show All 13 Lines | |||||
| // | // | ||||
| #ifndef DRACO_CORE_DIVIDE_H_ | #ifndef DRACO_CORE_DIVIDE_H_ | ||||
| #define DRACO_CORE_DIVIDE_H_ | #define DRACO_CORE_DIVIDE_H_ | ||||
| // An implementation of the divide by multiply algorithm | // An implementation of the divide by multiply algorithm | ||||
| // https://gmplib.org/~tege/divcnst-pldi94.pdf | // https://gmplib.org/~tege/divcnst-pldi94.pdf | ||||
| // This file is based off libvpx's divide.h. | // This file is based off libvpx's divide.h. | ||||
| #include <stdint.h> | #include <stdint.h> | ||||
| #include <climits> | #include <climits> | ||||
| namespace draco { | namespace draco { | ||||
| struct fastdiv_elem { | struct fastdiv_elem { | ||||
| unsigned mult; | unsigned mult; | ||||
| unsigned shift; | unsigned shift; | ||||
| }; | }; | ||||
| Show All 12 Lines | |||||