Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2473

Need bit-wise AND, OR, NOT, and shift operations

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.2.0
    • Back End, Front End
    • None

    Description

      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.

       

       

       

      Attachments

        Activity

          People

            Samarth08 Samarth Sah
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: