Ticket #65875: patch-src-base-low-cl_low_div.cc.diff

File patch-src-base-low-cl_low_div.cc.diff, 929 bytes (added by Schamschula (Marius Schamschula), 20 months ago)
  • src/base/low/cl_low_div.cc

    old new  
    1010// Implementation.
    1111
    1212#ifdef NEED_VAR_divu_16_rest
    13 uint16 divu_16_rest;
     13extern "C" uint16 divu_16_rest;
    1414#endif
    1515
    1616#ifdef NEED_FUNCTION_divu_3216_1616_
    17 uint16 divu_16_rest;
     17extern "C" uint16 divu_16_rest;
    1818namespace cln {
    1919#if 1
    2020// Most processors have a good 32 by 32 bit division, use that.
     
    101101#endif
    102102
    103103#ifdef NEED_VAR_divu_32_rest
    104 uint32 divu_32_rest;
     104extern "C" uint32 divu_32_rest;
    105105#endif
    106106
    107107#ifdef NEED_FUNCTION_divu_6432_3232_
    108 uint32 divu_32_rest;
     108extern "C" uint32 divu_32_rest;
    109109namespace cln {
    110110uint32 divu_6432_3232_(uint32 xhi, uint32 xlo, uint32 y)
    111111// Methode:
     
    207207#endif
    208208
    209209#ifdef NEED_VAR_divu_64_rest
    210 uint64 divu_64_rest;
     210extern "C" uint64 divu_64_rest;
    211211#endif
    212212
    213213#ifdef NEED_FUNCTION_divu_6464_6464_