mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
AUTHORS and more copyright comments are redundant with CONTRIBUTORS.rst (#1227)
This commit is contained in:
6
src/extern/getopt.cpp
vendored
6
src/extern/getopt.cpp
vendored
@@ -1,8 +1,4 @@
|
||||
/*
|
||||
* Copyright (c) 2005-2020 Rich Felker, et al.
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
/* This implementation was taken from musl and modified for RGBDS */
|
||||
|
||||
|
||||
10
src/extern/utf8decoder.cpp
vendored
10
src/extern/utf8decoder.cpp
vendored
@@ -1,12 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2008-2009, Björn Höhrmann <bjoern@hoehrmann.de>
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
/*
|
||||
* UTF-8 decoder: http://bjoern.hoehrmann.de/utf-8/decoder/dfa/
|
||||
*/
|
||||
/* UTF-8 decoder: http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ */
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: MIT */
|
||||
|
||||
// Mathematical operators that don't reuse C's behavior
|
||||
// Mathematical operators that don't reuse C++'s behavior
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
@@ -74,7 +74,7 @@ int32_t op_shift_right(int32_t value, int32_t amount)
|
||||
// 1->0x80000000, 2->0xC0000000, ..., 31->0xFFFFFFFE
|
||||
uint32_t amount_high_bits = -(UINT32_C(1) << (32 - amount));
|
||||
|
||||
// The C standard leaves shifting right negative values
|
||||
// The C++ standard leaves shifting right negative values
|
||||
// undefined, so use a left shift manually sign-extended
|
||||
return ((uint32_t)value >> amount) | amount_high_bits;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user