Back to index

lightning-sunbird  0.9+nobinonly
nsUInt32Array.cpp File Reference
#include "msgCore.h"
#include "prlog.h"
#include "MailNewsTypes.h"
#include "nsUInt32Array.h"
#include "nsQuickSort.h"

Go to the source code of this file.


static int PR_CALLBACK CompareDWord (const void *v1, const void *v2, void *)

Function Documentation

static int PR_CALLBACK CompareDWord ( const void v1,
const void v2,
) [static]

Definition at line 321 of file nsUInt32Array.cpp.

  // QuickSort callback to compare array values
  PRUint32 i1 = *(PRUint32 *)v1;
  PRUint32 i2 = *(PRUint32 *)v2;
  return i1 < i2 ? -1 : (i1 == i2 ? 0 : 1);