diff options
author | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2014-08-27 09:51:01 +0000 |
---|---|---|
committer | xleroy <xleroy@fca1b0fc-160b-0410-b1d3-a4f43f01ea2e> | 2014-08-27 09:51:01 +0000 |
commit | 9ee09b9b2cb498219bd8012bed69ecf63fce63a4 (patch) | |
tree | 4b88da989f9545a80ee5fe6bcc1118a23c84d2d5 /ia32/CBuiltins.ml | |
parent | 1abecb7b559c5e0eab8c093a629fd8197f57205f (diff) | |
download | compcert-9ee09b9b2cb498219bd8012bed69ecf63fce63a4.tar.gz compcert-9ee09b9b2cb498219bd8012bed69ecf63fce63a4.zip |
Rename __builtin_cntlz to __builtin_clz.
IA32: add __builtin_clz, __builtin_ctz.
git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@2619 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e
Diffstat (limited to 'ia32/CBuiltins.ml')
-rw-r--r-- | ia32/CBuiltins.ml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ia32/CBuiltins.ml b/ia32/CBuiltins.ml index 60461260..765f5b18 100644 --- a/ia32/CBuiltins.ml +++ b/ia32/CBuiltins.ml @@ -29,6 +29,10 @@ let builtins = { (TInt(IUInt, []), [TInt(IUInt, [])], false); "__builtin_bswap16", (TInt(IUShort, []), [TInt(IUShort, [])], false); + "__builtin_clz", + (TInt(IUInt, []), [TInt(IUInt, [])], false); + "__builtin_ctz", + (TInt(IUInt, []), [TInt(IUInt, [])], false); (* Float arithmetic *) "__builtin_fsqrt", (TFloat(FDouble, []), [TFloat(FDouble, [])], false); |