Skip to content

Commit

Permalink
fix: add overflow behavior to integer division (#223)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The signature of divide functions for multiple types now specify an enumeration prior to specifying operands.
  • Loading branch information
westonpace authored Jul 12, 2022
1 parent 5a318ea commit cf552d7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions extensions/functions_arithmetic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,26 @@ scalar_functions:
description: "Divide one value by another. Partial values are truncated."
impls:
- args:
- options: [ SILENT, SATURATE, ERROR ]
required: false
- value: i8
- value: i8
return: i8
- args:
- options: [ SILENT, SATURATE, ERROR ]
required: false
- value: i16
- value: i16
return: i16
- args:
- options: [ SILENT, SATURATE, ERROR ]
required: false
- value: i32
- value: i32
return: i32
- args:
- options: [ SILENT, SATURATE, ERROR ]
required: false
- value: i64
- value: i64
return: i64
Expand Down

0 comments on commit cf552d7

Please sign in to comment.