Reason for revert:
Breaks lots of downstream projects.
Original issue's description:
> Remove remains of webrtc/base
>
> All downstream code have been updated to the new location.
>
> In PRESUBMIT.py:
> * Remove webrtc/rtc_base from CPP_BLACKLIST
> * Add webrtc/rtc_base to LEGACY_API_DIRS
>
> Fix some duplicated paths in
> webrtc/modules/audio_processing/test/conversational_speech/BUILD.gn
>
> BUG=webrtc:7634
> TBR=kwiberg@webrtc.org
>
> Review-Url: https://codereview.webrtc.org/2973183002
> Cr-Commit-Position: refs/heads/master@{#18948}
> Committed:
9483b49baf
TBR=kwiberg@webrtc.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=webrtc:7634
Review-Url: https://codereview.webrtc.org/2976633002
Cr-Commit-Position: refs/heads/master@{#18949}
40 lines
1.6 KiB
C
40 lines
1.6 KiB
C
/*
|
|
* Copyright 2016 The WebRTC Project Authors. All rights reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
// This file defines six constexpr functions:
|
|
//
|
|
// rtc::SafeEq // ==
|
|
// rtc::SafeNe // !=
|
|
// rtc::SafeLt // <
|
|
// rtc::SafeLe // <=
|
|
// rtc::SafeGt // >
|
|
// rtc::SafeGe // >=
|
|
//
|
|
// They each accept two arguments of arbitrary types, and in almost all cases,
|
|
// they simply call the appropriate comparison operator. However, if both
|
|
// arguments are integers, they don't compare them using C++'s quirky rules,
|
|
// but instead adhere to the true mathematical definitions. It is as if the
|
|
// arguments were first converted to infinite-range signed integers, and then
|
|
// compared, although of course nothing expensive like that actually takes
|
|
// place. In practice, for signed/signed and unsigned/unsigned comparisons and
|
|
// some mixed-signed comparisons with a compile-time constant, the overhead is
|
|
// zero; in the remaining cases, it is just a few machine instructions (no
|
|
// branches).
|
|
|
|
#ifndef WEBRTC_BASE_SAFE_COMPARE_H_
|
|
#define WEBRTC_BASE_SAFE_COMPARE_H_
|
|
|
|
|
|
// This header is deprecated and is just left here temporarily during
|
|
// refactoring. See https://bugs.webrtc.org/7634 for more details.
|
|
#include "webrtc/rtc_base/safe_compare.h"
|
|
|
|
#endif // WEBRTC_BASE_SAFE_COMPARE_H_
|