[Mono-bugs] [Bug 521692] New: some function in Mono.Simd.ArrayExtensions class are ignoring offset parameter

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jul 13 16:08:46 EDT 2009


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: mono-bugs at lists.ximian.com
        ReportedBy: salo3 at atlas.cz
         QAContact: mono-bugs at lists.ximian.com
          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.


More information about the mono-bugs mailing list