Forum | Documentation | Website | Blog

Skip to content
  • coderJeff's avatar
    fbc: x86_64: optimize SHL MOD INTDIV to use 32-bit operands · d7c91fd1
    coderJeff authored
    - optimize SHL MOD INTDIV to use 32-bit operation when result will be converted to U|LONG
    - convert 'clng(cint(a<32>) BOP<64> cint(b<32>))' to 'a<32> BOP<32> b<32>'
    
    For example:
        dim as ulong a, b
        var x = a \ b         '' same as before, a & b promoted to integer, returns integer
        var y = culng(a \ b)  '' optimized to use 32-bit division, return ulong
    
    - use this optimization for conversion to U|BYTE and U|SHORT results also
    - enabled for x86_64 targets only
    
    - code clean-up of previous commit; compare data type sizes instead of specific data types
    d7c91fd1
To find the state of this project's repository at the time of any of these versions, check out the tags.
Loading