diff options
author | dotnet-bot <dotnet-bot@microsoft.com> | 2015-01-30 14:14:42 -0800 |
---|---|---|
committer | dotnet-bot <dotnet-bot@microsoft.com> | 2015-01-30 14:14:42 -0800 |
commit | ef1e2ab328087c61a6878c1e84f4fc5d710aebce (patch) | |
tree | dee1bbb89e9d722e16b0d1485e3cdd1b6c8e2cfa /src/inc/intrinsic.h | |
download | coreclr-ef1e2ab328087c61a6878c1e84f4fc5d710aebce.tar.gz coreclr-ef1e2ab328087c61a6878c1e84f4fc5d710aebce.tar.bz2 coreclr-ef1e2ab328087c61a6878c1e84f4fc5d710aebce.zip |
Initial commit to populate CoreCLR repo
[tfs-changeset: 1407945]
Diffstat (limited to 'src/inc/intrinsic.h')
-rw-r--r-- | src/inc/intrinsic.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/inc/intrinsic.h b/src/inc/intrinsic.h new file mode 100644 index 0000000000..361639d702 --- /dev/null +++ b/src/inc/intrinsic.h @@ -0,0 +1,26 @@ +// +// Copyright (c) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE file in the project root for full license information. +// +//***************************************************************************** +// Intrinsic.h +// +// Force several very useful functions to be intrinsic, which means that the +// compiler will generate code inline for the functions instead of generating +// a call to the function. +// +//***************************************************************************** + +#ifndef __intrinsic_h__ +#define __intrinsic_h__ + +#ifdef _MSC_VER +#pragma intrinsic(memcmp) +#pragma intrinsic(memcpy) +#pragma intrinsic(memset) +#pragma intrinsic(strcmp) +#pragma intrinsic(strcpy) +#pragma intrinsic(strlen) +#endif // defined(_MSC_VER) + +#endif // __intrinsic_h__ |