repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
j00v/ZENZO-Core | src/qt/startoptionsrestore.h | <reponame>j00v/ZENZO-Core
//
// Created by Kolby on 9/4/2019.
//
#include <QLineEdit>
#include <QWidget>
#include <list>
#include <QString>
namespace Ui {
class StartOptionsRestore;
}
/** Dialog to ask for passphrases. Used for encryption only
*/
class StartOptionsRestore : public QWidget {
Q_OBJECT
public... |
j00v/ZENZO-Core | src/qt/startoptionsdialog.h | <filename>src/qt/startoptionsdialog.h
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once
#include <QDialog>
class CWallet;
namespace Ui {
class StartOptions... |
Paulther/midterm1 | pi_funs.h |
#define M_PI 3.14159265358979323846 /* pi */
double pi_leibniz (int n);
double pi_bbp (int n);
|
Paulther/midterm1 | pi_leibiniz.c | #include <stdio.h>
//Uses the Leibniz series to calculate pi
double pi_leibiniz (int n);
double pi_leibiniz (int n)
{
double term = 0.;
int s = 1;
for (int i = 0; i < n; i++)
{
double nterm = 4. * s / (2. * i + 1);
s = -s;
term = term + nterm;
}
return term;
}
|
Paulther/midterm1 | m1.c | <reponame>Paulther/midterm1<gh_stars>0
#include <stdio.h>
#include <math.h>
#include "timer.h"
#include "pi_funs.h"
double pi_leibiniz (int n);
double pi_bbp (int n);
int adjust_rep_count (int n, double z, double x, double y);
int main (void)
{
int i2 = 1;
double tol = .000001;
double abserr;
double ... |
Paulther/midterm1 | pi_bbp.c | <gh_stars>0
#include <stdio.h>
// Uses the BBP method to calculate pi
double pi_bbp (int n);
double pi_bbp (int n)
{
double term = 0.;
double nterm;
double d = 0;
double f = 16;
for (int i = 0; i < n; i++)
{
f = (1. / 16.) * f;
d = 8. * ((double) i);
nterm =
... |
nickchops/s3eAndroidFullscreen | h/s3eAndroidFullscreen.h | <gh_stars>0
/*
* (C) 2001-2012 Marmalade. All Rights Reserved.
*
* This document is protected by copyright, and contains information
* proprietary to Marmalade.
*
* This file consists of source code released by Marmalade under
* the terms of the accompanying End User License Agreement (EULA).
* Please d... |
nickchops/s3eAndroidFullscreen | source/h/s3eAndroidFullscreen_autodefs.h | <filename>source/h/s3eAndroidFullscreen_autodefs.h
/*
* WARNING: this is an autogenerated file and will be overwritten by
* the extension interface script.
*/
#ifndef S3EANDROIDFULLSCREEN_AUTODEFS_H
#define S3EANDROIDFULLSCREEN_AUTODEFS_H
/**
* string name used to locate this extension
*/
#define S3E_EXT_ANDROIDF... |
nickchops/s3eAndroidFullscreen | source/h/s3eAndroidFullscreen_internal.h | /*
* Internal header for the s3eAndroidFullscreen extension.
*
* This file should be used for any common function definitions etc that need to
* be shared between the platform-dependent and platform-indepdendent parts of
* this extension.
*/
/*
* NOTE: This file was originally written by the extension builder, ... |
nickchops/s3eAndroidFullscreen | example/ExamplesMain/src/ExamplesMain.h | <filename>example/ExamplesMain/src/ExamplesMain.h
/*
* This file is part of the Marmalade SDK Code Samples.
*
* (C) 2001-2012 Marmalade. All Rights Reserved.
*
* This source code is intended only as a supplement to the Marmalade SDK.
*
* THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF A... |
nickchops/s3eAndroidFullscreen | quick/QAndroidFullscreen.h | #ifndef __Q_ANDROIDFULLSCREEN_H
#define __Q_ANDROIDFULLSCREEN_H
#include <string>
// tolua_begin
namespace androidFullscreen {
bool isAvailable();
bool isImmersiveSupported();
void turnOn(bool immersive=true, bool stickyNavBar=true, bool staticLayout=true);
void turnOff(bool showStatusBar=false, bool show... |
lqwang521/CocoapodsTestStatic | CocoapodsTestStatic/Classes/LQTestMasonryView.h | <filename>CocoapodsTestStatic/Classes/LQTestMasonryView.h
//
// LQTestMasonryView.h
// CocoapodsTestStatic
//
// Created by wlq on 2018/8/31.
//
#import <UIKit/UIKit.h>
@interface LQTestMasonryView : UIView
@property (nonatomic, strong) UILabel *aLabel;
@end
|
lqwang521/CocoapodsTestStatic | Example/Pods/Target Support Files/Pods-CocoapodsTestStatic_Example/Pods-CocoapodsTestStatic_Example-umbrella.h | <gh_stars>0
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double Pods_CocoapodsTestStatic_ExampleVersionNumber;
FOUNDATION_EXPORT const unsigned char Po... |
lqwang521/CocoapodsTestStatic | Example/CocoapodsTestStatic/LQAppDelegate.h | <reponame>lqwang521/CocoapodsTestStatic
//
// LQAppDelegate.h
// CocoapodsTestStatic
//
// Created by lqwang521 on 08/31/2018.
// Copyright (c) 2018 lqwang521. All rights reserved.
//
@import UIKit;
@interface LQAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@e... |
lqwang521/CocoapodsTestStatic | Example/CocoapodsTestStatic/LQViewController.h | //
// LQViewController.h
// CocoapodsTestStatic
//
// Created by lqwang521 on 08/31/2018.
// Copyright (c) 2018 lqwang521. All rights reserved.
//
@import UIKit;
@interface LQViewController : UIViewController
@end
|
Manishgithub2021/Career | DoubleLinkedList.c | #include<stdio.h>
#include<conio.h>
#include<stdlib.h>
struct node{
struct node *prev;
int data;
struct node *next;
};
struct node *head;
void display(){
struct node *temp;
temp=(struct node *)malloc(sizeof(struct node *));
if(!head){
printf("\n\n**********EMPTY***********\n\n");
}
else{
tem... |
Manishgithub2021/Career | STACK_IMPLEMENTATION_LINKEDLIST.c | <reponame>Manishgithub2021/Career
//STACK IMPLEMENTATION USING SINGLE LINKED LIST
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
// Defining struct
struct node{
int data;
struct node *next;
};
struct node *head;
void display(){
if(!head){
printf("\nStack is empty\n");
}
else{
struct node... |
Manishgithub2021/Career | SingleLinkedList.c | <filename>SingleLinkedList.c<gh_stars>0
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
//SINGLE LINKED LIST IMPLEMENTATION
struct node{
int data;
struct node *next;
};
struct node *head;
void insertatBegining(int num){
struct node *temp;
temp=(struct node *)malloc(sizeof(struct node *));
t... |
Manishgithub2021/Career | Queue_using_singleLinkedList.c | <gh_stars>0
#include<conio.h>
#include<stdio.h>
struct node{
int data;
struct node *next;
};
struct node *head;
void insert(int num){
struct node *last,*temp;
if(!head){
temp=(struct node *)malloc(sizeof(struct node *));
temp->data=num;
temp->next=NULL;
head=temp;
}
else{
temp=(st... |
VijayrajS/3d-game | src/cube.h | <filename>src/cube.h
#include "main.h"
#ifndef CUBE_H
#define CUBE_H
class Cube
{
public:
Cube() {}
Cube(float x, float y, float z, float length, float breadth, float width, color_t color);
glm::vec3 position;
glm::vec3 speed;
float rotation;
float breadth;
float length;
float height... |
VijayrajS/3d-game | src/bomb.h | <filename>src/bomb.h
#include "main.h"
#ifndef BOMB_H
#define BOMB_H
class Bomb
{
public:
Bomb() {}
Bomb(float x, float y, float z, float rx, float ry, float rz, int flag, float speed);
glm::vec3 position;
glm::mat4 cannonb;
float speed;
float rotationx;
float rotationy;
float rotati... |
VijayrajS/3d-game | src/ring.h | #include "main.h"
#ifndef RING_H
#define RING_H
class Ring
{
public:
Ring() {}
Ring(float x, float y, float z, float rx, float r, color_t color);
glm::vec3 position;
float speed;
float rotation;
int smokeon;
void draw(glm::mat4 VP);
void set_position(float x, float y, float z);
v... |
VijayrajS/3d-game | src/ball.h | <reponame>VijayrajS/3d-game
#include "main.h"
#ifndef BALL_H
#define BALL_H
class Ball {
public:
Ball() {}
Ball(float x, float y);
glm::vec3 position;
float rotationx;
float rotationy;
float rotationz;
void draw(glm::mat4 VP);
void set_position(float x, float y, float z);
bool se... |
VijayrajS/3d-game | src/volcano.h | <gh_stars>0
#include "main.h"
#ifndef VOLCANO_H
#define VOLCANO_H
class Volcano
{
public:
Volcano() {}
Volcano(float x, float y, float z, color_t color);
glm::vec3 position;
float speed;
float rotation;
float width;
float height;
void draw(glm::mat4 VP);
void set_position(float x... |
VijayrajS/3d-game | src/enemies.h | #include "main.h"
#ifndef ENEMIES_H
#define ENEMIES_H
class Cannon
{
public:
Cannon() {}
Cannon(float x, float y, float zS);
glm::vec3 position;
float speed;
float rotation;
void draw(glm::mat4 VP);
void set_position(float x, float y, float z);
void tick();
int alive;
private:... |
pretzelhammer/brainfuck-compilers | examples/c/print_eof.c | #include <stdio.h>
#include <errno.h> // for the definition of errno
#include <stdlib.h> // for exit()
#include <string.h>
#include <math.h>
int main(void)
{
/*
int c;
while ((c = getchar()) != EOF)
putchar(c);
if (feof(stdin)) {
printf("end-of-file reached\n");
exit(0);
}
... |
tgifae/tgif | Implementations/software/tgifn2128v1/ref/TGIF_BC.c | <reponame>tgifae/tgif<filename>Implementations/software/tgifn2128v1/ref/TGIF_BC.c<gh_stars>1-10
/*
TGIF BC implementation
Prepared by: <NAME>
Email: <EMAIL>
Date: 25 Feb 2019
*/
#include <stdint.h>
#include "bc.h"
const uint16_t RC[] = {
/*7-bit LFSR x6,x5,x4,x3,x2,x1,x0 <- x5,x4,x3,x2,x1,x0+x6,x6*/
0x8001,... |
coderfi/toychain-cpp | Block.h | #ifndef TOYCHAIN_BLOCK_H
#define TOYCHAIN_BLOCK_H
#include <cstdint>
#include <iostream>
#include <sstream>
using namespace std;
class Block {
private:
string _sData;
uint32_t _nIdx;
uint32_t _nNonce;
time_t _tTime;
string _hash() const;
public:
string sHash;
string sHashPrev;
Bloc... |
Gkdnz/SfePy | sfepy/terms/extmods/terms_elastic.c | <filename>sfepy/terms/extmods/terms_elastic.c
#include "form_sdcc.h"
#include "terms_elastic.h"
#include "terms.h"
#undef __FUNC__
#define __FUNC__ "mat_le_stress"
/*!
In mixed case, builds only the deviatoric part of stress.
@par Revision history:
- 17.03.2003, c
- 31.01.2006
- 06.02.2006
- 07.03.2006, ... |
Gkdnz/SfePy | sfepy/terms/extmods/terms_op.h | #ifndef _TERMS_OP_H_
#define _TERMS_OP_H_
#include "common.h"
BEGIN_C_DECLS
#include "fmfield.h"
#include "refmaps.h"
int32 mulAB_integrate(FMField *out, FMField *A, FMField *B,
Mapping *vg, int32 mode);
int32 actBfT(FMField *out, FMField *bf, FMField *A);
END_C_DECLS
#endif /* Header */
|
Gkdnz/SfePy | sfepy/discrete/common/extmods/common_python.c | #include <stdarg.h>
#include "common.h"
int32 g_error = 0;
static char buf[1024]; /* !!! */
#undef __FUNC__
#define __FUNC__ "output"
/*!
@par Revision history:
- 16.02.2004, c
*/
void output(const char *what, ...)
{
va_list ap;
va_start(ap, what);
vprintf(what, ap);
va_end(ap);
}
#undef __FUNC__
#def... |
Gkdnz/SfePy | sfepy/discrete/common/extmods/mesh.h | <filename>sfepy/discrete/common/extmods/mesh.h
#ifndef _MESH_H_
#define _MESH_H_ 1
#ifdef __cplusplus
# define BEGIN_C_DECLS extern "C" {
# define END_C_DECLS }
#else
# define BEGIN_C_DECLS
# define END_C_DECLS
#endif
#include "types.h"
#include "version.h"
// Inspired by <NAME>: Efficient Repr... |
NaohiroTamura/edk2 | UefiCpuPkg/Library/CpuTimerLib/PeiCpuTimerLib.c | /** @file
CPUID Leaf 0x15 for Core Crystal Clock frequency instance as PEI Timer Library.
Copyright (c) 2019 Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <PiPei.h>
#include <Library/TimerLib.h>
#include <Library/BaseLib.h>
#include <Library/Ho... |
NaohiroTamura/edk2 | ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointer.c | <filename>ArmPlatformPkg/Library/PrePiHobListPointerLib/PrePiHobListPointer.c
/** @file
*
* Copyright (c) 2011, ARM Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*
**/
#include <PiPei.h>
#include <Library/ArmLib.h>
#include <Library/PrePiHobListPointerLib.h>
#include <Libr... |
NaohiroTamura/edk2 | UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c | /** @file
Copyright (c) 2014 - 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "UefiPayloadEntry.h"
/**
Callback function to build resource descriptor HOB
This function build a HOB based on the memory map entry info.
@param Mem... |
NaohiroTamura/edk2 | DynamicTablesPkg/Include/ArmNameSpaceObjects.h | <filename>DynamicTablesPkg/Include/ArmNameSpaceObjects.h
/** @file
Copyright (c) 2017 - 2020, Arm Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@par Glossary:
- Cm or CM - Configuration Manager
- Obj or OBJ - Object
- Std or STD - Standard
**/
#ifndef... |
NaohiroTamura/edk2 | OvmfPkg/AcpiPlatformDxe/Qemu.c | /** @file
OVMF ACPI QEMU support
Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR>
Copyright (C) 2012-2014, Red Hat, Inc.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "AcpiPlatform.h"
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
... |
NaohiroTamura/edk2 | OvmfPkg/CpuHotplugSmm/QemuCpuhp.h | /** @file
Simple wrapper functions and utility functions that access QEMU's modern CPU
hotplug register block.
These functions manipulate some of the registers described in
"docs/specs/acpi_cpu_hotplug.txt" in the QEMU source. IO Ports are accessed
via EFI_MM_CPU_IO_PROTOCOL. If a protocol call fails, ... |
NaohiroTamura/edk2 | NetworkPkg/Include/Library/HttpLib.h | <filename>NetworkPkg/Include/Library/HttpLib.h
/** @file
This library is used to share code between UEFI network stack modules.
It provides the helper routines to parse the HTTP message byte stream.
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2016 Hewlett Packard Enter... |
NaohiroTamura/edk2 | UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.h | <reponame>NaohiroTamura/edk2<filename>UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.h
/** @file
*
* Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*
**/
#ifndef __UEFI_PAYLOAD_ENTRY_H__
#define __UEFI_PAYLOAD_ENTRY_H__
#include <PiPei.h>... |
NaohiroTamura/edk2 | ArmPkg/Include/Library/ArmSmcLib.h | <reponame>NaohiroTamura/edk2<gh_stars>1-10
/** @file
*
* Copyright (c) 2012-2014, ARM Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*
**/
#ifndef __ARM_SMC_LIB__
#define __ARM_SMC_LIB__
/**
* The size of the SMC arguments are different between AArch64 and AArch32.
* T... |
NaohiroTamura/edk2 | UefiPayloadPkg/Include/Guid/SerialPortInfoGuid.h | /** @file
This file defines the hob structure for serial port.
Copyright (c) 2014 - 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef __SERIAL_PORT_INFO_GUID_H__
#define __SERIAL_PORT_INFO_GUID_H__
///
/// Serial Port Information GUID
///
... |
NaohiroTamura/edk2 | UefiCpuPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLibNoStm.c | /** @file
The CPU specific programming for PiSmmCpuDxeSmm module when STM support
is not included.
Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <PiSmm.h>
#include <Library/SmmCpuFeaturesLib.h>
/**
Internal worker func... |
NaohiroTamura/edk2 | CryptoPkg/Test/UnitTest/Library/BaseCryptLib/TestBaseCryptLib.h | /** @file
Application for Cryptographic Primitives Validation.
Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef __CRYPTEST_H__
#define __CRYPTEST_H__
#include <PiPei.h>
#include <Uefi.h>
#include <Library/UefiLib.h>
#incl... |
NaohiroTamura/edk2 | StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/CreateHobList.c | /** @file
Creates HOB during Standalone MM Foundation entry point
on ARM platforms.
Copyright (c) 2017 - 2018, ARM Ltd. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <PiMm.h>
#include <PiPei.h>
#include <Guid/MmramMemoryReserve.h>
#include <Guid/MpInformation.... |
NaohiroTamura/edk2 | OvmfPkg/PlatformPei/Platform.c | <filename>OvmfPkg/PlatformPei/Platform.c
/**@file
Platform PEI driver
Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2011, <NAME> <<EMAIL>>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
//
// The package level header files this module uses
//
#include <P... |
NaohiroTamura/edk2 | RedfishPkg/RedfishHostInterfaceDxe/RedfishHostInterfaceDxe.c | /** @file
RedfishHostInterfaceDxe builds up SMBIOS Type 42h host interface
record for Redfish service host interface using EFI MBIOS Protocol.
RedfishHostInterfacePlatformLib is the platform-level library which
provides the content of Redfish host interface type 42h record.
Copyright (c) 2019, Intel Co... |
NaohiroTamura/edk2 | ArmPkg/Library/ArmExceptionLib/Arm/ArmException.c | <filename>ArmPkg/Library/ArmExceptionLib/Arm/ArmException.c<gh_stars>1-10
/** @file
* Exception handling support specific for ARM
*
* Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
* Copyright (c) 2014, ARM Limited. All rights reserved.<BR>
* Copyright (c) 2016 HP Development Company, L.P.<BR>
*
... |
NaohiroTamura/edk2 | EmbeddedPkg/Library/AndroidBootImgLib/AndroidBootImgLib.c | <filename>EmbeddedPkg/Library/AndroidBootImgLib/AndroidBootImgLib.c
/** @file
Copyright (c) 2013-2014, ARM Ltd. All rights reserved.<BR>
Copyright (c) 2017, Linaro. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <libfdt.h>
#include <Library/AndroidBootImgLib.h>
#incl... |
NaohiroTamura/edk2 | MdeModulePkg/Universal/RegularExpressionDxe/OnigurumaUefiPort.c | /** @file
Module to rewrite stdlib references within Oniguruma
(C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP<BR>
Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "OnigurumaUefiPort.h"
#define ONIGMEM_HEAD... |
NaohiroTamura/edk2 | MdePkg/Include/IndustryStandard/PciExpress21.h | /** @file
Support for the latest PCI standard.
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _PCIEXPRESS21_H_
#define _PCIEXPRESS21_H_
#include <Indu... |
NaohiroTamura/edk2 | DynamicTablesPkg/Library/Common/AmlLib/AmlEncoding/Aml.c | /** @file
AML grammar definitions.
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved. <BR>
Copyright (c) 2019 - 2020, Arm Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <AmlEncoding/Aml.h>
/** AML grammar encoding table.
The ASL la... |
NaohiroTamura/edk2 | ArmPkg/Include/Library/ArmMmuLib.h | <filename>ArmPkg/Include/Library/ArmMmuLib.h
/** @file
Copyright (c) 2015 - 2016, Linaro Ltd. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef __ARM_MMU_LIB__
#define __ARM_MMU_LIB__
#include <Uefi/UefiBaseType.h>
#include <Library/ArmLib.h>
EFI_STATUS
EFIAPI
... |
NaohiroTamura/edk2 | NetworkPkg/HttpBootDxe/HttpBootClient.c | /** @file
Implementation of the boot file download function.
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "HttpBootDxe.h"
/**
Update the device path no... |
NaohiroTamura/edk2 | ArmPkg/Include/Library/StandaloneMmMmuLib.h | <reponame>NaohiroTamura/edk2<filename>ArmPkg/Include/Library/StandaloneMmMmuLib.h<gh_stars>1-10
/** @file
Copyright (c) 2018, ARM Ltd. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef __STANDALONEMM_MMU_LIB__
#define __STANDALONEMM_MMU_LIB__
EFI_STATUS
ArmSetMemoryRegio... |
NaohiroTamura/edk2 | ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClock.h | <reponame>NaohiroTamura/edk2<filename>ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClock.h<gh_stars>1-10
/** @file
*
* Copyright (c) 2011 - 2014, ARM Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*
**/
#ifndef __PL031_REAL_TIME_CLOCK_H__
#define __PL031_REAL_T... |
NaohiroTamura/edk2 | ArmPlatformPkg/Drivers/PL061GpioDxe/PL061Gpio.h | <gh_stars>1-10
/** @file
*
* Copyright (c) 2011-2012, ARM Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*
**/
#ifndef __PL061_GPIO_H__
#define __PL061_GPIO_H__
#include <Protocol/EmbeddedGpio.h>
// PL061 GPIO Registers
#define PL061_GPIO_DATA_REG_OFFSET ((UINTN... |
NaohiroTamura/edk2 | MdeModulePkg/Bus/Pci/PciBusDxe/PciLib.h | /** @file
Internal library declaration for PCI Bus module.
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _EFI_PCI_LIB_H_
#define _EFI_PCI_LIB_H_
typedef struct {
EFI_HANDLE Handle;
} EFI_DEVICE_HANDLE_EXT... |
NaohiroTamura/edk2 | ArmPkg/Library/ArmDisassemblerLib/ArmDisassembler.c | /** @file
Default exception handler
Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/BaseLib.h>
#include <Library/PrintLib.h>
#include <Library/ArmDisassemblerLib.h>
CHAR8 *gCondition[] = {
"EQ... |
NaohiroTamura/edk2 | ArmPlatformPkg/PrePeiCore/Arm/ArchPrePeiCore.c | /** @file
* Main file supporting the transition to PEI Core in Normal World for Versatile Express
*
* Copyright (c) 2012, ARM Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*
**/
#include <Library/PrintLib.h>
#include <Library/SerialPortLib.h>
#include "PrePeiCore.h"
... |
NaohiroTamura/edk2 | MdeModulePkg/Application/BootManagerMenuApp/BootManagerMenu.c | /** @file
The application to show the Boot Manager Menu.
Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "BootManagerMenu.h"
EFI_HII_HANDLE gStringPackHandle;
BOOLEAN mModeInitialized = FALSE;
//
// Boot video reso... |
NaohiroTamura/edk2 | BaseTools/Source/C/GenFw/Elf32Convert.c | /** @file
Elf32 Convert solution
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
Portions copyright (c) 2013, ARM Ltd. All rights reserved.<BR>
Portions Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
... |
NaohiroTamura/edk2 | ArmPlatformPkg/Include/Library/PL011UartClockLib.h | <filename>ArmPlatformPkg/Include/Library/PL011UartClockLib.h
/** @file
*
* Copyright 2018 NXP
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*
**/
#ifndef __PL011UARTCLOCKLIB_H__
#define __PL011UARTCLOCKLIB_H__
/**
Return baud clock frequency of PL011.
@return return frequency of PL011 in Hz... |
NaohiroTamura/edk2 | ShellPkg/Library/UefiShellAcpiViewCommandLib/Parsers/Pcct/PcctParser.c | <gh_stars>10-100
/** @file
PCCT table parser
Copyright (c) 2020, Arm Limited.
SPDX-License-Identifier: BSD-2-Clause-Patent
@par Reference(s):
- ACPI 6.3 Specification - January 2019
**/
#include <Library/BaseMemoryLib.h>
#include <Library/PrintLib.h>
#include <Library/UefiLib.h>
#include "Ac... |
NaohiroTamura/edk2 | ArmPkg/Include/Library/ArmGicArchLib.h | /** @file
*
* Copyright (c) 2015, Linaro Ltd. All rights reserved.
*
* SPDX-License-Identifier: BSD-2-Clause-Patent
*
**/
#ifndef __ARM_GIC_ARCH_LIB_H__
#define __ARM_GIC_ARCH_LIB_H__
//
// GIC definitions
//
typedef enum {
ARM_GIC_ARCH_REVISION_2,
ARM_GIC_ARCH_REVISION_3
} ARM_GIC_ARCH_REVISIO... |
NaohiroTamura/edk2 | NetworkPkg/IScsiDxe/IScsiCHAP.h | <reponame>NaohiroTamura/edk2<filename>NetworkPkg/IScsiDxe/IScsiCHAP.h
/** @file
The header file of CHAP configuration.
Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _ISCSI_CHAP_H_
#define _ISCSI_CHAP_H_
#define ISCSI_AUTH... |
NaohiroTamura/edk2 | ArmPkg/Library/ArmLib/Arm/ArmV7Lib.h | /** @file
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef __ARM_V7_LIB_H__
#define __ARM_V7_LIB_H__
#define ID_MMFR0_SHARELVL_SHIFT 12
#define ID_MMFR0_SHARELVL_MASK 0xf
#define ID_MMFR0_SHARELVL_ONE 0
#d... |
NaohiroTamura/edk2 | UnitTestFrameworkPkg/Library/UnitTestLib/Assert.c | /**
Implement UnitTestLib assert services
Copyright (c) Microsoft Corporation.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Uefi.h>
#include <UnitTestFrameworkTypes.h>
#include <Library/UnitTestLib.h>
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library... |
NaohiroTamura/edk2 | UefiCpuPkg/Library/CpuTimerLib/DxeCpuTimerLib.c | /** @file
CPUID Leaf 0x15 for Core Crystal Clock frequency instance of Timer Library.
Copyright (c) 2019 Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <PiDxe.h>
#include <Library/TimerLib.h>
#include <Library/BaseLib.h>
#include <Library/HobLib... |
NaohiroTamura/edk2 | UefiCpuPkg/Library/MpInitLib/Microcode.c | <filename>UefiCpuPkg/Library/MpInitLib/Microcode.c
/** @file
Implementation of loading microcode on processors.
Copyright (c) 2015 - 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "MpLib.h"
/**
Get microcode update signature of currentl... |
NaohiroTamura/edk2 | OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.h | /** @file
This driver installs SMBIOS information for OVMF
Copyright (c) 2011, <NAME> <<EMAIL>>
Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _SMBIOS_PLATFORM_DXE_H_
#define _SMBIOS_PLATFORM_DXE_H_
#include <PiDxe.h>
... |
NaohiroTamura/edk2 | NetworkPkg/DnsDxe/DnsDhcp.c | /** @file
Functions implementation related with DHCPv4/v6 for DNS driver.
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "DnsImpl.h"
/**
This function initialize the DHCP4 message instance.
This function will pad eac... |
NaohiroTamura/edk2 | MdeModulePkg/Library/LzmaCustomDecompressLib/Sdk/C/CpuArch.h | /* CpuArch.h -- CPU specific code
2017-09-04 : <NAME> : Public domain */
#ifndef __CPU_ARCH_H
#define __CPU_ARCH_H
#include "7zTypes.h"
EXTERN_C_BEGIN
/*
MY_CPU_LE means that CPU is LITTLE ENDIAN.
MY_CPU_BE means that CPU is BIG ENDIAN.
If MY_CPU_LE and MY_CPU_BE are not defined, we don't know about EN... |
NaohiroTamura/edk2 | MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.c | /** @file
Entry point to a Standalone MM driver.
Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2016 - 2018, ARM Ltd. All rights reserved.<BR>
Copyright (c) 2018, Linaro, Limited. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <PiMm.h>
... |
NaohiroTamura/edk2 | MdePkg/Library/BaseLib/CpuDeadLoop.c | /** @file
Base Library CPU Functions for all architectures.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include <Base.h>
#include <Library/BaseLib.h>
/**
Executes an infinite loop.
Forces the CPU to execute an ... |
daikiclimate/Grid-Anchor-based-Image-Cropping-Pytorch | roi_align/src/roi_align.h | <reponame>daikiclimate/Grid-Anchor-based-Image-Cropping-Pytorch
#ifndef ROI_ALIGN_H
#define ROI_ALIGN_H
#include<torch/extension.h>
int roi_align_forward(int aligned_height, int aligned_width, float spatial_scale,
torch::Tensor features, torch::Tensor rois, torch::Tensor output);
int roi_align_... |
daikiclimate/Grid-Anchor-based-Image-Cropping-Pytorch | roi_align/src/roi_align_cuda.h | <reponame>daikiclimate/Grid-Anchor-based-Image-Cropping-Pytorch
#ifndef ROI_ALIGN_CUDA_H
#define ROI_ALIGN_CUDA_H
#include <torch/extension.h>
int roi_align_forward_cuda(int aligned_height, int aligned_width, float spatial_scale,
torch::Tensor features, torch::Tensor rois, torch::Tensor out... |
daikiclimate/Grid-Anchor-based-Image-Cropping-Pytorch | rod_align/src/rod_align_cuda.h | <reponame>daikiclimate/Grid-Anchor-based-Image-Cropping-Pytorch
#ifndef ROD_ALIGN_CUDA_H
#define ROD_ALIGN_CUDA_H
#include <torch/extension.h>
int rod_align_forward_cuda(int aligned_height, int aligned_width, float spatial_scale,
torch::Tensor features, torch::Tensor rois, torch::Tensor out... |
taqu/BalancingTree | common.h | #ifndef INC_TREE_COMMON_H__
#define INC_TREE_COMMON_H__
/**
@file common.h
@author t-sakai
@date 2017/05/14 create
*/
#include <cassert>
#include <cstring>
#include <utility>
#include <cstdint>
#include <malloc.h>
#ifndef NULL
#ifdef __cplusplus
#define NULL 0
#else
#define NULL ((void*)0)
... |
taqu/BalancingTree | AVLTree.h | <filename>AVLTree.h
#ifndef INC_TREE_AVLTREE_H_
#define INC_TREE_AVLTREE_H_
/**
@file AVLTree.h
@author t-sakai
@date 2008/11/13 create
*/
#include <functional>
#include "common.h"
//#define TREE_AVLTREE_ENABLE_DEBUGPRINT
namespace tree
{
enum AVLSub
{
AVLSub_Left=0,
AVLSub_Right=1,
};
... |
tumdog/electron | atom/browser/atom_browser_context.h | // Copyright (c) 2013 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef ATOM_BROWSER_ATOM_BROWSER_CONTEXT_H_
#define ATOM_BROWSER_ATOM_BROWSER_CONTEXT_H_
#include <string>
#include <vector>
#include "base/memory/scoped_refptr.h"
#include "brightr... |
klantz81/complex | complex.h | #ifndef COMPLEX_H
#define COMPLEX_H
class complex {
private:
protected:
public:
float a, b;
complex();
complex(float a, float b);
complex conj();
complex operator*(const complex& c) const;
complex operator+(const complex& c) const;
complex operator-(const complex& c) const;
complex operator-() const;
co... |
moothyknight/Vulkan-Compute-Example | VulkanAPI/Project1/unused/old/Window.h | <filename>VulkanAPI/Project1/unused/old/Window.h
#ifndef WINDOW_H
#define WINDOW_H
//I used <NAME>'s tutorial and the official tutorial.
#include "Platform.h"
#include "Render.h"
#include <string>
class Render;
class Window
{
public:
Window(Render * renderer, uint32_t size_x, uint32_t size_y, std::string name);
... |
moothyknight/Vulkan-Compute-Example | VulkanAPI/Project1/Platform.h | <reponame>moothyknight/Vulkan-Compute-Example
#ifndef PLATFORM_H
#define PLATFORM_H
//I used <NAME>'s tutorial
//vulkan-1.lib required to be linked from VulkanSDK
// You will need to add GLFWs "glfw3.lib" file into the project, this task is up to you.
// GLFW version 3.2 or newer is required.
#define USE_FRAMEWORK_... |
moothyknight/Vulkan-Compute-Example | VulkanAPI/Project1/unused/old/Render.h | <reponame>moothyknight/Vulkan-Compute-Example
#ifndef RENDER_H
#define RENDER_H
#include "Platform.h"
#include "Window.h"
#include <vector>
#include <string>
#include <stdint.h>
#include <assert.h>
class Window;
class Render
{
public:
Render();
~Render();
Window * OpenWindow(uint32_t size_x, uint32... |
moothyknight/Vulkan-Compute-Example | VulkanAPI/Project1/VulkanBase.h | #ifndef VULKANBASE_H
#define VULKANBASE_H
// Many files are modified versions of <NAME>'s code (https://github.com/SaschaWillems/Vulkan)
// Vulkan Charts: https://docs.google.com/document/d/1qejSErMPXJ3-iVc3WBBTzC2yOBUOoyRdqWEw0bonrOE/edit?usp=sharing
// I used these in tandem with a youtube crash course to pull this ... |
KonradJanica/CircularBuffer | circular_vector.h | <reponame>KonradJanica/CircularBuffer<gh_stars>1-10
/* ---------------------------------------------------------------------------
** This software is in the public domain, furnished "as is", without technical
** support, and with no warranty, express or implied, as to its usefulness for
** any purpose.
**
** circular_... |
laser-turtle/ogaml | src/core/x11/stubs/utils.h | #ifndef CAML_STUBS_HEADER
#define CAML_STUBS_HEADER
#define CAML_NAME_SPACE
#include <caml/custom.h>
#include <caml/fail.h>
#include <caml/callback.h>
#include <caml/memory.h>
#include <caml/alloc.h>
#include <caml/mlvalues.h>
#include <stdio.h>
#include <string.h>
#define Val_none Val_int(0)
#define Some_val(v) Fi... |
laser-turtle/ogaml | src/graphics/stubs/vbo_stubs.c | #define GL_GLEXT_PROTOTYPES
#if defined(_WIN32)
#include <windows.h>
#include <gl/glew.h>
#endif
#if defined(__APPLE__)
#include <OpenGL/gl3.h>
#ifndef GL_TESS_CONTROL_SHADER
#define GL_TESS_CONTROL_SHADER 0x00008e88
#endif
#ifndef GL_TESS_EVALUATION_SHADER
#define GL_TESS_EVALUATION_SHADER 0x00... |
laser-turtle/ogaml | src/graphics/stubs/program_stubs.c | <filename>src/graphics/stubs/program_stubs.c
#define GL_GLEXT_PROTOTYPES
#if defined(_WIN32)
#include <windows.h>
#include <gl/glew.h>
#endif
#if defined(__APPLE__)
#include <OpenGL/gl3.h>
#ifndef GL_TESS_CONTROL_SHADER
#define GL_TESS_CONTROL_SHADER 0x00008e88
#endif
#ifndef GL_TESS_EVALUATION_SHADER... |
laser-turtle/ogaml | src/graphics/stubs/rbo_stubs.c | #define GL_GLEXT_PROTOTYPES
#if defined(_WIN32)
#include <windows.h>
#include <gl/glew.h>
#endif
#if defined(__APPLE__)
#include <OpenGL/gl3.h>
#ifndef GL_TESS_CONTROL_SHADER
#define GL_TESS_CONTROL_SHADER 0x00008e88
#endif
#ifndef GL_TESS_EVALUATION_SHADER
#define GL_TESS_EVALUATION_SHADER 0x00... |
laser-turtle/ogaml | src/graphics/stubs/uniform_stubs.c | #define GL_GLEXT_PROTOTYPES
#if defined(_WIN32)
#include <windows.h>
#include <gl/glew.h>
#endif
#if defined(__APPLE__)
#include <OpenGL/gl3.h>
#ifndef GL_TESS_CONTROL_SHADER
#define GL_TESS_CONTROL_SHADER 0x00008e88
#endif
#ifndef GL_TESS_EVALUATION_SHADER
#define GL_TESS_EVALUATION_SHADER 0x00... |
laser-turtle/ogaml | src/core/x11/stubs/event_stubs.c | <gh_stars>10-100
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include "utils.h"
#include <memory.h>
// INPUT display, window, mask list
// OUTPUT nothing, updates the event mask of the window
CAMLprim value
caml_xselect_input(value disp, value win, value masks)
{
CAMLparam3(disp, win, masks);
CAMLlocal2(hd, t... |
laser-turtle/ogaml | src/core/x11/stubs/glx_stubs.c | #include <X11/Xlib.h>
#include <GL/gl.h>
#include <GL/glx.h>
#include <memory.h>
#include <stdio.h>
#include "utils.h"
// INPUT : a display, a screen number, an attribute list
// OUTPUT : a visual info satisfying the attribute list
CAMLprim value
caml_glx_choose_visual(value disp, value scr, value attributes, valu... |
laser-turtle/ogaml | src/core/x11/stubs/display_stubs.c | #include <X11/Xlib.h>
#include "utils.h"
Display* current_display = NULL;
// INPUT string option
// OUTPUT display
CAMLprim value
caml_xopen_display(value name)
{
CAMLparam1(name);
if(current_display != NULL) {}
else if(name == Val_none) {
current_display = XOpenDisplay(NULL);
}
else {
current_... |
laser-turtle/ogaml | src/core/x11/stubs/atoms_stubs.c | #include <X11/Xlib.h>
#include <X11/Xatom.h>
#include "utils.h"
// Global atoms
CAMLprim value
caml_wm_add(value unit)
{
CAMLparam0();
CAMLreturn((Atom) 1);
}
CAMLprim value
caml_wm_remove(value unit)
{
CAMLparam0();
CAMLreturn((Atom) 0);
}
CAMLprim value
caml_wm_toggle(value unit)
{
CAMLparam0();
CAMLre... |
laser-turtle/ogaml | src/graphics/stubs/render_stubs.c | <reponame>laser-turtle/ogaml
#define GL_GLEXT_PROTOTYPES
#if defined(_WIN32)
#include <windows.h>
#include <gl/glew.h>
#endif
#if defined(__APPLE__)
#include <OpenGL/gl3.h>
#ifndef GL_TESS_CONTROL_SHADER
#define GL_TESS_CONTROL_SHADER 0x00008e88
#endif
#ifndef GL_TESS_EVALUATION_SHADER
#define G... |
laser-turtle/ogaml | src/graphics/stubs/fbo_stubs.c | <reponame>laser-turtle/ogaml<gh_stars>10-100
#define GL_GLEXT_PROTOTYPES
#if defined(_WIN32)
#include <windows.h>
#include <gl/glew.h>
#endif
#if defined(__APPLE__)
#include <OpenGL/gl3.h>
#ifndef GL_TESS_CONTROL_SHADER
#define GL_TESS_CONTROL_SHADER 0x00008e88
#endif
#ifndef GL_TESS_EVALUATION_SHADER... |
laser-turtle/ogaml | src/core/windows/stubs/glew_stubs.c | #include <gl/glew.h>
#include <gl/gl.h>
#include "utils.h"
#include <windows.h>
#include <memory.h>
CAMLprim value
caml_glew_init(value unit)
{
CAMLparam0();
CAMLlocal1(res);
GLenum err;
glewExperimental = GL_TRUE;
err = glewInit();
if(err != GLEW_OK)
res = caml_copy_string(gl... |
laser-turtle/ogaml | src/graphics/stubs/shader_stubs.c | <filename>src/graphics/stubs/shader_stubs.c<gh_stars>10-100
#define GL_GLEXT_PROTOTYPES
#if defined(_WIN32)
#include <windows.h>
#include <gl/glew.h>
#endif
#if defined(__APPLE__)
#include <OpenGL/gl3.h>
#ifndef GL_TESS_CONTROL_SHADER
#define GL_TESS_CONTROL_SHADER 0x00008e88
#endif
#ifndef GL_TESS_EV... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.