Rev 991 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 991 | Rev 1653 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
- | 29 | /** @addtogroup softint SoftInt |
|
- | 30 | * @brief Software implementation of basic arithmetic operations. |
|
- | 31 | * @{ |
|
- | 32 | */ |
|
- | 33 | /** |
|
- | 34 | * @file |
|
- | 35 | * SW implementation of 32 and 64 bit division and modulo. |
|
- | 36 | */ |
|
- | 37 | ||
29 | #include <division.h> |
38 | #include <division.h> |
30 | 39 | ||
31 | #define ABSVAL(x) ( (x) > 0 ? (x) : -(x)) |
40 | #define ABSVAL(x) ( (x) > 0 ? (x) : -(x)) |
32 | #define SGN(x) ( (x) >= 0 ? 1 : 0 ) |
41 | #define SGN(x) ( (x) >= 0 ? 1 : 0 ) |
33 | 42 | ||
Line 183... | Line 192... | ||
183 | unsigned long long __udivmoddi3(unsigned long long a, unsigned long long b, unsigned long long *c) |
192 | unsigned long long __udivmoddi3(unsigned long long a, unsigned long long b, unsigned long long *c) |
184 | { |
193 | { |
185 | return divandmod64(a, b, c); |
194 | return divandmod64(a, b, c); |
186 | } |
195 | } |
187 | 196 | ||
- | 197 | /** @} |
|
188 | 198 | */ |