text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```c++
// _Dscale function -- IEEE 754 version
#include "xmath.h"
_EXTERN_C_UNLESS_PURE
short _Dscale(double* px, long lexp) { // scale *px by 2^xexp with checking
_Dval* ps = (_Dval*) (char*) px;
short xchar = (short) ((ps->_Sh[_D0] & _DMASK) >> _DOFF);
if (xchar == _DMAX) {
return (short) (... | /content/code_sandbox/src/14.26.28801/stl/xdscale.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 1,011 |
```c++
// clang-format off
// Prevent clang-format from reordering <AppModel.h> before <Windows.h>
#include <Windows.h>
#include <AppModel.h>
#include "awint.h"
#include <internal_shared.h>
#include <stdlib.h>
// clang-format on
#pragma warning(push)
#pragma warning(disable : 4265) // non-virtual destructor in base c... | /content/code_sandbox/src/14.26.28801/stl/winapisupp.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 6,340 |
```c++
// _Poly function
#include "xmath.h"
_EXTERN_C_UNLESS_PURE
double _Poly(double x, const double* tab, int n) { // compute polynomial
double y;
for (y = *tab; 0 <= --n;) {
y = y * x + *++tab;
}
return y;
}
_END_EXTERN_C_UNLESS_PURE
``` | /content/code_sandbox/src/14.26.28801/stl/xpoly.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 84 |
```c++
// initialize standard error stream
#include <fstream>
#include <iostream>
#pragma warning(disable : 4074)
#pragma init_seg(compiler)
static std::_Init_locks initlocks;
_STD_BEGIN
// OBJECT DECLARATIONS
__PURE_APPDOMAIN_GLOBAL static filebuf ferr(_cpp_stderr);
#if defined(_M_CEE_PURE)
__PURE_APPDOMAIN_GLOB... | /content/code_sandbox/src/14.26.28801/stl/cerr.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 203 |
```c++
// class locale exotic char member functions
#include <istream>
#include <locale>
_STD_BEGIN
#pragma warning(disable : 4074)
#pragma init_seg(compiler)
using _Traits = char_traits<char>;
using _Initer = istreambuf_iterator<char, _Traits>;
using _Outiter = ostreambuf_iterator<char, _Traits>;
// facets asso... | /content/code_sandbox/src/14.26.28801/stl/xlocale.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 484 |
```c++
// _Getwctype -- return character classification flags for wide character
#include <yvals.h>
#include "awint.h"
#include <wchar.h>
#include <xlocinfo.h>
_EXTERN_C_UNLESS_PURE
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _Getwctype(wchar_t _Ch,
const _Ctypevec* _Ctype) { // return character classification... | /content/code_sandbox/src/14.26.28801/stl/xgetwctype.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 416 |
```objective-c
// _[W]Sto[d f ld] common functionality
// macros
#define ACSIZE 4 // size of extended-precision accumulators
#define D16TO7 FLIT(268435456.0) // 16^7
#define D10TO9 FLIT(1e9) // 10^9
#if FBITS <= 24
#define NLONG 1 // 7 * NLONG == max hexadecimal digits
#elif FBITS <= 64
#define NLONG 3
#else // N... | /content/code_sandbox/src/14.26.28801/stl/xxstod.h | objective-c | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 887 |
```c++
// abort on precondition failure in random number generators
#include <yvals.h>
#include <stdio.h>
#include <stdlib.h>
// clang-format off
_STD_BEGIN
// TRANSITION, ABI: _Rng_abort() is preserved for binary compatibility
[[noreturn]] _CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Rng_abort(_In_z_ const char* _M... | /content/code_sandbox/src/14.26.28801/stl/xrngabort.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 131 |
```c++
// ios::Init members
#include <iostream>
_STD_BEGIN
// OBJECT DECLARATIONS
__PURE_APPDOMAIN_GLOBAL int ios_base::Init::_Init_cnt = -1;
int& ios_base::Init::_Init_cnt_func() {
return ios_base::Init::_Init_cnt;
}
_CRTIMP2_PURE void __cdecl ios_base::Init::_Init_ctor(ios_base::Init*) { // initialize standar... | /content/code_sandbox/src/14.26.28801/stl/iostream.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 238 |
```c++
// _LCosh function
#include "xmath.h"
_EXTERN_C_UNLESS_PURE
_CRTIMP2_PURE long double __CLRCALL_PURE_OR_CDECL _LCosh(
long double x, long double y) { // compute y * cosh(x), |y| <= 1
switch (_LDtest(&x)) { // test for special codes
case _NANCODE:
case _INFCODE:
return x;
case 0:
... | /content/code_sandbox/src/14.26.28801/stl/xlcosh.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 276 |
```c++
// _WStof function
#include "xmath.h"
#include "xxfftype.h"
#include "xxwctype.h"
#include <wchar.h>
_EXTERN_C_UNLESS_PURE
_CRTIMP2_PURE FTYPE __CLRCALL_PURE_OR_CDECL _WStofx(const CTYPE* s, CTYPE** endptr, long pten, int* perr)
#include "xxstod.h"
_CRTIMP2_PURE FTYPE __CLRCALL_PURE_OR_CDECL
_WStof(... | /content/code_sandbox/src/14.26.28801/stl/xwstof.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 167 |
```c++
// _Cosh function
#include "xmath.h"
_EXTERN_C_UNLESS_PURE
_CRTIMP2_PURE double __CLRCALL_PURE_OR_CDECL _Cosh(double x, double y) { // compute y * cosh(x), |y| <= 1
switch (_Dtest(&x)) { // test for special codes
case _NANCODE:
case _INFCODE:
return x;
case 0:
return y;
de... | /content/code_sandbox/src/14.26.28801/stl/xcosh.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 265 |
```c++
// class locale basic member functions
#include <crtdbg.h>
#include <internal_shared.h>
#include <xfacet>
// This must be as small as possible, because its contents are
// injected into the msvcprt.lib and msvcprtd.lib import libraries.
// Do not include or define anything else here.
// In particular, basic_s... | /content/code_sandbox/src/14.26.28801/stl/locale0.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 1,807 |
```c++
// _FDtento function -- IEEE 754 version
#include "xxfftype.h"
#include "xxxdtent.h"
``` | /content/code_sandbox/src/14.26.28801/stl/xfdtento.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 28 |
```c++
// global lock for locales, etc.
#include <yvals.h>
#include "xmtx.h"
#include <locale.h>
#include <stdlib.h>
_STD_BEGIN
constexpr int _Max_lock = 8; // must be power of two
#pragma warning(disable : 4074)
#pragma init_seg(compiler)
static _Rmtx mtx[_Max_lock];
static long init = -1;
#if !defined(MRTDLL)... | /content/code_sandbox/src/14.26.28801/stl/xlock.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 896 |
```c++
// _FDint function -- IEEE 754 version
#include "xmath.h"
_EXTERN_C_UNLESS_PURE
short _FDint(float* px, short xexp) { // test and drop (scaled) fraction bits
_Fval* ps = (_Fval*) (char*) px;
unsigned short frac;
short xchar = (ps->_Sh[_F0] & _FMASK) >> _FOFF;
if (xchar == _FMAX) {
re... | /content/code_sandbox/src/14.26.28801/stl/xfdint.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 532 |
```objective-c
// common extended precision functionality
#include "xmath.h"
#include <string.h>
#if !defined(MRTDLL)
_EXTERN_C
#endif // defined(MRTDLL)
#ifndef ldexpf
#define ldexpf(x, y) ldexp((double) (x), (y))
#endif // ldexp
#ifndef sqrtf
#define sqrtf(x) sqrt((double) (x))
#endif // sqrtf
#define BIG_EXP ... | /content/code_sandbox/src/14.26.28801/stl/xxxprec.h | objective-c | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 4,224 |
```c++
// initialize standard wide input stream
#include <fstream>
#include <iostream>
#pragma warning(disable : 4074)
#pragma init_seg(compiler)
static std::_Init_locks initlocks;
_STD_BEGIN
// OBJECT DECLARATIONS
__PURE_APPDOMAIN_GLOBAL static wfilebuf wfin(_cpp_stdin);
#if defined(_M_CEE_PURE)
__PURE_APPDOMAIN_... | /content/code_sandbox/src/14.26.28801/stl/wcin.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 188 |
```c++
#include "awint.h"
#include <condition_variable>
#include <mutex>
#include <ppltaskscheduler.h>
#include <stddef.h>
#include <Windows.h>
#pragma warning(disable : 4074)
#pragma init_seg(compiler)
static std::_Init_locks initlocks;
extern "C" IMAGE_DOS_HEADER __ImageBase;
namespace Concurrency {
namespa... | /content/code_sandbox/src/14.26.28801/stl/taskscheduler.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 2,029 |
```objective-c
#define LTL_ProductVersion "14.26.28801.0"
#include "Shared-Resource.h"
``` | /content/code_sandbox/src/14.26.28801/Build/resource.h | objective-c | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 24 |
```c++
#include "..\awint.h"
#undef DYNAMICGETCACHEDFUNCTION
#define DYNAMICGETCACHEDFUNCTION(FunType, FunName, FunPtr) \
FunType FunPtr = (FunType)GetProcAddress(GetModuleHandleA("KERNEL32"),#FunName)
``` | /content/code_sandbox/src/14.28.29333/awint.hpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 58 |
```batchfile
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
set libfile=%~dp0..\..\..\..\VC\14.28.29333\lib\%Platform%\vccorlib.lib
del "%libfile%" /q
lib /MACHINE:%Platform% /DEF:"%~dp0..\..\..\..\src\amd64\wincorlib.def" /out:"%libfile%"
lib /MACHINE:%Platform%... | /content/code_sandbox/src/14.28.29333/lib/x64/vccorlib.cmd | batchfile | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 178 |
```batchfile
set libfile=%~dp0..\..\..\..\VC\14.28.29333\lib\x86\vc.lib
copy "%~dp0msvcrt.lib" "%libfile%" /y
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsx86_amd64.bat"
lib "%libfile%" /remove:d:\agent\_work\57\s\Intermediate\vctools\crt_bld\i386\dll_obj\almap\_fin... | /content/code_sandbox/src/14.28.29333/lib/x86/msvcrt.cmd | batchfile | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 59,324 |
```batchfile
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsamd64_x86.bat"
set libfile=%~dp0..\..\..\..\VC\14.28.29333\lib\%Platform%\vccorlib.lib
del "%libfile%" /q
lib /MACHINE:%Platform% /DEF:"%~dp0..\..\..\..\src\i386\wincorlib.def" /out:"%libfile%"
lib /MACHINE:%Pla... | /content/code_sandbox/src/14.28.29333/lib/x86/vccorlib.cmd | batchfile | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 181 |
```batchfile
set libfile=%~dp0..\..\..\..\VC\14.28.29333\lib\x64\vc.lib
copy "%~dp0msvcrt.lib" "%libfile%" /y
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
lib "%libfile%" /remove:d:\agent\_work\63\s\Intermediate\vctools\crt_bld\amd64\dll_obj\almap\_findfirst... | /content/code_sandbox/src/14.28.29333/lib/x64/msvcrt.cmd | batchfile | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 59,541 |
```batchfile
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsamd64_arm.bat"
set libfile=%~dp0..\..\..\..\VC\14.28.29333\lib\%Platform%\vccorlib.lib
del "%libfile%" /q
lib /MACHINE:%Platform% /DEF:"%~dp0..\..\..\..\src\%Platform%\wincorlib.def" /out:"%libfile%"
lib /MACHIN... | /content/code_sandbox/src/14.28.29333/lib/arm/vccorlib.cmd | batchfile | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 180 |
```batchfile
set libfile=%~dp0..\..\..\..\VC\14.28.29333\lib\arm\vc.lib
copy "%~dp0msvcrt.lib" "%libfile%" /y
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
lib "%libfile%" /remove:d:\agent\_work\10\s\Intermediate\vctools\crt_bld\arm\dll_obj\almap\_findfirst.obj... | /content/code_sandbox/src/14.28.29333/lib/arm/msvcrt.cmd | batchfile | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 14,981 |
```batchfile
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsamd64_arm64.bat"
set libfile=%~dp0..\..\..\..\VC\14.28.29333\lib\%Platform%\vccorlib.lib
del "%libfile%" /q
lib /MACHINE:%Platform% /DEF:"%~dp0..\..\..\..\src\%Platform%\wincorlib.def" /out:"%libfile%"
lib /MACH... | /content/code_sandbox/src/14.28.29333/lib/arm64/vccorlib.cmd | batchfile | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 182 |
```batchfile
set libfile=%~dp0..\..\..\..\VC\14.28.29333\lib\arm64\vc.lib
copy "%~dp0msvcrt.lib" "%libfile%" /y
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsamd64_arm64.bat"
lib "%libfile%" /remove:d:\agent\_work\62\s\Intermediate\vctools\crt_bld\arm64\dll_obj\almap\_... | /content/code_sandbox/src/14.28.29333/lib/arm64/msvcrt.cmd | batchfile | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 15,069 |
```batchfile
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
set libfile=%~dp0..\..\..\..\..\VC\14.28.29333\lib\spectre\%Platform%\vccorlib.lib
del "%libfile%" /q
lib /MACHINE:%Platform% /DEF:"%~dp0..\..\..\..\..\src\amd64\wincorlib.def" /out:"%libfile%"
lib /MACH... | /content/code_sandbox/src/14.28.29333/lib/Spectre/x64/vccorlib.cmd | batchfile | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 184 |
```batchfile
set libfile=%~dp0..\..\..\..\..\VC\14.28.29333\lib\Spectre\x64\vc.lib
copy "%~dp0msvcrt.lib" "%libfile%" /y
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
lib "%libfile%" /remove:d:\agent\_work\63\s\Intermediate\vctools\crt_bld_spectre\amd64\dll_... | /content/code_sandbox/src/14.28.29333/lib/Spectre/x64/msvcrt.cmd | batchfile | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 63,518 |
```batchfile
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsamd64_x86.bat"
set libfile=%~dp0..\..\..\..\..\VC\14.28.29333\lib\spectre\%Platform%\vccorlib.lib
del "%libfile%" /q
lib /MACHINE:%Platform% /DEF:"%~dp0..\..\..\..\..\src\i386\wincorlib.def" /out:"%libfile%"
lib... | /content/code_sandbox/src/14.28.29333/lib/Spectre/x86/vccorlib.cmd | batchfile | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 187 |
```batchfile
set libfile=%~dp0..\..\..\..\..\VC\14.28.29333\lib\Spectre\arm\vc.lib
copy "%~dp0msvcrt.lib" "%libfile%" /y
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
lib "%libfile%" /remove:d:\agent\_work\10\s\Intermediate\vctools\crt_bld_spectre\arm\dll_obj\a... | /content/code_sandbox/src/14.28.29333/lib/Spectre/arm/msvcrt.cmd | batchfile | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 16,125 |
```batchfile
set libfile=%~dp0..\..\..\..\..\VC\14.28.29333\lib\spectre\x86\vc.lib
copy "%~dp0msvcrt.lib" "%libfile%" /y
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsx86_amd64.bat"
lib "%libfile%" /remove:d:\agent\_work\57\s\Intermediate\vctools\crt_bld_spectre\i386... | /content/code_sandbox/src/14.28.29333/lib/Spectre/x86/msvcrt.cmd | batchfile | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 63,360 |
```batchfile
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsamd64_arm.bat"
set libfile=%~dp0..\..\..\..\..\VC\14.28.29333\lib\Spectre\%Platform%\vccorlib.lib
del "%libfile%" /q
lib /MACHINE:%Platform% /DEF:"%~dp0..\..\..\..\..\src\%Platform%\wincorlib.def" /out:"%libfile... | /content/code_sandbox/src/14.28.29333/lib/Spectre/arm/vccorlib.cmd | batchfile | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 186 |
```batchfile
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsamd64_arm64.bat"
set libfile=%~dp0..\..\..\..\..\VC\14.28.29333\lib\spectre\%Platform%\vccorlib.lib
del "%libfile%" /q
lib /MACHINE:%Platform% /DEF:"%~dp0..\..\..\..\..\src\%Platform%\wincorlib.def" /out:"%libfi... | /content/code_sandbox/src/14.28.29333/lib/Spectre/arm64/vccorlib.cmd | batchfile | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 188 |
```batchfile
set libfile=%~dp0..\..\..\..\..\VC\14.28.29333\lib\spectre\arm64\vc.lib
copy "%~dp0msvcrt.lib" "%libfile%" /y
@call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsamd64_arm64.bat"
lib "%libfile%" /remove:d:\agent\_work\62\s\Intermediate\vctools\crt_bld_spectre\ar... | /content/code_sandbox/src/14.28.29333/lib/Spectre/arm64/msvcrt.cmd | batchfile | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 16,192 |
```c++
//
// std_nothrow.cpp
//
//
// Defines std::nothrow.
//
#include <vcruntime_internal.h>
#include <vcruntime_new.h>
namespace std
{
const nothrow_t nothrow;
}
``` | /content/code_sandbox/src/14.28.29333/vcruntime/std_nothrow.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 46 |
```c++
/***
*crtexe.c - Initialization for console EXE using CRT DLL
*
*
*Purpose:
* This is the actual startup routine for apps linking to the CRT DLL.
* It calls the user's main routine [w]main() or [w]WinMain after
* performing C Run-Time Library initialization.
*
* With ifdefs, this source f... | /content/code_sandbox/src/14.28.29333/vcruntime/mcrtexe.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 3,671 |
```objective-c
//
// vcstartup_internal.h
//
//
// Declarations and utilities used by the statically-linked CRT startup code.
//
#pragma once
#include <corecrt_startup.h>
#include <internal_shared.h>
#include <intrin.h>
#include <process.h>
#include <vcruntime_startup.h>
#include <Windows.h>
//-+-+-+-+-+-+-+-+-+-+-... | /content/code_sandbox/src/14.28.29333/vcruntime/vcstartup_internal.h | objective-c | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 3,877 |
```c++
// Make sure all dependent defines exist and have a valid value
#pragma warning(disable: 4702) // unreachable code
#pragma warning(disable: 4706) // assignment within conditional expression
#ifndef NO_COMPILER_NAMES
#define NO_COMPILER_NAMES 0
#endif
#ifndef VERS_32BIT
#define VERS_32BIT 1
#endif
#if defined... | /content/code_sandbox/src/14.28.29333/vcruntime/undname.cxx | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 33,834 |
```c
/***
*loadcfg.c
*
*
*Purpose:
* Defines the default load config struct linked into images.
*
*******************************************************************************/
#include <Windows.h>
extern UINT_PTR __security_cookie; /* /GS security cookie */
extern PVOID __guard_check_icall_fptr;
extern PVOI... | /content/code_sandbox/src/14.28.29333/vcruntime/loadcfg.c | c | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 2,158 |
```c
/***
*guard_support.c - logic and globals to support the Guard security feature
*
*
*Purpose:
* Define the globals and default check routine for the Guard security
* feature.
*
* N.B. Code and data declared by this module must be in the form of
* selectany COMDATs, so that duplicate ... | /content/code_sandbox/src/14.28.29333/vcruntime/guard_support.c | c | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 2,302 |
```c++
//
// thread_safe_statics.cpp
//
//
// Helper functions used by thread-safe static initialization.
//
#ifdef _M_CEE
#error This file cannot be built as managed
#endif
#include <vcstartup_internal.h>
#include <vcruntime_internal.h>
#include <limits.h>
static DWORD const xp_timeout = 100; // ms
static int co... | /content/code_sandbox/src/14.28.29333/vcruntime/thread_safe_statics.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 2,120 |
```objective-c
//
// internal_shared.h
//
//
// Header-only utilities used by both the VCRuntime and the CoreCRT.
//
#pragma once
#include <crtdbg.h>
#include <intrin.h>
#include <malloc.h>
#include <stdlib.h>
#include <vcruntime.h>
#include <Windows.h>
_CRT_BEGIN_C_HEADER
extern IMAGE_DOS_HEADER __ImageBase;
/... | /content/code_sandbox/src/14.28.29333/vcruntime/internal_shared.h | objective-c | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 6,246 |
```assembly
;***
;handlers.asm
;
;
;*******************************************************************************
#include "ksarm64.h"
#include "arm64/arm64asmsymbolname.h"
; CallSettingFrame
;
; this version restores and preserves the permanent register
; state of the funclet
;
; as the funclet returns to this fun... | /content/code_sandbox/src/14.28.29333/arm64/handlers.asm | assembly | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 1,017 |
```assembly
;
;
#include "ksarm64.h"
#include "arm64/arm64asmsymbolname.h"
EXPORT A64NAME(memset) [FUNC]
AREA |.text|,ALIGN=5,CODE,READONLY,CODEALIGN
;
; void * __cdecl memset (void *dst, int value, size_t count);
;
; Sets the first count bytes of the block of memory pointed by dst to the
; spec... | /content/code_sandbox/src/14.28.29333/arm64/memset.asm | assembly | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 5,233 |
```assembly
;
;
#include "ksarm64.h"
#include "arm64/arm64asmsymbolname.h"
AREA |.text|,ALIGN=5,CODE,READONLY
;
; void *memcpy(void *dst, const void *src, size_t length)
; void *memmove(void *dst, const void *src, size_t length)
; void *_memcpy_strict_align(void *dst, const void *src, size_t length)
;
; ... | /content/code_sandbox/src/14.28.29333/arm64/memcpy.asm | assembly | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 6,181 |
```c++
// ==++==
//
//
// ==--==
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// FreeVirtualProcessorRoot.cpp
//
// Part of the ConcRT Resource Manager -- this header file contains the internal implementation for the free virtual
// processor roo... | /content/code_sandbox/src/14.28.29333/concrt/FreeVirtualProcessorRoot.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 3,136 |
```objective-c
// ==++==
//
//
// ==--==
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// Mailbox.h
//
// Class definition for task affine mailbox.
//
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=... | /content/code_sandbox/src/14.28.29333/concrt/Mailbox.h | objective-c | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 5,128 |
```c++
// ==++==
//
//
// ==--==
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// Agent.cpp
//
// Source file containing code for the agent creation APIs.
//
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-... | /content/code_sandbox/src/14.28.29333/concrt/Agent.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 3,052 |
```c++
// ==++==
//
//
// ==--==
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// utils.cpp
//
// Utility routines for use in ConcRT.
//
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#include "concrtinternal.h"
#include <awint.h... | /content/code_sandbox/src/14.28.29333/concrt/utils.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 5,716 |
```c++
// ==++==
//
//
// ==--==
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// rtlocks.cpp
//
// Implementation file for locks used only within the runtime implementation. The locks
// themselves are expected to be dependent on the underlying platform definition.
//
// ... | /content/code_sandbox/src/14.28.29333/concrt/rtlocks.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 14,786 |
```c++
// ==++==
//
//
// ==--==
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// ResourceManager.cpp
//
// Implementation of IResourceManager.
//
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=... | /content/code_sandbox/src/14.28.29333/concrt/ResourceManager.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 53,201 |
```c++
// ==++==
//
//
// ==--==
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// UMSFreeVirtualProcessorRoot.cpp
//
// Part of the ConcRT Resource Manager -- this header file contains the internal implementation for the UMS free virtual
// proces... | /content/code_sandbox/src/14.28.29333/concrt/UMSFreeVirtualProcessorRoot.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 12,630 |
```c++
// ==++==
//
//
// ==--==
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// TaskCollection.cpp
//
// Internal implementation of task collections and related data structures
//
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-... | /content/code_sandbox/src/14.28.29333/concrt/TaskCollection.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 22,342 |
```c++
// ==++==
//
//
// ==--==
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// SearchAlgorithms.cpp
//
// Implementation file containing all scheduling algorithms.
//
// **PLEASE NOTE**:
//
// Any search algorithm in here must be fully reen... | /content/code_sandbox/src/14.28.29333/concrt/SearchAlgorithms.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 15,952 |
```objective-c
// ==++==
//
//
// ==--==
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// collections.h
//
// Header file containing collection classes for ConcRT
//
// These data structures assume in-data links with the names m_pNext and m_pPrev
// Currently defined colle... | /content/code_sandbox/src/14.28.29333/concrt/collections.h | objective-c | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 14,745 |
```c++
// ==++==
//
//
// ==--==
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// SchedulerBase.cpp
//
// Implementation file of the metaphor for a concrt scheduler
//
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-... | /content/code_sandbox/src/14.28.29333/concrt/SchedulerBase.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 31,500 |
```objective-c
// ==++==
//
//
// ==--==
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// utils.h
//
// Header file containing the utility routine declarations.
//
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-... | /content/code_sandbox/src/14.28.29333/concrt/utils.h | objective-c | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 7,207 |
```c++
#include <yvals.h>
_STD_BEGIN
// TRANSITION, ABI: _Debug_message() overloads are preserved for binary compatibility
#ifdef _DEBUG
_CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Debug_message(
const wchar_t* message, const wchar_t* file, unsigned int line) { // report error and die
if (::_CrtDbgReportW(_C... | /content/code_sandbox/src/14.28.29333/stl/stdthrow.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 192 |
```c++
// ==++==
//
//
// ==--==
// =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
//
// Platform.cpp
//
// Platform API abstraction.
//
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#... | /content/code_sandbox/src/14.28.29333/concrt/Platform.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 6,636 |
```c++
#pragma once
#pragma warning(push)
#pragma warning(disable : 4201) // nonstandard extension used: nameless struct/union
#pragma warning(disable : 4324) // structure was padded due to alignment specifier
#include <crtdefs.h>
#include <exception>
#include <new>
#include <stdlib.h>
#include <Windows.h>
#include... | /content/code_sandbox/src/14.28.29333/stl/primitives.hpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 2,910 |
```c++
// _Stoxflt function
#include <ctype.h>
#include <locale.h>
#include <stdlib.h>
#include <string.h>
#include "xmath.hpp"
_EXTERN_C_UNLESS_PURE
constexpr int _Base = 16; // hexadecimal
constexpr int _Ndig = 7; // hexadecimal digits per long element
constexpr int _Maxsig = 5 * _Ndig; // maximum significan... | /content/code_sandbox/src/14.28.29333/stl/xstoxflt.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 1,195 |
```c++
// thread functions
#include <process.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <xthreads.h>
#include <Windows.h>
#include "awint.hpp"
namespace {
using _Thrd_start_t = int (*)(void*);
struct _Thrd_binder { // bind function pointer and data to pass t... | /content/code_sandbox/src/14.28.29333/stl/cthread.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 1,239 |
```c++
// _FDscale function -- IEEE 754 version
#include "xmath.hpp"
_EXTERN_C_UNLESS_PURE
short _FDscale(float* px, long lexp) { // scale *px by 2^xexp with checking
const auto ps = reinterpret_cast<_Fval*>(px);
short xchar = static_cast<short>((ps->_Sh[_F0] & _FMASK) >> _FOFF);
if (xchar == _FMAX) ... | /content/code_sandbox/src/14.28.29333/stl/xfdscale.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 784 |
```c++
#include <internal_shared.h>
#include <locale.h>
#include "awint.hpp"
// int __cdecl __crtLCMapStringW - Get type information about a wide string.
//
// Purpose:
// Internal support function. Assumes info in wide string format.
//
// Entry:
// LPCWSTR locale_name - locale context for the ... | /content/code_sandbox/src/14.28.29333/stl/StlLCMapStringW.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 504 |
```c++
// _LDtest function -- IEEE 754 version
#include "xmath.hpp"
_EXTERN_C_UNLESS_PURE
_CRTIMP2_PURE short __CLRCALL_PURE_OR_CDECL _LDtest(long double* px) { // categorize *px -- 64-bit
return _Dtest(reinterpret_cast<double*>(px));
}
unsigned short* _LPlsw(long double* px) { // get pointer to lsw
return... | /content/code_sandbox/src/14.28.29333/stl/xldtest.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 157 |
```c++
// _Towupper -- convert wchar_t to upper case
#include <wchar.h>
#include <xlocinfo.h>
#include "awint.hpp"
_EXTERN_C_UNLESS_PURE
_CRTIMP2_PURE wchar_t __CLRCALL_PURE_OR_CDECL _Towupper(
wchar_t _Ch, const _Ctypevec* _Ctype) { // convert element to upper case
wchar_t _Res = _Ch;
if (_Ch != WEOF)... | /content/code_sandbox/src/14.28.29333/stl/xtowupper.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 297 |
```c++
// _WStold function
#include <wchar.h>
#include "xmath.hpp"
#include "xxlftype.hpp"
#include "xxwctype.hpp"
_EXTERN_C_UNLESS_PURE
_CRTIMP2_PURE FTYPE __CLRCALL_PURE_OR_CDECL _WStoldx(const CTYPE* s, CTYPE** endptr, long pten, int* perr)
#include "xxstod.hpp"
_CRTIMP2_PURE FTYPE __CLRCALL_PURE_OR_CDECL
... | /content/code_sandbox/src/14.28.29333/stl/xwstold.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 166 |
```c++
// mutex functions
#include <internal_shared.h>
#include <stdio.h>
#include <stdlib.h>
#include <type_traits>
#include <xthreads.h>
#include <xtimec.h>
#include "primitives.hpp"
extern "C" _CRTIMP2_PURE void _Thrd_abort(const char* msg) { // abort on precondition failure
fputs(msg, stderr);
fputc('\n... | /content/code_sandbox/src/14.28.29333/stl/mutex.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 1,940 |
```c++
// _FXp* functions
#include "xmath.hpp"
#include "xxfftype.hpp"
#include "xxxprec.hpp"
``` | /content/code_sandbox/src/14.28.29333/stl/xfprec.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 28 |
```c++
// iostream object pointers
#include <iostream>
#include <Windows.h>
#include <winapi_thunks.h>
_STD_BEGIN
#if defined(_M_CEE) && !defined(_M_CEE_MIXED)
#error This file cannot be built /clr:pure, etc. because of the use of _PGLOBAL.
#endif
#pragma warning(disable : 4074)
#pragma init_seg(compiler)
_PGLOBAL... | /content/code_sandbox/src/14.28.29333/stl/iosptrs.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 543 |
```c++
// convert character to uppercase
#include <yvals.h>
#include <ctype.h>
#include <locale.h>
#include <stddef.h>
#include <xlocinfo.h>
#include "awint.hpp"
// remove macro definitions of _toupper() and toupper()
#undef _toupper
#undef toupper
_EXTERN_C_UNLESS_PURE
// int _Toupper(c) - convert character to ... | /content/code_sandbox/src/14.28.29333/stl/_toupper.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 691 |
```c++
// pointer to raise handler
#ifndef _M_CEE_PURE
#define _HAS_EXCEPTIONS 0
#endif // _M_CEE_PURE
#include <exception>
_STD_BEGIN
_Prhand _Raise_handler = nullptr; // define raise handler pointer
_STD_END
``` | /content/code_sandbox/src/14.28.29333/stl/raisehan.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 57 |
```c++
// implement shared_ptr spin lock
#include <yvals.h>
#include <synchapi.h>
namespace {
// MUTEX FOR shared_ptr ATOMIC OPERATIONS
SRWLOCK _Shared_ptr_lock = SRWLOCK_INIT;
} // unnamed namespace
_EXTERN_C
_CRTIMP2_PURE void __cdecl _Lock_shared_ptr_spin_lock() { // TRANSITION, ABI: "spin_lock" name i... | /content/code_sandbox/src/14.28.29333/stl/atomic.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 141 |
```c++
#include <yvals_core.h>
#include <synchapi.h>
// This must be as small as possible, because its contents are
// injected into the msvcprt.lib and msvcprtd.lib import libraries.
// Do not include or define anything else here.
// In particular, basic_string must not be included here.
// Provides forwarders for... | /content/code_sandbox/src/14.28.29333/stl/xonce2.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 240 |
```c++
// parameters for float floating-point type
#include <yvals.h>
#include <float.h>
#define FTYPE float
#define FBITS FLT_MANT_DIG
#define FMAXEXP FLT_MAX_EXP
#define FFUN(fun) fun##f
#define FNAME(fun) _F##fun
#define FCONST(obj) _F##obj._Float
#define FLIT(lit) lit##F
#define FPMSW(x) (*_FPmsw(&(x... | /content/code_sandbox/src/14.28.29333/stl/xxfftype.hpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 145 |
```c++
// mutex support
#include "xmtx.hpp"
#include "awint.hpp"
_EXTERN_C_UNLESS_PURE
// Win32 critical sections are recursive
void __CLRCALL_PURE_OR_CDECL _Mtxinit(_Rmtx* _Mtx) noexcept { // initialize mutex
__crtInitializeCriticalSectionEx(_Mtx, 4000, 0);
}
void __CLRCALL_PURE_OR_CDECL _Mtxdst(_Rmtx* _Mtx... | /content/code_sandbox/src/14.28.29333/stl/xmtx.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 260 |
```c++
// values used by math functions -- IEEE 754 version
#if defined(_M_CEE_PURE)
#if defined(MRTDLL)
#undef MRTDLL
#endif
#endif
#include "xmath.hpp"
// macros
#define NBITS (48 + _DOFF)
#define INIT(w0) \
{ 0, 0, 0, w0 }
#define INIT2(w0, w1) \
{ w1, 0, 0, w0 }
// static data
extern /* const */ _Dcon... | /content/code_sandbox/src/14.28.29333/stl/xvalues.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 305 |
```c++
// _WStopfx function
#include <wctype.h>
#include "xmath.hpp"
_EXTERN_C_UNLESS_PURE
int _WStopfx(const wchar_t** ps, wchar_t** endptr) { // parse prefix of floating-point field
const wchar_t* s = *ps;
int code = 0;
while (iswspace(*s)) {
++s;
}
if (*s == L'-') {
... | /content/code_sandbox/src/14.28.29333/stl/xwstopfx.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 699 |
```c++
// _Dtento function -- IEEE 754 version
#include "xxdftype.hpp"
#include "xxxdtent.hpp"
``` | /content/code_sandbox/src/14.28.29333/stl/xdtento.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 27 |
```c++
#include <internal_shared.h>
#include <memory_resource>
#include <system_error>
_STD_BEGIN
namespace pmr {
static memory_resource* _Default_resource{nullptr};
extern "C" _CRT_SATELLITE_1 _Aligned_new_delete_resource_impl* __cdecl _Aligned_new_delete_resource() noexcept {
return &const_cast<_A... | /content/code_sandbox/src/14.28.29333/stl/memory_resource.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 586 |
```c++
// _Stoull function
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "xmath.hpp"
_EXTERN_C_UNLESS_PURE
constexpr int _Base_max = 36; // largest valid base
// static data
static const char digits[] = "0123456789abcdefghijklmnopqrs... | /content/code_sandbox/src/14.28.29333/stl/xstoull.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 931 |
```c++
// _LDunscale function -- IEEE 754 version
#include "xmath.hpp"
_EXTERN_C_UNLESS_PURE
short _LDunscale(short* pex, long double* px) { // separate *px to 1/2 <= |frac| < 1 and 2^*pex -- 64-bit
return _Dunscale(pex, reinterpret_cast<double*>(px));
}
_END_EXTERN_C_UNLESS_PURE
``` | /content/code_sandbox/src/14.28.29333/stl/xldunsca.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 95 |
```c++
#include <crtdbg.h>
#include <internal_shared.h>
#include <string.h>
#include <Windows.h>
#include "awint.hpp"
// int __cdecl __crtCompareStringA - Get type information about an ANSI string.
//
// Purpose:
// Internal support function. Assumes info in ANSI string format. Tries
// to use NLS AP... | /content/code_sandbox/src/14.28.29333/stl/StlCompareStringA.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 1,405 |
```c++
// _Dunscale function -- IEEE 754 version
#include "xmath.hpp"
_EXTERN_C_UNLESS_PURE
short _Dunscale(short* pex, double* px) { // separate *px to 1/2 <= |frac| < 1 and 2^*pex
const auto ps = reinterpret_cast<_Dval*>(px);
short xchar = (ps->_Sh[_D0] & _DMASK) >> _DOFF;
if (xchar == _DMAX) { // ... | /content/code_sandbox/src/14.28.29333/stl/xdunscal.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 311 |
```c++
// _FExp function
#include "xmath.hpp"
_EXTERN_C_UNLESS_PURE
static const float p[] = {1.0F, 60.09114349F};
static const float q[] = {12.01517514F, 120.18228722F};
static const float c1 = (22713.0F / 32768.0F);
static const float c2 = 1.4286068203094172321214581765680755e-6F;
static const float... | /content/code_sandbox/src/14.28.29333/stl/xfexp.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 487 |
```c++
#include <internal_shared.h>
#include <locale.h>
#include "awint.hpp"
// int __cdecl __crtLCMapStringA - Get type information about an ANSI string.
//
// Purpose:
// Internal support function. Assumes info in ANSI string format. Tries
// to use NLS API call LCMapStringA if available and uses LCM... | /content/code_sandbox/src/14.28.29333/stl/StlLCMapStringA.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 1,264 |
```c++
// _[W]Sto[d f ld] common functionality
// macros
#define ACSIZE 4 // size of extended-precision accumulators
#define D16TO7 FLIT(268435456.0) // 16^7
#define D10TO9 FLIT(1e9) // 10^9
#if FBITS == 24
#define NLONG 1 // 7 * NLONG == max hexadecimal digits
#elif FBITS == 53
#define NLONG 3
#else // FBITS
#erro... | /content/code_sandbox/src/14.28.29333/stl/xxstod.hpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 917 |
```c++
// implements multiprecision math for random number generators
#include <limits>
#include <random>
_STD_BEGIN
constexpr int shift = _STD numeric_limits<unsigned long long>::digits / 2;
constexpr unsigned long long mask = ~(~0ULL << shift);
constexpr unsigned long long maxVal = mask + 1;
_NO... | /content/code_sandbox/src/14.28.29333/stl/multprec.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 1,691 |
```c++
// _WStoflt function
#include <locale.h>
#include <wchar.h>
#include <wctype.h>
#include "xmath.hpp"
_EXTERN_C_UNLESS_PURE
constexpr int _Base = 10; // decimal
constexpr int _Ndig = 9; // decimal digits per long element
constexpr int _Maxsig = 5 * _Ndig; // maximum significant digits to keep
_In_range_... | /content/code_sandbox/src/14.28.29333/stl/xwstoflt.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 1,063 |
```c++
// Compare two wchar_t strings using the locale LC_COLLATE information.
#include <errno.h>
#include <locale.h>
#include <stdlib.h>
#include <string.h>
#include <xlocinfo.h> // for _Collvec, _Wcscoll
#include "awint.hpp"
_EXTERN_C_UNLESS_PURE
// int _Wcscoll() - Collate wide-character locale strings
//
// Pu... | /content/code_sandbox/src/14.28.29333/stl/xwcscoll.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 738 |
```c++
// _Dnorm function -- IEEE 754 version
#include "xmath.hpp"
_EXTERN_C_UNLESS_PURE
short _Dnorm(_Dval* ps) { // normalize double fraction
short xchar;
unsigned short sign = static_cast<unsigned short>(ps->_Sh[_D0] & _DSIGN);
xchar = 1;
if ((ps->_Sh[_D0] &= _DFRAC) != 0 || ps->_Sh[_D1] || ps->... | /content/code_sandbox/src/14.28.29333/stl/xdnorm.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 563 |
```c++
// thread exit notification functions
#include <stdlib.h>
#include <string.h>
#include <xthreads.h>
#include <Windows.h>
constexpr int _Nitems = 20;
namespace {
struct _At_thread_exit_data { // data for condition-variable slot
_Thrd_t id;
_Mtx_t mtx;
_Cnd_t cnd;
int* res;... | /content/code_sandbox/src/14.28.29333/stl/xnotify.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 955 |
```c++
// Convert wide character to multibyte character, with locale.
#include <errno.h>
#include <limits.h> // for MB_LEN_MAX
#include <locale.h>
#include <mbctype.h>
#include <stdio.h> // for EOF
#include <stdlib.h>
#include <string.h> // for memcpy
#include <xlocinfo.h> // for _Cvtvec, _Wcrtomb
#include <Windows.... | /content/code_sandbox/src/14.28.29333/stl/xwctomb.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 907 |
```c++
// _Stolx function
#include <yvals.h>
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
#include "xmath.hpp"
_EXTERN_C_UNLESS_PURE
_CRTIMP2_PURE unsigned long __CLRCALL_PURE_OR_CDECL _Stoulx(const char*, char**, int, int*);
_CRTIMP2_PURE long __CLRCALL_PURE_OR_CDECL _Stolx(
... | /content/code_sandbox/src/14.28.29333/stl/xstol.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 361 |
```c++
#include "awint.hpp"
#if _STL_WIN32_WINNT < _WIN32_WINNT_VISTA
#include <algorithm>
#include <ctype.h>
#include <stdlib.h>
#include <string_view>
namespace {
struct LCIDTOLOCALENAME {
LCID lcid;
const wchar_t* localeName;
};
struct LOCALENAMEINDEX {
const wchar_t* name;
... | /content/code_sandbox/src/14.28.29333/stl/winapinls.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 8,399 |
```c++
// _FSinh function
#include "xmath.hpp"
_EXTERN_C_UNLESS_PURE
// coefficients
static const float p[] = {0.00020400F, 0.00832983F, 0.16666737F, 0.99999998F};
_CRTIMP2_PURE float __CLRCALL_PURE_OR_CDECL _FSinh(float x, float y) { // compute y * sinh(x), |y| <= 1
short neg;
switch (_FDtest(&x)) { // t... | /content/code_sandbox/src/14.28.29333/stl/xfsinh.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 455 |
```c++
// _UShinit members (unsigned short version)
#ifdef _NATIVE_WCHAR_T_DEFINED
#include <fstream>
#define wistream ushistream
#define wostream ushostream
#define wfilebuf ushfilebuf
#define _Init_wcerr _Init_ushcerr
#define _Init_wcout _Init_ushcout
#define _Init_wclog _Init_ushclog
#define _Init_wcin ... | /content/code_sandbox/src/14.28.29333/stl/ushiostr.cpp | c++ | 2016-06-14T03:01:16 | 2024-08-12T19:23:19 | VC-LTL | Chuyu-Team/VC-LTL | 1,052 | 296 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.