e0ab0ad85d
Rename COMPILE_ASSERT macro to RTC_COMPILE_ASSERT
...
This is needed to avoid name collision with some downstream projects.
BUG=b/37224347
TBR=henrika@webrtc.org
NOTRY=True
Review-Url: https://codereview.webrtc.org/2808343002
Cr-Commit-Position: refs/heads/master@{#17634}
2017-04-11 06:21:43 +00:00
729b21f97f
Add clz functions (Count number of Leading Zero bits), 32-and 64-bit variants
...
Using __builtin_clz on gcc/clang, and a fallback implementation
otherwise.
Also redefine WebRtcSpl_GetSizeInBits(x) as simply 32 - clz32(x).
BUG=chromium:601787
Review-Url: https://codereview.webrtc.org/2014023002
Cr-Commit-Position: refs/heads/master@{#13014}
2016-06-02 11:02:22 +00:00
d56d68cd27
system_wrappers: Fix include header guards.
...
This should have been a part of https://codereview.webrtc.org/1413333002/
The header guard PRESUBMIT rule is being enabled in
https://codereview.webrtc.org/1419203005 so things like this won't
happen in the future.
BUG=5095
NOTRY=True
Review URL: https://codereview.webrtc.org/1425693005
Cr-Commit-Position: refs/heads/master@{#10475}
2015-11-02 10:12:50 +00:00
98f53510b2
system_wrappers: rename interface -> include
...
BUG=webrtc:5095
R=tommi@webrtc.org
Review URL: https://codereview.webrtc.org/1413333002 .
Cr-Commit-Position: refs/heads/master@{#10438}
2015-10-28 17:17:50 +00:00