repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
wenliangwu/sof | src/drivers/mediatek/mt8195/interrupt.c | // SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2021 Mediatek
//
// Author: <NAME> <<EMAIL>>
#include <sof/common.h>
#include <sof/bit.h>
#include <sof/drivers/interrupt.h>
#include <sof/lib/cpu.h>
#include <sof/lib/io.h>
#include <sof/lib/memory.h>
#include <sof/lib/uuid.h>
#include <sof/list.h>
#include ... |
wenliangwu/sof | src/platform/mt8195/lib/dai.c | <filename>src/platform/mt8195/lib/dai.c
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2021 Mediatek
//
// Author: <NAME> <<EMAIL>>
#include <sof/common.h>
#include <sof/lib/dai.h>
#include <sof/lib/memory.h>
#include <sof/sof.h>
#include <sof/spinlock.h>
#include <ipc/dai.h>
#include <ipc/stream.h>
#inc... |
wenliangwu/sof | src/drivers/amd/renoir/acp_dmic_dai.c | <filename>src/drivers/amd/renoir/acp_dmic_dai.c
// SPDX-License-Identifier: BSD-3-Clause
//
//Copyright(c) 2021 AMD. All rights reserved.
//
// Author: <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
#include <sof/audio/component.h>
#include <sof/drivers/acp_dai_dma.h>
#include <sof/drivers/interrupt.h>
#in... |
wenliangwu/sof | src/include/ipc4/base_fw.h | <reponame>wenliangwu/sof
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2021 Intel Corporation. All rights reserved.
*/
/*
* This file contains structures that are exact copies of an existing ABI used
* by IOT middleware. They are Intel specific and will be used by one middleware.
*
* Some of the str... |
wenliangwu/sof | src/drivers/mediatek/mt8195/afe-memif.c | <filename>src/drivers/mediatek/mt8195/afe-memif.c
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2021 Mediatek
//
// Author: <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
#include <sof/common.h>
#include <sof/audio/component.h>
#include <sof/drivers/afe-drv.h>
#include <sof/drivers/afe-dai.h>
#include <sof... |
wenliangwu/sof | src/include/ipc4/base-config.h | <filename>src/include/ipc4/base-config.h<gh_stars>100-1000
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2021 Intel Corporation. All rights reserved.
*/
/*
* This file contains structures that are exact copies of an existing ABI used
* by IOT middleware. They are Intel specific and will be used by one... |
wenliangwu/sof | src/platform/amd/renoir/lib/dai.c | <reponame>wenliangwu/sof
// SPDX-License-Identifier: BSD-3-Clause
//
//Copyright(c) 2021 AMD. All rights reserved.
//
//Author: <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
#include <sof/common.h>
#include <sof/drivers/acp_dai_dma.h>
#include <sof/lib/dai.h>
#include <sof/li... |
wenliangwu/sof | src/include/sof/audio/component_ext.h | /* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2016 Intel Corporation. All rights reserved.
*
* Author: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
/**
* \file include/sof/audio/component_ext.h
* \brief Component API for Infrastructure
* \author <NAME> <<EMAIL>>
* \author <NAME> <<EMAIL>>
*/
... |
wenliangwu/sof | src/include/sof/math/base2log.h | <reponame>wenliangwu/sof
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2021 Intel Corporation. All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*
*/
#ifndef __SOF_MATH_BASE_TWO_LOGARITHM_H__
#define __SOF_MATH_BASE_TWO_LOGARITHM_H__
/* Include Files */
#include <stdint.h>
/* Function Declarations *... |
wenliangwu/sof | src/audio/codec_adapter/codec/cadence.c | <filename>src/audio/codec_adapter/codec/cadence.c
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2020 Intel Corporation. All rights reserved.
//
// Author: <NAME> <<EMAIL>>
/*
* \file cadence.c
* \brief Cadence Codec API
* \author <NAME> <<EMAIL>>
*
*/
#include <sof/audio/codec_adapter/codec/generic... |
wenliangwu/sof | src/drivers/amd/renoir/interrupt.c | // SPDX-License-Identifier: BSD-3-Clause
//
//Copyright(c) 2021 AMD. All rights reserved.
//
//Author: <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
#include <sof/common.h>
#include <platform/chip_offset_byte.h>
#include <platform/chip_registers.h>
#include <sof/drivers/interr... |
wenliangwu/sof | src/platform/library/lib/clk.c | // SPDX-License-Identifier: BSD-3-Clause
#include <sof/lib/clk.h>
uint64_t clock_ms_to_ticks(int clock, uint64_t ms)
{
return 0;
}
uint64_t clock_us_to_ticks(int clock, uint64_t us)
{
return 0;
}
void platform_timer_set_delta(struct timer *timer, uint64_t ns) {}
|
wenliangwu/sof | third_party/include/google_rtc_audio_processing.h | // SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2021 Google LLC.
//
// Author: <NAME> <<EMAIL>>
#ifndef GOOGLE_RTC_AUDIO_PROCESSING_H
#define GOOGLE_RTC_AUDIO_PROCESSING_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
// This define ensure that the linked library matches the header file.
#de... |
wenliangwu/sof | src/include/sof/trace/dma-trace.h | <gh_stars>100-1000
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2016 Intel Corporation. All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*/
#ifndef __SOF_TRACE_DMA_TRACE_H__
#define __SOF_TRACE_DMA_TRACE_H__
#include <sof/lib/dma.h>
#include <sof/schedule/task.h>
#include <sof/sof.h>
#include <sof/... |
wenliangwu/sof | src/include/sof/coherent.h | /* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2021 Intel Corporation. All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*/
#ifndef __SOF_COHERENT_H__
#define __SOF_COHERENT_H__
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <sof/spinlock.h>
#include <sof/list.h>
#include <sof/... |
wenliangwu/sof | test/cmocka/src/math/arithmetic/base2_logarithm.c | // SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2021 Intel Corporation. All rights reserved.
//
// Author: <NAME> <<EMAIL>>
#include <stdio.h>
#include <stdint.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <math.h>
#include <cmocka.h>
#include <string.h>
#include <sof/math/base2l... |
wenliangwu/sof | src/drivers/amd/renoir/acp_sp_dma.c | <gh_stars>100-1000
// SPDX-License-Identifier: BSD-3-Clause
//
//Copyright(c) 2021 AMD. All rights reserved.
//
//Author: <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
#include <sof/atomic.h>
#include <sof/audio/component.h>
#include <sof/bit.h>
#include <sof/drivers/acp_dai_... |
wenliangwu/sof | src/include/sof/audio/tdfb/tdfb_comp.h | /* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2020 Intel Corporation. All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*/
#ifndef __SOF_AUDIO_TDFB_CONFIG_H__
#define __SOF_AUDIO_TDFB_CONFIG_H__
#include <sof/platform.h>
#include <sof/audio/audio_stream.h>
#include <sof/math/fir_generic.h>
#include <... |
wenliangwu/sof | zephyr/include/sof/trace/trace.h | // SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2020 Intel Corporation. All rights reserved.
//
#ifndef __SOF_TRACE_TRACE1_H__
#define __SOF_TRACE_TRACE1_H__
#ifndef ZEPHYR_INCLUDE_LOGGING_LOG_H_
#include <logging/log.h>
#include <sys/printk.h>
/* Level of SOF trace on Zephyr */
#define SOF_ZEPHYR_TRACE_... |
wenliangwu/sof | src/drivers/intel/ssp/mn.c | // SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2020 Intel Corporation. All rights reserved.
//
// Author: <NAME> <<EMAIL>>
#include <sof/drivers/mn.h>
#include <sof/drivers/ssp.h>
#include <sof/lib/memory.h>
#include <sof/lib/shim.h>
#include <sof/lib/uuid.h>
#include <sof/math/numbers.h>
#include <sof/so... |
wenliangwu/sof | test/cmocka/src/audio/volume/volume_process.c | // SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2018 Intel Corporation. All rights reserved.
//
// Author: <NAME> <<EMAIL>>
#include "../../util.h"
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <stdint.h>
#include <cmocka.h>
#include <sof/audio/component.h>
#include <sof/audio/volum... |
xpertode/ios_webkit_debug_proxy | include/hash_table.h | <gh_stars>100-1000
// Google BSD license http://code.google.com/google_bsd_license.html
// Copyright 2012 Google Inc. <EMAIL>
//
// A generic hash table implementation
//
#ifndef HASH_TABLE_H
#define HASH_TABLE_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
// cast int to void*
#define HT_KEY(i) ((vo... |
xpertode/ios_webkit_debug_proxy | src/hash_table.c | <reponame>xpertode/ios_webkit_debug_proxy<filename>src/hash_table.c
// Google BSD license http://code.google.com/google_bsd_license.html
// Copyright 2012 Google Inc. <EMAIL>
//
// A basic hash table, could be easily enhanced...
//
#include <stdlib.h>
#include <string.h>
#include "hash_table.h"
// constant for now,... |
xpertode/ios_webkit_debug_proxy | examples/ws_echo2.c | // Google BSD license http://code.google.com/google_bsd_license.html
// Copyright 2012 Google Inc. <EMAIL>
//
// A select-based websocket "echo" server
//
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <sys/socket.h>
#include <arpa/ine... |
xpertode/ios_webkit_debug_proxy | src/ios_webkit_debug_proxy_main.c | // Google BSD license http://code.google.com/google_bsd_license.html
// Copyright 2012 Google Inc. <EMAIL>
//
// This "main" connects the debugger to our socket management backend.
//
#define _GNU_SOURCE
#include <getopt.h>
#include <errno.h>
#include <regex.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio... |
ICnerds/DMG | src/types.h | <reponame>ICnerds/DMG<gh_stars>0
#pragma once
#include <stdint.h>
#include <stddef.h>
#include <limits.h>
#include <float.h>
typedef int8_t s8;
typedef int16_t s16;
typedef int32_t s32;
typedef int64_t s64;
typedef int32_t b32;
typedef uint8_t u8;
typedef uint16_t u16;
typedef uint32_t u32;
typedef u... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/SharedUtil.Hash.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: SharedUtil.Hash.h
* PURPOSE:
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
******************... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/SharedUtil.Legacy.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: SharedUtil.Legacy.h
* PURPOSE: Home for stuff removed from SharedUtil files.
* To prevent breaking other ... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/CMtaVersion.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: SharedUtil.MtaVersion.h
* PURPOSE:
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
************... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/SharedUtil.Logging.h | <gh_stars>10-100
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: SharedUtil.Logging.h
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
***********... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/SharedUtil.ThreadPool.h | ///*****************************************************************************
// *
// * PROJECT: Multi Theft Auto v1.0
// * LICENSE: See LICENSE in the top level directory
// * FILE: SharedUtil.ThreadPool.h
// *
// * Multi Theft Auto is available from http://www.multitheftauto.com/
// *
// *******... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/net/CNetServer.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: sdk/net/CNetServer.h
* PURPOSE: Net server module interface
*
* Multi Theft Auto is available from http://www.multith... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/xml/CXML.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: sdk/xml/CXML.h
* PURPOSE: XML handler interface
*
* Multi Theft Auto is available from http://www.multitheftauto.com/... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/net/CNetHTTPDownloadManagerInterface.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: sdk/net/CNetHTTPDownloadManagerInterface.h
* PURPOSE: Network HTTP download interface
*
* Multi Theft Auto is availab... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/SharedUtil.Misc.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: SharedUtil.Misc.h
* PURPOSE:
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
******************... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/core/CExceptionInformation_Impl.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: core/CExceptionInformation_Impl.h
* PURPOSE: Header file for exception information parser class
*
* Multi Theft Auto ... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/SharedUtil.Map.h | <gh_stars>10-100
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: SharedUtil.Map.h
* PURPOSE:
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
**... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/SharedUtil.Time.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: SharedUtil.Time.h
* PURPOSE:
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
******************... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/WString.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: WString.h
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
***************************************... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/SharedUtil.ClassIdent.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: SharedUtil.ClassIdent.h
* PURPOSE:
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
************... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/core/CServerInterface.h | <reponame>correaAlex/Slipe-Server
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: sdk/core/CServerInterface.h
* PURPOSE: Core server interface
*
* Multi Theft Auto i... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/Common.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: sdk/Common.h
* PURPOSE: Header for common definitions
*
* Multi Theft Auto is available from http://www.multitheftaut... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/core/CModManager.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: sdk/core/CModManager.h
* PURPOSE: Server mod manager interface
*
* Multi Theft Auto is available from http://www.mult... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/SharedUtil.Math.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: SharedUtil.Math.h
* PURPOSE:
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
******************... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/net/packetenums.h | <gh_stars>10-100
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: Shared/sdk/net/packetenums.h
* PURPOSE: Network packet enumerations
*
* Multi Theft Auto is availabl... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/core/CExceptionInformation.h | <reponame>correaAlex/Slipe-Server<gh_stars>10-100
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: sdk/core/CExceptionInformation.h
* PURPOSE: Exception information inte... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/SString.h | <filename>NetModuleWrapper/mta/sdk/SString.h
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: SString.h
* PURPOSE:
*
* Multi Theft Auto is available from http://www.multi... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/CDuplicateLineFilter.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: CDuplicateLineFilter.h
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
**************************... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/SharedUtil.File.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: SharedUtil.File.h
* PURPOSE:
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
******************... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/SharedUtil.AllocTracking.h | <gh_stars>10-100
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: SharedUtil.AllocTracking.h
* PURPOSE:
*
* Multi Theft Auto is available from http://www.multitheftauto.c... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/core/CDynamicLibrary.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: core/CDynamicLibrary.h
* PURPOSE: Dynamic library handling class
*
* Multi Theft Auto is available from http://www.mu... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/SharedUtil.Buffer.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: SharedUtil.Buffer.h
* PURPOSE:
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
****************... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/CFastList.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: CFastList.h
* PURPOSE:
*
* Multi Theft Auto is available from http://www.multitheftauto.com/
*
************************... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/SharedUtil.Game.h | <gh_stars>10-100
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: SharedUtil.Game.h
* PURPOSE: Shared stuff which is game oriented
*
* Multi Theft Auto is available f... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/SharedUtil.h | <reponame>correaAlex/Slipe-Server<filename>NetModuleWrapper/mta/sdk/SharedUtil.h<gh_stars>10-100
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: SharedUtil.h
* PURPOSE: ... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/core/StdInc.h | <filename>NetModuleWrapper/mta/core/StdInc.h
/*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: StdInc.h
* PURPOSE:
*
* Multi Theft Auto is available from http://www.multit... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/MTAPlatform.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: sdk/Platform.cpp
* PURPOSE: Platform-specific defines and methods
*
* Multi Theft Auto is available from http://www.m... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/SharedUtil.Profiling.h | /*****************************************************************************
*
* PROJECT: Multi Theft Auto v1.0
* LICENSE: See LICENSE in the top level directory
* FILE: SharedUtil.Profiling.h
* PURPOSE: Shared stuff which measures things
*
* Multi Theft Auto is available from http://ww... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/sdk/SharedUtil.AsyncTaskScheduler.h | #pragma once
#include <queue>
#include <functional>
#include <memory>
#include <thread>
#include <mutex>
namespace SharedUtil
{
///////////////////////////////////////////////////////////////
//
// CAsyncTaskScheduler class
//
// Asynchronously executes tasks in secondary worker threads
// and ... |
correaAlex/Slipe-Server | NetModuleWrapper/mta/version.h | <gh_stars>10-100
//
// MTA10_Server/version.h
//
// Server version file
//
#pragma once
//
// To compile a public server:
// 1. set MTASA_VERSION_TYPE to VERSION_TYPE_RELEASE
// 2. Use net.dll/net.so from the latest untested/rc/release (nightly.mtasa.com)
//
// To compile a custom server:
// 1. set MTAS... |
farhanfuadabir/ArcherClock | archer_clock_demo_avr/archer_clock/serial_lib.h | #ifndef serial_lib
#define serial_lib
#define DEC 10
#define BIN 2
#define OCT 8
#define HEX 16
#include <avr/io.h>
#include <stdlib.h>
void UART_init(void);
void Serial_sendInt(unsigned int data, int intBase);
void Serial_sendChar(char c);
void Serial_sendString(char *s);
unsign... |
farhanfuadabir/ArcherClock | archer_clock_demo_avr/archer_clock/lcd_lib.h | #include <avr/io.h>
#include <inttypes.h>
#include <util/delay.h>
#include <avr/pgmspace.h>
//Customize this portion according to your hardware
//**************************************************
#define LCD_RS 7 //define MCU pin connected to LCD RS
#define LCD_RW 6 //define MCU pin connected to LCD R/W
#d... |
farhanfuadabir/ArcherClock | archer_clock_demo_avr/archer_clock/lcd_lib.c | <reponame>farhanfuadabir/ArcherClock
#define F_CPU 16000000UL
#include <avr/io.h>
#include <inttypes.h>
#include <util/delay.h>
#include <avr/pgmspace.h>
#include "lcd_lib.h"
static void LCDMix_4Bit(uint8_t data);
static void LCDMix_4Bit(uint8_t data)
{
if((data) & (0b10000000))
{
LDPD7 |= 1 <<... |
farhanfuadabir/ArcherClock | archer_clock_demo_avr/archer_clock/serial_lib.c | <filename>archer_clock_demo_avr/archer_clock/serial_lib.c
#include "serial_lib.h"
void UART_init(void)
{
UCSRC &= ~(1 << UMSEL); // Asynchronous Mode Selection
UCSRA &= ~(1 << U2X); // Normal Transmission Mode
UBRRH = 0;
UBRRL = 103;
UCSRB |= (1 << RXEN) | (1 << TXEN);
UCSRC |= (1 << URSEL) | ... |
farhanfuadabir/ArcherClock | archer_clock_demo_avr/archer_clock/Button_Debounce.h | #define Button_Debounce
#include <avr/io.h>
char ButtonCheck(int Button_Number, unsigned char PORTofButton, unsigned char PORT_Bit,int threshold);
//main program below:
char Pressed[NumberofButtons];
int Pressed_Confidence_Level[NumberofButtons]; //Measure button press confidence
int Released_Confiden... |
farhanfuadabir/ArcherClock | archer_clock_demo_avr/archer_clock/main.c | /*
* archer_clock.c
*
* Created: 8/13/2017 9:31:57 AM
* Author : FUAD
*/
#define F_CPU 16000000UL
#define NumberofButtons 3
#include <avr/io.h>
#include <util/delay.h>
#include <avr/interrupt.h>
#include "serial_lib.h"
#include "lcd_lib.h"
#include "Button_Debounce.h"
uint16_t timerLimit = 6... |
Zeitlin1/QR_Code_Interpreter | QR_Code_Scanner/HeaderBridgeFile.h | <reponame>Zeitlin1/QR_Code_Interpreter
//
// HeaderBridgeFile.h
// QR_Code_Scanner
//
// Created by Anthony on 12/8/16.
// Copyright © 2016 Anthony. All rights reserved.
//
#ifndef HeaderBridgeFile_h
#define HeaderBridgeFile_h
#import <CommonCrypto/CommonDigest.h>
#endif /* HeaderBridgeFile_h */
|
EvanGertis/linked-list-part-1 | linked_list.c | #include "stdio.h"
#include "stdlib.h"
struct node{
int info; // store data, numbers
struct node *link; // [1711| x]->[122| x]->[3233| x]->[4244| x]
};
struct node *createList(struct node *start);
void displayList(struct node *start);
struct node *insertInBeginning(struct node *start, int data);
void insertAtEnd(st... |
click3/SubProjects | qnt_converter/qnt_converter/qnt.h | <reponame>click3/SubProjects
#ifndef __QNT_H__
#define __QNT_H__
typedef struct {
unsigned char red[256];
unsigned char green[256];
unsigned char blue[256];
} Pallet256;
typedef enum {
ALCG_UNKNOWN = 1,
ALCG_VSP = 2,
ALCG_PMS8 = 3,
ALCG_PMS16 = 4,
ALCG_BMP8 = 5,
ALCG_BMP24 ... |
click3/SubProjects | screen_off/screen_off.c | #include <windows.h>
#include <stdio.h>
#pragma comment (lib,"user32.lib")
main(){
SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, 2);
return 0;
}
|
click3/SubProjects | keyboard_emulater/keyboard_emulater.h | <reponame>click3/SubProjects
#pragma once
#include <windows.h>
#include <vector>
/** キーボードエミュレート用簡易クラス
*
* 用語:
* counter:フレーム計算に使われる、指定なしだとrun実行ごとに+1されるものとして動作する
* keyFrame:遅延フレーム、指定フレームだけ遅れて実行される。
* vk:仮想キーコード
* dik:スキャンコード
* dwFlags:MSDNのkeybd_eventのdwFlags参照
*
* .*?Event.*?系:
* そのまま指定した入力でキーボードイベントを発生さ... |
sjvs/andysim-helpme-copy | test/fullexample.c | // BEGINLICENSE
//
// This file is part of helPME, which is distributed under the BSD 3-clause license,
// as described in the LICENSE file in the top level directory of this project.
//
// Author: <NAME>
//
// ENDLICENSE
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "helpme.h"
#include "print_re... |
sjvs/andysim-helpme-copy | src/fftw_wrapper.h | // BEGINLICENSE
//
// This file is part of helPME, which is distributed under the BSD 3-clause license,
// as described in the LICENSE file in the top level directory of this project.
//
// Author: <NAME>
//
// ENDLICENSE
#ifndef _HELPME_FFTW_WRAPPER_H_
#define _HELPME_FFTW_WRAPPER_H_
#include <complex>
#include <iost... |
sjvs/andysim-helpme-copy | single_include/helpme_standalone.h |
//
// WARNING! This file is automatically generated from the sources in the src directory.
// Do not modify this source code directly as any changes will be overwritten
//
// original file: ../src/helpme.h
// BEGINLICENSE
//
// This file is part of helPME, which is distributed under the BSD 3-clause license,
// as ... |
sjvs/andysim-helpme-copy | test/fullexample_parallel.c | <filename>test/fullexample_parallel.c
// BEGINLICENSE
//
// This file is part of helPME, which is distributed under the BSD 3-clause license,
// as described in the LICENSE file in the top level directory of this project.
//
// Author: <NAME>
//
// ENDLICENSE
#include <mpi.h>
#include <stdlib.h>
#include <stdio.h>
#i... |
sjvs/andysim-helpme-copy | src/matrix.h | <reponame>sjvs/andysim-helpme-copy
// BEGINLICENSE
//
// This file is part of helPME, which is distributed under the BSD 3-clause license,
// as described in the LICENSE file in the top level directory of this project.
//
// Author: <NAME>
//
// ENDLICENSE
#ifndef _HELPME_MATRIX_H_
#define _HELPME_MATRIX_H_
#include <... |
sjvs/andysim-helpme-copy | src/helpme.h | // BEGINLICENSE
//
// This file is part of helPME, which is distributed under the BSD 3-clause license,
// as described in the LICENSE file in the top level directory of this project.
//
// Author: <NAME>
//
// ENDLICENSE
#ifndef _HELPME_HELPME_H_
#define _HELPME_HELPME_H_
#if __cplusplus || DOXYGEN
// C++ header
#i... |
sjvs/andysim-helpme-copy | src/splines.h | // BEGINLICENSE
//
// This file is part of helPME, which is distributed under the BSD 3-clause license,
// as described in the LICENSE file in the top level directory of this project.
//
// Author: <NAME>
//
// ENDLICENSE
#ifndef _HELPME_SPLINES_H_
#define _HELPME_SPLINES_H_
#include "matrix.h"
/*!
* \file splines.h... |
hedger/tkvdb | tkvdb.c | <reponame>hedger/tkvdb<filename>tkvdb.c<gh_stars>1-10
/*
* tkvdb
*
* Copyright (c) 2016-2019, <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all co... |
hedger/tkvdb | impl/subnode.h | <reponame>hedger/tkvdb<filename>impl/subnode.h<gh_stars>1-10
/*
* Copyright (c) 2020, <NAME>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
... |
hedger/tkvdb | tkvdb.h | #ifndef tkvdb_h_included
#define tkvdb_h_included
#include <limits.h>
#include <stdint.h>
#include <stddef.h>
typedef struct tkvdb tkvdb;
typedef struct tkvdb_params tkvdb_params;
typedef struct tkvdb_triggers tkvdb_triggers;
#ifndef TKV_64BIT_PTR
typedef uint32_t tkvdb_offs_t;
#else
typedef uint64_t tkvdb_offs_t;
#... |
Acry/SDL2_simple_music_player | src/helper.c | <filename>src/helper.c<gh_stars>0
#include "helper.h"
SDL_Window *Window = NULL;
SDL_Renderer *Renderer = NULL;
TTF_Font *icon_font = NULL;
void init(void)
{
SDL_Init(SDL_INIT_EVERYTHING);
TTF_Init();
Window = SDL_CreateWindow("", 0, 0, 0, 0, SDL_WINDOW_HIDDEN);
//BEGIN ICON
SDL_Surface *icon;
icon_font=TT... |
Acry/SDL2_simple_music_player | src/2.c | <reponame>Acry/SDL2_simple_music_player<filename>src/2.c
//BEGIN PROGRAM HEAD
//BEGIN DESCRIPTION
/* SDL2_simple_music_player:
* Plays mp3-music
* Left mouse button on button / or space switches play and pause.
* Left mouse button on hold button or
* backspace stops music (rewind to start).
*
*/
//END DESCRIPT... |
Acry/SDL2_simple_music_player | src/1.c | <filename>src/1.c<gh_stars>0
//BEGIN PROGRAM HEAD
//BEGIN DESCRIPTION
/* SDL2_simple_music_player:
* Plays mp3-music
* Left mouse button on button / or space switches play and pause.
* Left mouse button on hold button or
* backspace stops music (rewind to start).
*
*/
//END DESCRIPTION
//BEGIN INCLUDES
//loca... |
LHLaurini/textar | src/textar.c | #include "textar.h"
#include "textar-internals.h"
#include "entry.h"
#include "list.h"
#include "path.h"
#include <errno.h>
#include <limits.h>
#include <string.h>
bool textArCreateArchive(AppendArchiveFn append_archive,
EntryIteratorFn entry_iterator,
int options, VerboseFn verbose,
void* userPt... |
LHLaurini/textar | src/entry.c | <filename>src/entry.c
#include "entry.h"
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
size_t findLength(const char* line)
{
const char* orig = line;
for (; *line && *line != '\n'; line++);
return line - orig;
}
char* findEnd(char* line)
{
for (; *line && *line ... |
LHLaurini/textar | src/entry.h | #pragma once
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/stat.h>
size_t findLength(const char* line);
char* findEnd(char* line);
char* findFirstOf(char* line, char c);
char* findLastOf(char* line, char c);
char* findWhitespace(char* line);
char* skipWhitespace(char* line);
const char* ... |
LHLaurini/textar | src/textar-internals.h | <gh_stars>0
/// \file
/// \summary Internals only needed if making a custom implementation
#pragma once
#ifdef __cplusplus
#define EXTERN extern "C"
#else
#define EXTERN
#endif
/// Set an error or return a previously set error.
/// Once an non-NULL string is passed to this function, it can only be changed
/// after ... |
LHLaurini/textar | src/textar.h | <gh_stars>0
/// \file
/// \brief Main header
#pragma once
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <sys/types.h>
#include <unistd.h>
#ifdef __cplusplus
#define EXTERN extern "C"
#else
#define EXTERN
#endif
typedef enum TextArEntryType
{
TEXTARENTRYTYPE_FILE,
TEXTARENTRYTYPE_DIRECTORY,... |
LHLaurini/textar | src/stdimp.c | <reponame>LHLaurini/textar
#include "stdimp.h"
#include "entry.h"
#include "list.h"
#include "textar-internals.h"
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <grp.h>
#include <pwd.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include... |
LHLaurini/textar | src/path.c | #include "path.h"
const char* removeRoot(const char* path)
{
while (*(path++) == '/')
{
}
return path - 1;
}
const char* findComponentEnd(const char* path)
{
for (; *path != '/' && *path != 0; path++)
{
}
return path;
}
const char* findNextComponent(const char* path)
{
return removeRoot(findComponentEnd(pat... |
LHLaurini/textar | src/list.c | #include "list.h"
#include <stdlib.h>
typedef struct Element
{
struct Element* next;
char data[];
} Element;
List* listCreate()
{
Element* root = malloc(sizeof(Element));
root->next = NULL;
return (List*)root;
}
void* listAppend(List* list, size_t elementSize)
{
void* element;
void* nextElement;
for (eleme... |
LHLaurini/textar | src/stdimp.h | <filename>src/stdimp.h
/// \file
/// \brief Standard implementation.
/// \warning These functions may change at any time, without notice. Because of
/// that, it's not recommended to use them when making a custom
/// implementation. Instead, copy them and change what's needed.
#pragma once
#include ... |
LHLaurini/textar | src/main.c |
#include "textar.h"
#include <errno.h>
#include <getopt.h>
#include <limits.h>
#include <locale.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Args
{
char operation;
bool help;
char* directory;
char* file;
int mode;
int ownid;
int ownname;
};
struct Args handleArgs(... |
LHLaurini/textar | src/list.h | <reponame>LHLaurini/textar<filename>src/list.h
#pragma once
#include <stddef.h>
#include <stdint.h>
typedef struct List List;
List* listCreate();
void* listAppend(List* list, size_t elementSize);
void* listInsert(List* list, const void* afterElement, size_t elementSize);
void* listIterate(List* list, const void* ele... |
LHLaurini/textar | src/path.h | <filename>src/path.h
#pragma once
#include <stdint.h>
#include <sys/stat.h>
const char* removeRoot(const char* path);
const char* findComponentEnd(const char* path);
const char* findNextComponent(const char* path);
const char* fixPath(const char* path);
|
YuviTz1/Gameboy-Emulator | src/display.h | <filename>src/display.h
#pragma once
#include <SFML\Graphics.hpp>
#include <iostream>
#include "memory.h"
class Display
{
public:
sf::RenderWindow window;
sf::Image bg_array;
sf::Image sprites_array;
sf::Image window_array;
sf::Sprite bg_sprite;
sf::Sprite sprites_sprite; // lol
sf::Sprite window_s... |
YuviTz1/Gameboy-Emulator | src/memory_controllers.h | #pragma once
#include "types.h"
// Abstract class that each memory controller must represent
class MemoryController
{
protected:
// $0000 - $7FFF, 32kB Cartridge (potentially dynamic)
vector<Byte> CART_ROM;
// $A000 - $BFFF, 8kB Cartridge external switchable RAM bank
vector<Byte> ERAM;
// Ban... |
YuviTz1/Gameboy-Emulator | src/memory.h | #pragma once
#include "types.h"
#include "memory_controllers.h"
class Memory
{
private:
// Dynamic Memory Controller
MemoryController* controller;
void do_dma_transfer();
Byte get_joypad_state();
public:
// Memory Regions
vector<Byte> VRAM; // $8000 - $9FFF, 8kB Video RAM
vector<Byte> OAM; // $F... |
YuviTz1/Gameboy-Emulator | src/types.h | <reponame>YuviTz1/Gameboy-Emulator
#pragma once
#include <iostream>
#include <vector>
#include <cstdlib>
#include <cstdint>
#include <fstream>
#include <iterator>
#include <string>
#include <iostream>
#include <algorithm>
#include <math.h>
using namespace std;
typedef uint16_t Address, Byte_2;
typedef uint8_t Byte, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.