Skip to content

Commit 616cf53

Browse files
committed
Revert "add relevant BSD license of libvpx"
This reverts commit 386b401.
1 parent 386b401 commit 616cf53

File tree

2 files changed

+4
-47
lines changed

2 files changed

+4
-47
lines changed

content/learning-paths/cross-platform/integer-vs-floats/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
title: Integer and floating-point conversions
33

4+
draft: true
5+
46
minutes_to_complete: 30
57

68
who_is_this_for: This is an advanced topic for C/C++ developers who are interested in learning the intricacies of conversions between floating-point numbers and integers.

content/learning-paths/cross-platform/integer-vs-floats/integer-float-conversions.md

Lines changed: 2 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,9 @@ Below is an example taken from the [libvpx project](https://github.com/webmproje
2020

2121
It shows a function to generate an image using auto generated noise from a gaussian distribution function.
2222

23-
The code is shown for illustration only, do not try to build or run it. The relevant BSD license of the libvpx library is appended at the end of this page.
23+
The code is shown for illustration only, do not try to build or run it.
2424

2525
```C
26-
/*
27-
* Copyright (c) 2015 The WebM project authors. All Rights Reserved.
28-
*
29-
* Use of this source code is governed by a BSD-style license
30-
* that can be found in the LICENSE file in the root of the source
31-
* tree. An additional intellectual property rights grant can be found
32-
* in the file PATENTS. All contributing project authors may
33-
* be found in the AUTHORS file in the root of the source tree.
34-
*/
35-
3626
static double gaussian(double sigma, double mu, double x) {
3727
return 1 / (sigma * sqrt(2.0 * 3.14159265)) *
3828
(exp(-(x - mu) * (x - mu) / (2 * sigma * sigma)));
@@ -304,39 +294,4 @@ Here is a list of the possible conversions:
304294
(`*`) Target range is limited and there might be truncation involved
305295
(`**`) depends on hardware support
306296

307-
In the next section you will learn more about the potential issues in floating-point conversions.
308-
309-
## libvpx LICENSE
310-
311-
```
312-
Copyright (c) 2010, The WebM Project authors. All rights reserved.
313-
314-
Redistribution and use in source and binary forms, with or without
315-
modification, are permitted provided that the following conditions are
316-
met:
317-
318-
* Redistributions of source code must retain the above copyright
319-
notice, this list of conditions and the following disclaimer.
320-
321-
* Redistributions in binary form must reproduce the above copyright
322-
notice, this list of conditions and the following disclaimer in
323-
the documentation and/or other materials provided with the
324-
distribution.
325-
326-
* Neither the name of Google, nor the WebM Project, nor the names
327-
of its contributors may be used to endorse or promote products
328-
derived from this software without specific prior written
329-
permission.
330-
331-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
332-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
333-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
334-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
335-
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
336-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
337-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
338-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
339-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
340-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
341-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
342-
```
297+
In the next section you will learn more about the potential issues in floating-point conversions.

0 commit comments

Comments
 (0)