Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-317

Support bitwise OR in groovy.util.Bitwise

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-4
    • 1.0-beta-5
    • None
    • None

    Description

      Support for bitwise or'ing

      Index: src/main/groovy/util/Bitwise.java
      ===================================================================
      RCS file: /scm/cvspublic/groovy/groovy-core/src/main/groovy/util/Bitwise.java,v
      retrieving revision 1.1
      diff -u -r1.1 Bitwise.java
      — src/main/groovy/util/Bitwise.java 9 Oct 2003 17:24:19 -0000 1.1
      +++ src/main/groovy/util/Bitwise.java 24 Mar 2004 21:29:37 -0000
      @@ -13,5 +13,19 @@
      */
      public class Bitwise
      {
      -
      + public static int or(int one, int two)

      { + return one | two; + }

      +
      + public static int or(int one, int two, int three)

      { + return one | two | three; + }

      +
      + public static int or(int one, int two, int three, int four)

      { + return one | two | three | four; + }

      +
      + public static int or(int one, int two, int three, int four, int five)

      { + return one | two | three | four | five; + }

      }

      Attachments

        1. or.patch
          0.9 kB
          Brian McCallister

        Activity

          People

            Unassigned Unassigned
            brianm Brian McCallister
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: