[FORMATTING][NTOS][HAL][DRIVERS][SDK] Fix trailing spaces

This commit is contained in:
Victor Perevertkin 2021-06-11 15:29:21 +03:00
parent 4b4ffa92f5
commit 34593d933b
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
952 changed files with 12942 additions and 12942 deletions

View file

@ -29,7 +29,7 @@
#include <crtdefs.h>
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \
|| !defined __STRICT_ANSI__
|| !defined __STRICT_ANSI__
/* These macros are specified by C99 standard */
@ -46,7 +46,7 @@
#ifdef __cplusplus
extern "C" {
#endif
#endif
#ifndef RC_INVOKED
@ -201,7 +201,7 @@ __CRT_INLINE long double cargl (long double _Complex _Z)
#ifdef __cplusplus
}
#endif
#endif
#endif /* __STDC_VERSION__ >= 199901L */

View file

@ -133,7 +133,7 @@ extern "C" {
#define _RPTF0(rptno,msg)
#define _RPTFN(rptno,msg,...)
#define _RPTFW0(rptno,msg)
#define _RPTFWN(rptno,msg,...)
@ -170,7 +170,7 @@ extern "C" {
#define _RPTF0(rptno,msg) _RPT_BASE(rptno, __FILE__, __LINE__, NULL, "%s", msg)
#define _RPTFN(rptno,msg,...) _RPT_BASE(rptno, __FILE__, __LINE__, NULL, msg, __VA_ARGS__)
#define _RPTFW0(rptno,msg) _RPT_BASEW(rptno, _CRT_WIDE(__FILE__), __LINE__, NULL, L"%s", msg)
#define _RPTFWN(rptno,msg,...) _RPT_BASEW(rptno, _CRT_WIDE(__FILE__), __LINE__, NULL, msg, __VA_ARGS__)

View file

@ -49,12 +49,12 @@ typedef struct
unsigned short __status_word;
unsigned short __unused1;
unsigned short __tag_word;
unsigned short __unused2;
unsigned short __unused2;
unsigned int __ip_offset; /* instruction pointer offset */
unsigned short __ip_selector;
unsigned short __ip_selector;
unsigned short __opcode;
unsigned int __data_offset;
unsigned short __data_selector;
unsigned short __data_selector;
unsigned short __unused3;
unsigned int __mxcsr; /* contents of the MXCSR register */
} fenv_t;
@ -62,7 +62,7 @@ typedef struct
/*The C99 standard (7.6.9) allows us to define implementation-specific macros for
different fp environments */
/* The default Intel x87 floating point environment (64-bit mantissa) */
#define FE_PC64_ENV ((const fenv_t *)-1)

View file

@ -25,7 +25,7 @@ typedef struct {
#if !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS)
/* 7.8.1 Macros for format specifiers
*
*
* MS runtime does not yet understand C9x standard "ll"
* length specifier. It appears to treat "ll" as "l".
* The non-standard I64 length specifier causes warning in GCC,
@ -245,7 +245,7 @@ typedef struct {
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/*
* no length modifier for char types prior to C9x
* MS runtime scanf appears to treat "hh" as "h"
* MS runtime scanf appears to treat "hh" as "h"
*/
/* signed char */

View file

@ -1,5 +1,5 @@
#ifndef _LIBGEN_H_
/*
/*
* libgen.h
*
* $Id: libgen.h,v 1.2 2007/06/23 07:34:15 dannysmith Exp $

View file

@ -149,7 +149,7 @@ PPC_QUAL char _InterlockedCompareExchange8(volatile char * const Destination, co
volatile long retval __asm__("r8") = 0;
__asm__ __volatile__ (
"sync\n"
"1: lbarx %0,0,%1\n"
"1: lbarx %0,0,%1\n"
: "=r" (retval) : "r" (Destination));
__asm__ __volatile__ (
" cmpw %3,%1\n"
@ -157,7 +157,7 @@ PPC_QUAL char _InterlockedCompareExchange8(volatile char * const Destination, co
" stbcx. %2,0,%0\n"
" bne- 1b\n"
"2: isync"
:
:
: "r" (Destination), "r" (Comperand), "r" (Exchange), "r" (retval));
return retval;
}
@ -167,7 +167,7 @@ PPC_QUAL short _InterlockedCompareExchange16(volatile short * const Destination,
volatile long retval __asm__("r8") = 0;
__asm__ __volatile__ (
"sync\n"
"1: lharx %0,0,%1\n"
"1: lharx %0,0,%1\n"
: "=&r" (retval) : "r" (Destination));
__asm__ __volatile__ (
" cmpw %3,%1\n"
@ -175,7 +175,7 @@ PPC_QUAL short _InterlockedCompareExchange16(volatile short * const Destination,
" sthcx. %2,0,%0\n"
" bne- 1b\n"
"2: isync"
:
:
: "r" (Destination), "r" (Comperand), "r" (Exchange), "r" (retval));
return retval;
}
@ -185,7 +185,7 @@ PPC_QUAL long _InterlockedCompareExchange(volatile long * const Destination, con
volatile long retval __asm__("r8") = 0;
__asm__ __volatile__ (
"sync\n"
"1: lwarx %0,0,%1\n"
"1: lwarx %0,0,%1\n"
: "=&r" (retval) : "r" (Destination));
__asm__ __volatile__ (
" cmpw %3,%1\n"
@ -193,7 +193,7 @@ PPC_QUAL long _InterlockedCompareExchange(volatile long * const Destination, con
" stwcx. %2,0,%0\n"
" bne- 1b\n"
"2: isync"
:
:
: "r" (Destination), "r" (Comperand), "r" (Exchange), "r" (retval));
return retval;
}

View file

@ -6,7 +6,7 @@
#ifndef __NO_ISOCEXT
#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \
|| !defined __STRICT_ANSI__ || defined __cplusplus
#if __MINGW_GNUC_PREREQ(3, 3)
#define HUGE_VALF __builtin_huge_valf()
#define HUGE_VALL __builtin_huge_vall()
@ -24,7 +24,7 @@ extern const double __QNAN;
/* Use the compiler's builtin define for FLT_EVAL_METHOD to
set float_t and double_t. */
#if defined(__FLT_EVAL_METHOD__)
#if defined(__FLT_EVAL_METHOD__)
# if ( __FLT_EVAL_METHOD__== 0)
typedef float float_t;
typedef double double_t;
@ -56,8 +56,8 @@ typedef long double double_t;
/*
We can't inline float or double, because we want to ensure truncation
to semantic type before classification.
(A normal long double value might become subnormal when
to semantic type before classification.
(A normal long double value might become subnormal when
converted to double, and zero when converted to float.)
*/
@ -171,7 +171,7 @@ typedef long double double_t;
/* 7.12.5 Hyperbolic functions: Double in C89 */
// Already in math.h
/* Inverse hyperbolic trig functions */
/* Inverse hyperbolic trig functions */
/* 7.12.5.1 */
extern double __cdecl acosh (double);
extern float __cdecl acoshf (float);
@ -230,7 +230,7 @@ typedef long double double_t;
extern double __cdecl log2 (double);
extern float __cdecl log2f (float);
extern long double __cdecl log2l (long double);
/* 7.12.6.11 */
extern double __cdecl logb (double);
extern float __cdecl logbf (float);
@ -279,7 +279,7 @@ typedef long double double_t;
extern long double __cdecl scalblnl (long double, long);
/* 7.12.7.1 */
/* Implementations adapted from Cephes versions */
/* Implementations adapted from Cephes versions */
extern double __cdecl cbrt (double);
extern float __cdecl cbrtf (float);
extern long double __cdecl cbrtl (long double);
@ -342,7 +342,7 @@ __MINGW_EXTENSION long long __cdecl llrint (double);
__MINGW_EXTENSION long long __cdecl llrintf (float);
__MINGW_EXTENSION long long __cdecl llrintl (long double);
/* Inline versions of above.
/* Inline versions of above.
GCC 4.0+ can do a better fast-math job with __builtins. */
#ifndef __CRT__NO_INLINE
@ -368,7 +368,7 @@ __MINGW_EXTENSION long long __cdecl llrintl (long double);
return retval;
}
__CRT_INLINE long __cdecl lrint (double x)
__CRT_INLINE long __cdecl lrint (double x)
{
long retval = 0;
__asm__ __volatile__ \
@ -376,7 +376,7 @@ __MINGW_EXTENSION long long __cdecl llrintl (long double);
return retval;
}
__CRT_INLINE long __cdecl lrintf (float x)
__CRT_INLINE long __cdecl lrintf (float x)
{
long retval = 0;
__asm__ __volatile__ \
@ -384,7 +384,7 @@ __MINGW_EXTENSION long long __cdecl llrintl (long double);
return retval;
}
__CRT_INLINE long __cdecl lrintl (long double x)
__CRT_INLINE long __cdecl lrintl (long double x)
{
long retval = 0;
__asm__ __volatile__ \
@ -392,7 +392,7 @@ __MINGW_EXTENSION long long __cdecl llrintl (long double);
return retval;
}
__MINGW_EXTENSION __CRT_INLINE long long __cdecl llrint (double x)
__MINGW_EXTENSION __CRT_INLINE long long __cdecl llrint (double x)
{
__MINGW_EXTENSION long long retval = 0ll;
__asm__ __volatile__ \
@ -400,7 +400,7 @@ __MINGW_EXTENSION long long __cdecl llrintl (long double);
return retval;
}
__MINGW_EXTENSION __CRT_INLINE long long __cdecl llrintf (float x)
__MINGW_EXTENSION __CRT_INLINE long long __cdecl llrintf (float x)
{
__MINGW_EXTENSION long long retval = 0ll;
__asm__ __volatile__ \
@ -408,7 +408,7 @@ __MINGW_EXTENSION long long __cdecl llrintl (long double);
return retval;
}
__MINGW_EXTENSION __CRT_INLINE long long __cdecl llrintl (long double x)
__MINGW_EXTENSION __CRT_INLINE long long __cdecl llrintl (long double x)
{
__MINGW_EXTENSION long long retval = 0ll;
__asm__ __volatile__ \
@ -423,7 +423,7 @@ __MINGW_EXTENSION long long __cdecl llrintl (long double);
extern double __cdecl round (double);
extern float __cdecl roundf (float);
extern long double __cdecl roundl (long double);
/* 7.12.9.7 */
extern long __cdecl lround (double);
extern long __cdecl lroundf (float);
@ -431,7 +431,7 @@ __MINGW_EXTENSION long long __cdecl llrintl (long double);
__MINGW_EXTENSION long long __cdecl llround (double);
__MINGW_EXTENSION long long __cdecl llroundf (float);
__MINGW_EXTENSION long long __cdecl llroundl (long double);
/* 7.12.9.8 */
/* round towards zero, regardless of fpu control word settings */
extern double __cdecl trunc (double);
@ -441,7 +441,7 @@ __MINGW_EXTENSION long long __cdecl llrintl (long double);
/* 7.12.10.1 Double in C89 */
// fmod functions. Already in math.h
/* 7.12.10.2 */
/* 7.12.10.2 */
extern double __cdecl remainder (double, double);
extern float __cdecl remainderf (float, float);
extern long double __cdecl remainderl (long double, long double);
@ -499,17 +499,17 @@ __MINGW_EXTENSION long long __cdecl llrintl (long double);
extern long double __cdecl fminl (long double, long double);
/* 7.12.13.1 */
/* return x * y + z as a ternary op */
/* return x * y + z as a ternary op */
extern double __cdecl fma (double, double, double);
extern float __cdecl fmaf (float, float, float);
extern long double __cdecl fmal (long double, long double, long double);
/* 7.12.14 */
/*
/*
* With these functions, comparisons involving quiet NaNs set the FP
* condition code to "unordered". The IEEE floating-point spec
* dictates that the result of floating-point comparisons should be
* false whenever a NaN is involved, with the exception of the != op,
* false whenever a NaN is involved, with the exception of the != op,
* which always returns true: yes, (NaN != NaN) is true).
*/

View file

@ -7,7 +7,7 @@
File: strings.h
Copyright: Public Domain
This file is provided because non ANSI fuctions are described in string.h
This file is provided because non ANSI fuctions are described in string.h
that belong in strings.h. These functions are provided for in the OLDNAME
libraries.
*/

View file

@ -34,7 +34,7 @@
#include <limits.h>
#ifndef __STRICT_ANSI__
/* These are useful for cross-compiling */
/* These are useful for cross-compiling */
#define BIG_ENDIAN 4321
#define LITTLE_ENDIAN 1234
#define BYTE_ORDER LITTLE_ENDIAN

View file

@ -37,4 +37,4 @@ __CRT_INLINE int ftruncate(int __fd, off_t __length)
}
#endif
#endif
#endif