Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

btree_utils_num.h

Blame
    • Andres Freund's avatar
      101c7ee3
      Use new overflow aware integer operations. · 101c7ee3
      Andres Freund authored
      A previous commit added inline functions that provide fast(er) and
      correct overflow checks for signed integer math. Use them in a
      significant portion of backend code.  There's more to touch in both
      backend and frontend code, but these were the easily identifiable
      cases.
      
      The old overflow checks are noticeable in integer heavy workloads.
      
      A secondary benefit is that getting rid of overflow checks that rely
      on signed integer overflow wrapping around, will allow us to get rid
      of -fwrapv in the future. Which in turn slows down other code.
      
      Author: Andres Freund
      Discussion: https://postgr.es/m/20171024103954.ztmatprlglz3rwke@alap3.anarazel.de
      101c7ee3
      History
      Use new overflow aware integer operations.
      Andres Freund authored
      A previous commit added inline functions that provide fast(er) and
      correct overflow checks for signed integer math. Use them in a
      significant portion of backend code.  There's more to touch in both
      backend and frontend code, but these were the easily identifiable
      cases.
      
      The old overflow checks are noticeable in integer heavy workloads.
      
      A secondary benefit is that getting rid of overflow checks that rely
      on signed integer overflow wrapping around, will allow us to get rid
      of -fwrapv in the future. Which in turn slows down other code.
      
      Author: Andres Freund
      Discussion: https://postgr.es/m/20171024103954.ztmatprlglz3rwke@alap3.anarazel.de