You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2021/08/11 14:11:00 UTC

[jira] [Closed] (DAFFODIL-2473) Need bit-wise AND, OR, NOT, and shift operations

     [ https://issues.apache.org/jira/browse/DAFFODIL-2473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Thompson closed DAFFODIL-2473.
-----------------------------------

Verified the specified commits (commits ddd2e45dff42b862f60ed528fb2053f9dd8b3167 and fbe3ac1e05bb04b8f3dd00b88cbe2a40593fed67) are included in the latest pull from the daffodil repository.

Verified changes identified in commit comment were implemented.

Verified the all daffodil subproject sbt test suites execute successfully including the modified and added tests.

Verified the nightly test schemas compile and save successfully with the exception of the ATO and JSON schemas. These issues will be addressed in new JIRA tickets DAFFODIL-2551 and DAFFODIL-2552.

Verified the nightly test suite executes successfully with the exception of ATO and JSON tests.

> Need bit-wise AND, OR, NOT, and shift operations
> ------------------------------------------------
>
>                 Key: DAFFODIL-2473
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2473
>             Project: Daffodil
>          Issue Type: New Feature
>          Components: Back End, Front End
>    Affects Versions: 3.0.0
>            Reporter: Mike Beckerle
>            Assignee: Samarth Sah
>            Priority: Major
>             Fix For: 3.2.0
>
>
> There are a number of data representations DFDL cannot handle because it cannot manipulate numbers with sufficient flexibility in expressions.
> We need AND, OR, NOT, maybe XOR, and shift left, shift right, and probably arithmetic shift right (which does sign-extension of signed numbers). We should add functions for the whole set of them.
> On signed numbers with specific sizes (long, int, short, byte) these should behave as if the data was binary in 2s complement representation, i.e., as if the most-significant-bit was playing the role of 2s complement sign.
> These operations should all be undefined (Schema Def Error) on decimal, integer, and non-negative integer values, as well as float and double.
> Specifically, these operations are defined on long and its subtypes, and unsignedLong and its subtypes only.
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)