Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 5a6a42f in mainline for boot/genarch/src/division.c


Ignore:
Timestamp:
2012-04-07T12:34:19Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
956a22c
Parents:
df955955
Message:

unify softint cstyle
add udivmodsi3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/genarch/src/division.c

    rdf955955 r5a6a42f  
    7373{
    7474        unsigned long long result;
    75         int steps = sizeof(unsigned long long) * 8; 
     75        int steps = sizeof(unsigned long long) * 8;
    7676       
    7777        *remainder = 0;
     
    104104
    105105/* 32bit integer division */
    106 int __divsi3(int a, int b) 
     106int __divsi3(int a, int b)
    107107{
    108108        unsigned int rem;
     
    116116
    117117/* 64bit integer division */
    118 long long __divdi3(long long a, long long b) 
     118long long __divdi3(long long a, long long b)
    119119{
    120120        unsigned long long rem;
     
    155155
    156156/* 64bit remainder of the signed division */
    157 long long __moddi3(long long a,long long b)
     157long long __moddi3(long long a, long long b)
    158158{
    159159        unsigned long long rem;
     
    183183}
    184184
     185unsigned int __udivmodsi3(unsigned int a, unsigned int b,
     186    unsigned int *c)
     187{
     188        return divandmod32(a, b, c);
     189}
     190
    185191unsigned long long __udivmoddi3(unsigned long long a, unsigned long long b,
    186192    unsigned long long *c)
Note: See TracChangeset for help on using the changeset viewer.