http://bugzilla.novell.com/show_bug.cgi?id=521692


           Summary: some function in Mono.Simd.ArrayExtensions class are
                    ignoring offset parameter
    Classification: Mono
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---


Description of Problem:

The following function are ignoring offset parameter and returning vector from
offset 0:

public static Vector8s GetVector (this short[] array, int offset)
public static Vector8us GetVector (this ushort[] array, int offset)
public static Vector16sb GetVector (this sbyte[] array, int offset)
public static Vector16b GetVector (this byte[] array, int offset)
public static Vector8s GetVectorAligned (this short[] array, int offset)
public static Vector8us GetVectorAligned (this ushort[] array, int offset)
public static Vector16sb GetVectorAligned (this sbyte[] array, int offset)
public static Vector16b GetVectorAligned (this byte[] array, int offset)


Actual Results:

vector from offset 0


Expected Results:

vector from offset parameter


Additional Information:

fix the line :
     fixed (void *ptr = &array[0]) {
to:
     fixed (void *ptr = &array[offset]) {

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to