ICU-11633 remove U_ALIGN_CODE
X-SVN-Rev: 37369
This commit is contained in:
parent
fa38aa2c0b
commit
928da728d6
@ -249,26 +249,6 @@ typedef size_t uintptr_t;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/*===========================================================================*/
|
||||
/** @{ Code alignment */
|
||||
/*===========================================================================*/
|
||||
|
||||
/**
|
||||
* \def U_ALIGN_CODE
|
||||
* This is used to align code fragments to a specific byte boundary.
|
||||
* This is useful for getting consistent performance test results.
|
||||
* @internal
|
||||
*/
|
||||
#ifdef U_ALIGN_CODE
|
||||
/* Use the predefined value. */
|
||||
#elif defined(_MSC_VER) && defined(_M_IX86) && !defined(_MANAGED)
|
||||
# define U_ALIGN_CODE(boundarySize) __asm align boundarySize
|
||||
#else
|
||||
# define U_ALIGN_CODE(boundarySize)
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
||||
/*===========================================================================*/
|
||||
/** @{ Programs used by ICU code */
|
||||
/*===========================================================================*/
|
||||
|
@ -399,8 +399,6 @@ _Bocu1FromUnicodeWithOffsets(UConverterFromUnicodeArgs *pArgs,
|
||||
|
||||
int32_t sourceIndex, nextSourceIndex;
|
||||
|
||||
U_ALIGN_CODE(16)
|
||||
|
||||
/* set up the local pointers */
|
||||
cnv=pArgs->converter;
|
||||
source=pArgs->source;
|
||||
@ -1171,8 +1169,6 @@ _Bocu1ToUnicode(UConverterToUnicodeArgs *pArgs,
|
||||
int8_t byteIndex;
|
||||
uint8_t *bytes;
|
||||
|
||||
U_ALIGN_CODE(16)
|
||||
|
||||
/* set up the local pointers */
|
||||
cnv=pArgs->converter;
|
||||
source=(const uint8_t *)pArgs->source;
|
||||
|
@ -40,7 +40,6 @@ CollationCompare::compareUpToQuaternary(CollationIterator &left, CollationIterat
|
||||
UBool anyVariable = FALSE;
|
||||
|
||||
// Fetch CEs, compare primaries, store secondary & tertiary weights.
|
||||
U_ALIGN_CODE(16);
|
||||
for(;;) {
|
||||
// We fetch CEs until we get a non-ignorable primary or reach the end.
|
||||
uint32_t leftPrimary;
|
||||
|
@ -17,7 +17,6 @@
|
||||
#include "collationdata.h"
|
||||
#include "collationfastlatin.h"
|
||||
#include "collationsettings.h"
|
||||
#include "putilimp.h" // U_ALIGN_CODE
|
||||
#include "uassert.h"
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
@ -119,7 +118,6 @@ CollationFastLatin::compareUTF16(const uint16_t *table, const uint16_t *primarie
|
||||
options &= 0xffff; // needed for CollationSettings::getStrength() to work
|
||||
|
||||
// Check for supported characters, fetch mini CEs, and compare primaries.
|
||||
U_ALIGN_CODE(16);
|
||||
int32_t leftIndex = 0, rightIndex = 0;
|
||||
/**
|
||||
* Single mini CE or a pair.
|
||||
@ -456,7 +454,6 @@ CollationFastLatin::compareUTF8(const uint16_t *table, const uint16_t *primaries
|
||||
options &= 0xffff; // needed for CollationSettings::getStrength() to work
|
||||
|
||||
// Check for supported characters, fetch mini CEs, and compare primaries.
|
||||
U_ALIGN_CODE(16);
|
||||
int32_t leftIndex = 0, rightIndex = 0;
|
||||
/**
|
||||
* Single mini CE or a pair.
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 1996-2014, International Business Machines
|
||||
* Copyright (C) 1996-2015, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*******************************************************************************
|
||||
* file name: ucol.cpp
|
||||
@ -441,8 +441,6 @@ ucol_strcoll( const UCollator *coll,
|
||||
const UChar *target,
|
||||
int32_t targetLength)
|
||||
{
|
||||
U_ALIGN_CODE(16);
|
||||
|
||||
UTRACE_ENTRY(UTRACE_UCOL_STRCOLL);
|
||||
if (UTRACE_LEVEL(UTRACE_VERBOSE)) {
|
||||
UTRACE_DATA3(UTRACE_VERBOSE, "coll=%p, source=%p, target=%p", coll, source, target);
|
||||
@ -466,8 +464,6 @@ ucol_strcollUTF8(
|
||||
int32_t targetLength,
|
||||
UErrorCode *status)
|
||||
{
|
||||
U_ALIGN_CODE(16);
|
||||
|
||||
UTRACE_ENTRY(UTRACE_UCOL_STRCOLLUTF8);
|
||||
if (UTRACE_LEVEL(UTRACE_VERBOSE)) {
|
||||
UTRACE_DATA3(UTRACE_VERBOSE, "coll=%p, source=%p, target=%p", coll, source, target);
|
||||
|
Loading…
Reference in New Issue
Block a user