OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr34312.c] - Rev 378

Go to most recent revision | Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-require-effective-target fpic } */
/* { dg-options "-O2 -march=pentium-m -fpic" } */
 
typedef struct
{
  unsigned char seq[3];
} JamoNormMap;
 
static const JamoNormMap *
JamoClusterSearch (JamoNormMap aKey, const JamoNormMap * aClusters,
		   short aClustersSize)
{
  unsigned short l = 0, u = aClustersSize - 1;
  unsigned short h = (l + u) / 2;
 
  if ((aKey.seq[1] - aClusters[h].seq[1]) < 0)
    return JamoClusterSearch (aKey, &(aClusters[l]), h - l);
}
 
short
JamoSrchReplace (const JamoNormMap * aClusters, unsigned short aClustersSize,
		 unsigned short * aIn, unsigned int * aLength,
		 unsigned short aOffset)
{
  JamoNormMap key;
 
  key.seq[0] = 0;
  key.seq[1] = 1;
  key.seq[2] = 2;
 
  JamoClusterSearch (key, aClusters, aClustersSize);
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.