text stringlengths 3.08k 10.5k |
|---|
#include <unistd.h>
#include <getopt.h>
#include "parsec/runtime.h"
#include "parsec/data_dist/matrix/two_dim_rectangle_cyclic.h"
#if defined(PARSEC_HAVE_MPI)
#include <mpi.h>
#endif /* defined(PARSEC_HAVE_MPI) */
#include "udf_wrapper.h"
static int32_t calls[UDF_TT_MAX] = { 0, };
static int udf_logger(int p, udf... |
//
// CBGetBlocks.c
// cbitcoin
//
// Created by <NAME> on 11/07/2012.
// Copyright (c) 2012 <NAME>
//
// This file is part of cbitcoin. It is subject to the license terms
// in the LICENSE file found in the top-level directory of this
// distribution and at http://www.cbitcoin.com/license.html. No part of
// ... |
/* Copyright (C) 2005 Red Hat, Inc. */
/* Object: semanage_user_base_t (SELinux User/Class Policy Object)
* Object: semanage_user_key_t (SELinux User/Class Key)
* Implements: record_t (Database Record)
* Implements: record_key_t (Database Record Key)
*/
#include <sepol/user_record.h>
typedef sepol_user_key_t sem... |
/*
The elf parsing header file is used to durning scans that
require the ELF to be parsed, for example the rpath scan and
the core dump scan.
To use this file you must first call parse_elf then pass this
Elf_File struct to other methods
*/
#pragma once
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
... |
#include <xc.h>
#include "color.h"
#include "i2c.h"
/************************************
* Function to perform the initialization of the color click
* Inputs: None
* Outputs: None
* Functions called within:
* The I2C_2_Master_Init function is called to initialize the I2C communication before
* the color_writeto... |
/**
* Author......: <NAME> <<EMAIL>>
* License.....: MIT
*/
#define PERM_OP(a,b,tt,n,m) \
{ \
tt = a >> n; \
tt = tt ^ b; \
tt = tt & m; \
b = b ^ tt; \
tt = tt << n; \
a = a ^ tt; \
}
#define HPERM... |
/*
* Xilinx Zynq Baseboard System emulation.
*
* Copyright (c) 2010 Xilinx.
* Copyright (c) 2012 <NAME> (<EMAIL>)
* Copyright (c) 2012 Petalogix Pty Ltd.
* Written by <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as pub... |
/* cp9-test.c
* EPN, Mon Nov 13 17:49:07 2006
* Easelification: EPN, Fri Nov 30 10:14:17 2007
*
* Test the CM -> CP9 HMM construction procedure.
*/
#include "esl_config.h"
#include "p7_config.h"
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <time.h>
#... |
#include "omsp_system.h"
#include "spacewar.h"
//************************************************************
// externals
//
extern volatile unsigned char flags;
extern void reset_rkts(rkt_data *, rkt_data *);
extern void reset_game(rkt_data *);
//************************************************************
//
// i... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#define NUM_OF_LABELS 10
static int confusion_matrix[NUM_OF_LABELS][NUM_OF_LABELS];
static int num_of_characteristics;
// Calcula a distancia entre 2 pontos.
double calcdist(double *p1, double *p2) {
double distsum = 0.0;
int i;
... |
/*-
* Copyright (c) 2012 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... |
#include <esp/gpio.h>
#include <stdint.h>
#include <espressif/esp_common.h>
#include <string.h>
#include <esplibs/libmain.h>
#include "receive.h"
#include "onewiretx.h"
rec_t receivers[receiver_max]={ { 0 } };
int8_t find_rec_by_gpio(uint8_t rec_pin)
{
for (uint8_t i = 0; i < receiver_max; i++... |
/* $NetBSD: type_ipv4.c,v 1.10 2007/01/17 23:24:22 hubertf Exp $ */
/*-
* Copyright (c) 1998-1999 <NAME>
* (<EMAIL>, <EMAIL>)
* All rights reserved.
*
* This code has been donated to The NetBSD Foundation by the Author.
*
* Redistribution and use in source and binary forms, with or witho... |
/*****************************************************************************
* Copyright (c) 2009, OpenJAUS.com
* All rights reserved.
*
* This file is part of OpenJAUS. OpenJAUS is distributed under the BSD
* license. See the LICENSE file for details.
*
* Redistribution and use in source and binary... |
#include "mypaint-symmetry.h"
#include "helpers.h"
#include <stdio.h>
#include <stdlib.h>
#define DEFAULT_NUM_MATRICES 16
void
allocation_failure_warning(int num)
{
fprintf(stderr, "Critical: failed to allocate memory for %d transformation matrices!\n", num);
}
gboolean
allocate_symmetry_matrices(MyPaintSymmetr... |
#pragma once
# include "Data.h"
//// constants:
const int ATTEMPTS_COUNT = 20; // count of attempts to allocate memory
const int MAX_PRIORITY = 256; // max priority of node in treap
const int HASH_TABLE_SIZE = 30; // size of hash table array
const int SHOWING_SIZE = 10;
// show modes in show treap
enum ... |
#define _GNU_SOURCE
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
static inline bool is_space_at(const char *ptr)
{
char c = *ptr;
return c == ' ' || c == '\t' || c == '\n';
}
static inline bool is_alpha(const char v)
{
return (v >= 'a' && v <= 'z') || (v >= 'A' && v <= 'Z');
}
... |
/*
* broadvoice - a library for the BroadVoice 16 and 32 codecs
*
* bv16gaindec.c - Gain decoding
*
* Adapted by <NAME> <<EMAIL>> from code which is
* Copyright 2000-2009 Broadcom Corporation
*
* All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the term... |
// SPDX-License-Identifier: GPL-2.0-only
/*
*
* OBEX library with GLib integration
*
* Copyright (C) 2011 Intel Corporation. All rights reserved.
*
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
#in... |
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* The MIT License
*
* Copyright (c) 2010-2011 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the S... |
/* X11 STDWIN -- private definitions */
/* Includes */
#include "tools.h"
#include "stdwin.h"
#include "style.h" /* For wattr */
/* Includes from X11 */
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xresource.h>
#include <X11/Xatom.h>
#include <X11/cursorfont.h>
/* Additional system includes */
#includ... |
// Copyright 2017 <NAME>. See the COPYRIGHT
// file at the top-level directory of this distribution.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This f... |
/* env - run a program in a modified environment
Copyright (C) 1986, 1991-2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your... |
//
// Created by whmwi on 2016/9/15.
//
#include <stdlib.h>
#include <stdio.h>
#include <zconf.h>
#include <string.h>
#include <ctype.h>
#include <fcntl.h>
#include "../include/d_helper.h"
#define NEED_FREE_RET
static int zygote_pid = 0;
static int is_target_pid = 0;
char *getpid_str() {
char *pid... |
//#include "api/crypto.h"
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "api/keys.h"
#include "api/crypto.h"
#include "nrf_soc.h"
#include "nrf52_network.h"
#include "nrf_drv_rng.h"
#include <sha256.h>
//#include "external/tiny-AES12... |
/*D************************************************************
* Modul: GUI - dialog uopttest.c
*
* Create a test part of option menu
*
* Functions:
*
* Copyright: yafra.org, Basel, Switzerland
**************************************************************
*/
/*R
RCS Information:
$Header: /yaf... |
/**
EUSART Generated Driver File
@Company
Microchip Technology Inc.
@File Name
eusart.c
@Summary
This is the generated driver implementation file for the EUSART driver using MPLAB(c) Code Configurator
@Description
This header file provides implementations for driver APIs for EUSART.
Ge... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
#include "config.h" // macros, bool
#include <stdio.h> // file methods
#include <stdlib.h> // malloc
#include <string.h> // memcmp
#include "sgherm.h" // emu_state
#include "print.h" // fatal, error, debug
#include "rom_read.h" // constants, cart_header, etc.
#include "util.h" // likely/unlikely
static const unsign... |
// Bitonic Sort - Pthreads implementation
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <pthread.h>
#include <sys/time.h>
int *arr; // data array to be sorted
int n; // data array size
int thread_layers;
int thread_count = 0;
const int ASCENDING = 1;
const int DESCENDING = 0;
typedef struct th... |
/* GStreamer zxing element unit test
*
* Copyright (C) 2019 <NAME> <<EMAIL>>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your opti... |
#include <stdio.h>
#include <errno.h> // for errno
#include <math.h>
#include <limits.h> // for INT_MAX
#include <stdlib.h> // for strtol
#define __USE_POSIX199309 1
#include <time.h>
#include <pthread.h>
int thread_count;
int size;
double** A;
double** B;
double** R;
void multiply_row(double* linA, double** B, d... |
/*
The copyrighted code from Numerical Recipes Software has been removed
and replaced by an independent implementation found in the random.c file
in function Ranint4
from http://www.inference.phy.cam.ac.uk/bayesys/BayesSys.tar.gz
by <NAME>
http://www.inference.phy.cam.ac.uk/bayesys/
The code fragment was further modif... |
#define _GNU_SOURCE
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "db.h"
#include "execute.h"
#include "kvlist.h"
#include "log.h"
#include "plan.h"
#include "query_parser.h"
#include "session.h"
#define COMMAND_BUF_SIZE 120
#define MESSAGE_BUF_SIZE 120
... |
/*
* Copyright (c) 2022 fra87
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, dis... |
// Options: --no-argc --no-arrays --no-bitfields --checksum --concise --no-consts --no-float --no-inline-function --max-array-dim 3 --max-array-len-per-dim 10 --max-block-depth 5 --max-block-size 4 --max-expr-complexity 2 --max-funcs 1 --max-pointer-depth 2 --no-pointers --no-structs --no-unions --no-volatiles --no-b... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2018 Intel Corporation
*/
#include <string.h>
#include <time.h>
#include <stdio.h>
#include <rte_cryptodev.h>
#include "fips_validation.h"
#define MODE_STR "AESVS"
#define ALGO_STR "test data for "
#define OP_STR "State"
#define KEY_SIZE_STR "Key Length : "... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "camera.h"
#include "hittable.h"
#include "materials.h"
#include "scene.h"
#include "utilities.h"
#include "vector.h"
// #define CAMERA_MIN 0.01
// #define CAMERA_MAX INFINITY
Scene *initialize_scene(int width, int height, Hittable *world, int world_... |
/**
* Copyright (c) 2006-2010 Spotify Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... |
/* $OpenBSD: ukc.c,v 1.20 2015/10/12 04:43:30 deraadt Exp $ */
/*
* Copyright (c) 1999-2001 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must... |
/*
* Copyright 2020 Makani Technologies LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
/* 3bit DAC - Github.com/glennlopez */
// Shape of the wave is a function of an index
/************************
* PREPROCESSOR DIRECTIVES
************************/
// System Control Legacy base address: 0x400F.E000 (Datasheet pg. 234)
#define SYSCTL_RCGC2_R (*((volatile unsigned long *)0x400FE108))
// INP... |
// some global definitions, found in debug release
#define DMAXX 40
#define DMAXY 40
#define LIGHTSIZE 6912 // 27 * 256
// must be unsigned to generate unsigned comparisons with pnum
#define MAX_PLRS 4
#define MAX_CHARACTERS 10
#define MAX_LVLMTYPES 16
// #define MAX_PATH 260
#define MAX_SEND_S... |
/* A simulation of a double pendulum in C */
#include <std_io.h>
#include <math.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
/* Constants setting the screen size and frames per second */
const int screen_width = 80;
const int screen_height = 20;
const float x_scale = 2; // Sets aspect ratio to 1:1, ... |
/*
macOS:
brew install glew
clang `pkg-config --libs glfw3 glew` -framework GLUT -framework OpenGL example2.c -o example2
./example2
*/
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <stdio.h>
#define true 1
#define false 1
void framebuffer_size_callback(GLFWwindow* window, int width, int height);
voi... |
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int flag=0;
pthread_mutex_t mymutex = PTHREAD_MUTEX_INITIALIZER;
pthread_barrier_t barrier;
long n, t; // N numero de usuarios, A numero de arquivos(A >= 2) e T numero de threads(T<=floor(A/2))
int a;
float soma=0;
int contador=0;
ty... |
/**
* colat - simple program to show what hexadecimal colors actually look like
* Copyright (c) 2019-2021 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without res... |
/* ---- NUMBER THEORY ---- */
#ifdef MPI
#include "tommath.h"
extern int is_prime(mp_int *, int *);
extern int rand_prime(mp_int *N, long len, prng_state *prng, int wprng);
extern mp_err mp_init_multi(mp_int* mp, ...);
extern void mp_clear_multi(mp_int* mp, ...);
#else
#ifdef MRSA
#error RSA requires the bi... |
#include <stdio.h>
#include <stdint.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <libkern/OSByteOrder.h>
#include <mach/mach.h>
#include <mach-o/fat.h>
#include <mach-o/loader.h>
#include <mach-o/nlist.h>
#ifndef __APPLE__
#error No use compiling a Mac OS X file here
#... |
/**
* \file src/matrix.c
* \brief Matrix handle implementation.
*
* The interfaces specifies the creation of handles from concrete
* array representations (e.g., CSR & CSC format).
*/
#include <assert.h>
#include <oski/config.h>
#include <oski/common.h>
#include <oski/matrix.h>
/**
* \brief
*
* Allocat... |
#include<stdio.h>
#include<stdlib.h>
#include"../common/tree.h"
#include"../common/vector.h"
typedef struct {
int capacity;
int size;
char *element;
} CVector;
void cVectorAdd(CVector** vector, char element){
if(vector == NULL) return;
if(*vector == NULL) {
*vector = (Vector*)mallo... |
#ifdef _MSC_VER
#define _CRT_SECURE_NO_WARNINGS
#endif
#define STB_IMAGE_IMPLEMENTATION
#define STBI_NO_SIMD
#define STB_IMAGE_STATIC
#define STBI_WINDOWS_UTF8
#include "stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#define STB_IMAGE_WRITE_STATIC
#define STBI_WINDOWS_UTF8
#include "stb_image_write.h"
static in... |
/******************** (C) COPYRIGHT 2012 **************************************
* File Name : xb_api_tx.c
* Hackee : deh
* Date First Issued : 03/24/2012
* Board : STM32F103VxT6_pod_mm with XBee
* Description : Transmit with API mode
********************************************... |
/*D************************************************************
* Modul: GRAPHIC gwgtext.c
*
*
*
*
*
* Copyright: yafra.org, Basel, Switzerland
**************************************************************
*/
/*R
RCS Information:
$Header: /yafra/cvsroot/mapo/source/gui/gwgtext.c,v 1.2 2008-11-02 19... |
#include "net.h"
static int init_net(char *address, char *port, int *sock);
int
init_net(char *address, char *port, int *sock)
{
int s, v, i;
struct addrinfo hints, *result, *rp;
memset(&hints, 0, sizeof(struct addrinfo));
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = ... |
/***************************************************************\
* IEEE80.c *
* Convert between "double" and IEEE 80 bit format *
* in machine independent manner. *
* Assumes array of char is a continuous region of 8 bit frames*
* Assumes (unsigned long) has 32 useable bits *
* billg, dpwe @<... |
#include <pic32mx.h>
#include <stdio.h>
#include "tetris.h"
/* ------------------------------------------------------------ */
/* Pin definitions for access to OLED control signals on chipKIT Uno32
*/
#define DispVddCtrlOn (PORTFCLR = 0b01000000)
#define DispVddCtrlOff (PORTFSET = 0b01000000)
#define DispVbatCtrlO... |
#ifdef _WIN32
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "argtable3.h"
#include "config.h"
#include "endian.h"
#include "fs.h"
#include "mem.h"
#define BUF_SIZE 512
const byte DURATION_IDENTIFIER[2] = {0x44, 0x89};
const byte MATROSKA_ID[4] = {0x1A, 0x... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "../lib/h/strdstr.h"
#include "../h/strdstrtod.h"
#include "../h/distance.h"
typedef struct {
int index;
double distance;
char const *class_value;
} ClassInfo;
int get_rows(FILE *classified_data, int const BUFFER_SIZE);
void temp_sort(ClassInf... |
#include "scanner_generator.h"
#include "automata.h"
#include "thompson.h"
#include "dfa.h"
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
struct {
unsigned nfa_graph : 1;
unsigned dfa_graph : 1;
unsigned minimal_graph : 1;
unsigned generate_code : 1;
} options;
void ... |
#include "type.h"
#define MDIST (150*MILE)
#define VDIST (50*MILE)
#define GDIST (25*MILE)
#define NDIST (70*MILE)
#define BDIST (1*MILE)
static Nav *npp;
void
nvinit(void)
{
npp = &nav[0];
plane.v1 = NNULL;
plane.g1 = NNULL;
plane.v2 = NNULL;
plane.g2 = NNULL;
plane.ad = NNULL;
plane.bk = NNULL;
}
/*
* tun... |
#pragma once
#include <string.h> /* memcpy */
#include <stddef.h> /* size_t */
/* simplest possible insert-only single-linked hash table */
typedef void *(*AHashAllocFunc)(void *alloc_param, size_t size);
typedef unsigned long (*AHashKeyHashFunc)(const void *key);
typedef int (*AHashKeyCompareFunc)(const void *left, ... |
#include <stdio.h>
#include <stdlib.h>
#include "Linkedlist.h"
SLLI* AddItemToEnd(SLLI* head, int dataToAdd)
{
SLLI* last;
// 1-) Allocate memory for a new SLLI item
SLLI* pItem = (SLLI*) malloc(sizeof(SLLI));
if (NULL == pItem) {
printf("Cannot allocate memory for the new item!!!\n... |
/* $Id$ */
/*
* Copyright (c) 2008
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and 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 copi... |
// Copyright (c) 2019-present, iQIYI, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, c... |
#include <unistd.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include "tun.h"
#define BUFFER_SIZE 1024
#define CA_DIR "cert_client"
#define CLIENT_CONFIG "client_config"
char* extern_target_net = "192.168.60.0";
char* extern_target_mask = "25... |
#include "world.h"
#include <time.h>
#include <stdlib.h>
#include "math/core.h"
#include <math.h>
void world_init(struct World *world)
{
// Randomize the world's seed
srand(time(0));
world->seed = rand() % __INT_MAX__;
// Allocate space for 1 chunk
world->chunks = malloc(sizeof(struct Chunk));
world->chunk_cou... |
#include "pcmockup.h"
#include "renderer.h"
#include "platform.h"
#include <string.h>
struct DebugWindowSDL
{
ImageWindow* window;
SDL_Renderer* renderer;
SDL_Surface* surface;
Renderer* podRenderer;
const DebugView* view;
xz_t position, offset;
real_t zoom;
};
SDL_Surface* createSDLSurfa... |
/*******************************************************************
* (c) Copyright 2011-2012 Discretix Technologies Ltd. *
* This software is protected by copyright, international *
* treaties and patents. *
* Use of this Software as part of or with ... |
#include "module/interrupt.h"
#include "kernel/modloader.h"
#include "kernel/logging.h"
#include "kernel/io.h"
static isr_handler_t _handlers[32] = { 0 };
extern void __panic(interrupt_state_t *r, char *fmt, ...);
void isr_addHandler(uint8_t i, isr_handler_t handler){
if(i >= 32) return;
_handlers[i] = hand... |
/**
*
* @file example_dpotrf.c
*
* PLASMA testing routines
* PLASMA is a software package provided by Univ. of Tennessee,
* Univ. of California Berkeley and Univ. of Colorado Denver
*
* @brief Example of Cholesky factorization
*
* @version 2.6.0
* @author <NAME>
* @date 2010-11-15
* @generated d Tue Jan... |
/*
MIT License
Copyright (c) 2022 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distrib... |
/*
* Phoenix-RTOS
*
* hid_client - USB Human Interface Device
*
* Copyright 2019 Phoenix Systems
* Author: <NAME>
*
* This file is part of Phoenix-RTOS.
*
* %LICENSE%
*/
#include <errno.h>
#include <stdio.h>
#include <sys/list.h>
#include <usbclient.h>
#include "hid_client.h"
struct {
usb_desc_list_t ... |
/*********************************************************************************************************
* Software License Agreement (BSD License) *
* Author: <NAME> <<EMAIL>> *
* *
* Copyright (c) 2013, WIDE Project and NICT *... |
/*
* (C) Copyright 2002
* <NAME> - <www.staubli.com>
* <NAME> <EMAIL>
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software ... |
/*
* Generated by asn1c-0.9.24 (http://lionet.info/asn1c)
* From ASN.1 module "S1AP-IEs"
* found in "S1AP-IEs.asn"
*/
#include "S1ap-CSG-Id.h"
int S1ap_CSG_Id_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
asn_app_constraint_failed_f *ctfailcb,
void ... |
/* BEGIN LICENSE BLOCK
* Version: CMPL 1.1
*
* The contents of this file are subject to the Cisco-style Mozilla Public
* License Version 1.1 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License
* at www.eclipse-clp.org/license.
*
* Software d... |
#define IF 1
#define ELSE 2
#define CASE 3
#define TYPE 4
#define DO 5
#define STRUCT 6
#define OTHER 7
#define ALWAYS 01
#define NEVER 02
#define SOMETIMES 04
#define YES 1
#define NO 0
#define KEYWORD 1
#define DATADEF 2
#define SINIT 3
#define CLEVEL 200
#define IFLEVEL 100
#define DOLEVEL 100
#define OPLENGTH 1... |
/*
* Copyright 2016 <NAME> (<EMAIL>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
#include "i2c.h"
#include <stdint.h>
/* GPIOB */
#define _GPIOB_CRL (*((volatile unsigned long *) 0x40010C00)) /* Port configuration register low */
unsigned long timei2c = 0;
/* i2c_init() assumes that PB6 and PB7 are configured to be an alternate function pin */
void i2c_init()
{
_I2C_CR2 = 0x8; /* The ... |
/*
* Copyright (c) 2012-2014 Apple Inc. All Rights Reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* c... |
/** \file settings_ethernet.c
* \brief GTK3 ethernet settings widget
*
* \author <NAME> <<EMAIL>>
*/
/*
* $VICERES ETHERNET_INTERFACE x64 x64sc xscpu64 x128 xvic
*/
/*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; ... |
/*
* Copyright (c) 2009 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of conditions and t... |
/*
* Status monitor for Canon CAPT Printer.
* Copyright (C) 2004-2013 CANON INC.
* All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Lic... |
#include "common/include/compiler.h"
#include "common/include/inttypes.h"
#include "common/include/msr.h"
#include "hal/include/kprintf.h"
#include "hal/include/devtree.h"
#include "hal/include/hal.h"
#include "hal/include/lib.h"
#include "hal/include/mem.h"
#include "hal/include/int.h"
#include "hal/include/dev.h"
#... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.o... |
/*
* ObjectCounting_SizeDiscrimination.c
*
* Created: 3/27/2015 1:25:32 PM
* Author: rvshah
*/
#include <avr/io.h>
#include <stdio.h>
#include "lcd.h"
#include "util.h"
#include "ServoPositionControl.h"
#include "IR_Distance.h"
#include "USS_distance.h"
#include "SerialCommunication.h"
#include... |
/*
* Copyright (c) 2014 - Qeo LLC
*
* The source code form of this Qeo Open Source Project component is subject
* to the terms of the Clear BSD license.
*
* You can redistribute it and/or modify it under the terms of the Clear BSD
* License (http://directory.fsf.org/wiki/License:ClearBSD). See LICENSE file
* fo... |
/*
* Copyright (c) 2016, Alliance for Open Media. All rights reserved
*
* This source code is subject to the terms of the BSD 2 Clause License and
* the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
* was not distributed with this source code in the LICENSE file, you can
* obtain it at w... |
/**
* @file pos.c
* @author <NAME> (<EMAIL>)
* @brief position and velocity estimator
* @version 1.0
* @date 2022-01-06
* @copyright Copyright (c) 2022
*/
/* Includes ------------------------------------------------------------------*/
#include "pos.h"
#include "ahrs.h"
#include "filter.h"
#include "sensor.h"
... |
/* $OpenBSD: tls13_record.c,v 1.4 2020/02/15 14:36:58 jsing Exp $ */
/*
* Copyright (c) 2018, 2019 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear... |
/*
* Copyright (c) 2018, <NAME>.
*/
/**
* @file
* Implementation of the CCA KEM functions.
*/
#include "r5_cca_kem.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "r5_core.h"
#include "r5_cpa_pke.h"
#include "pack.h"
#include "r5_hash.h"
#include "misc.h"
#include "r5_memory.h"
#include ... |
/* $NetBSD: xyvar.h,v 1.3 1997/10/17 03:48:02 gwr Exp $ */
/*
*
* Copyright (c) 1995 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must reta... |
/*-
* Copyright (c) 2014-2015 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
*/
#include "wt_internal.h"
/*
* __wt_curstat_colgroup_init --
* Initialize the statistics for a column group.
*/
int
__wt_curstat_colgroup_in... |
// Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
//-----------------------------------------------------------------------------
//
// You may not use the identified files except in compliance with the Apache
// License, Version 2.0 (the "License.")
//
// You may obtain a copy of the Lic... |
/*
* diskcontents-block.c - Read directory from block device.
*
* Written by
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* This file is part of VICE, the Versatile Commodore Emulator.
* See README for copyright notice.
*
* This program is free software; you can redistribute it and/or modif... |
#include "tmr.h"
tw_peid
tmr_map(tw_lpid gid)
{
return (tw_peid) gid / g_tw_nlp;
}
void
tmr_init(tmr_state * s, tw_lp * lp)
{
int i;
if(!lp->rng)
{
tw_error(TW_LOC, "No RNG!");
lp->rng = tw_calloc(TW_LOC, "LP RNG", sizeof(tw_rng_stream), 1);
tw_rand_initial_seed(lp->pe->rng, lp->rng, lp->gid);... |
/**
* @file list.h
*
*/
#include <stddef.h>
#define list_typedef(elem_type) \
typedef struct { \
elem_type *head; \
elem_type *tail; ... |
/* code by <NAME> 2009 */
#include "m_pd.h"
#ifdef NT
#pragma warning( disable : 4244 )
#pragma warning( disable : 4305 )
#endif
/* ----------------------------- gate ----------------------------- */
static t_class *gate_class;
typedef struct _gate
{
t_object x_obj;
t_int x_i;
} t_gate;
static void *gate_ne... |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.