text stringlengths 3.12k 18.7k |
|---|
/*
* The MIT License (MIT)
*
* Copyright (c) 2015-2019 <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, ... |
/******************************************************************************
* Filename: live_data.c
* Description: Assembles packet data contain live updating variables from
* the controller. This data can be used for debugging.
******************************************************************... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... |
/* mips.c -- implementation of the mips kernel exploit
*
* Copyright (C) 2019 TheFloW
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include <pspsdk.h>
#include <pspkernel.h>
#include <psputility.h>
#include <stdio.h>
#include <stri... |
/**
* @file kernel/net/socket.c
* @brief Top-level socket manager.
*
* Provides the standard socket interface.
*
* @copyright This file is part of ToaruOS and is released under the terms
* of the NCSA / University of Illinois License - see LICENSE.md
* @author 2021 <NAME>
*/
#include <errno.h>
#... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) ... |
/*
* ds1820.c
* Prueba de ds1820 usando la librería wiringpi
* <NAME>. 09/11/2016
*
* gcc -lwiringPi -o ds1820 ds1820.c
*/
#include <stdio.h>
#include <sys/time.h>
#include <wiringPi.h>
#include <stdlib.h>
#define PIN 7 /* Pin number */
#define TIMESLOT 90 /* 1-Wire time slot in us 60-... |
/*
Teem: Tools to process and visualize scientific data and images
Copyright (C) 2008, 2007, 2006, 2005 <NAME>
Copyright (C) 2004, 2003, 2002, 2001, 2000, 1999, 1998 University of Utah
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser Ge... |
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
* media and as a part of the software program in whole or part. Users
* may copy or modify Sun RPC without charge, but are not authorized
* to license or distribute it to an... |
#include <net-snmp/net-snmp-config.h>
#ifdef dynix
# ifdef HAVE_SYS_SWAP_H
# include <sys/swap.h>
# endif
# ifdef HAVE_SYS_PARAM_H
# include <sys/param.h>
# endif
# ifdef HAVE_UNISTD_H
# include <unistd.h>
# endif
#endif
#include <net-snmp/net-snmp-includes.h>
#include <net-snmp/agent/net-snmp-agent-in... |
/*
* aeskeywrap.c
* Perform RFC3394 AES-based key wrap and unwrap functions.
*
* Copyright (C) 2010, Broadcom Corporation
* All Rights Reserved.
*
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
* the contents of this file may not be disclosed to third parties, copied
* or duplicated in... |
/*
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: CC0-1.0
*/
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_timer.h"
#include "esp_lcd_panel_io.h"
#include "esp_lcd_panel_vendor.h"
#include "esp_lcd_panel_ops.h"
#incl... |
/* This file offers a camera data type that can be used in two ways. The
low-level interface lets you control the position, orientation, and projection
of the camera directly --- flexible but inconvenient. The high-level interface
let you control the camera by aiming it at a target in a certain third-person
way ... |
#include "msh379.h"
static void pr_times(clock_t real, struct tms *tmsstart, struct tms *tmsend);
int argument_identifier(char *input_buffer, char *prog_name, char *arg1, char *arg2, char *arg3, char *arg4);
void execution(char *filename, int num_args, char *arg1, char *arg2, char *arg3, char *arg4);
char *parse_path... |
/*
* Copyright (c) 2010 <NAME> <<EMAIL>>
* Copyright (c) 2017 <NAME> <<EMAIL>>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1... |
/*
Copyright 2020 <NAME>, <NAME>
<EMAIL>
<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 applicab... |
/*! \file gps_crescent.c
* \brief Hemisphere Crescent OEM GPS receiver source code
*
* \details This file implements the init_gps() and read_gps() functions for the Hemisphere Crescent OEM GPS receiver.
* \ingroup gps_fcns
*
* \author University of Minnesota
* \author Aerospace Engineering and Mechanics
* \copy... |
#include "laser.h"
#include "drawUtility.h"
#include "preferences.h"
#include "preferences.h"
#include "collisions.h"
#include <stdlib.h>
// _____________________________________________________________________________
#pragma mark - Declarations
static void shiftLaserVertical(laser_t *laser, GLfloat velocity);
stat... |
/*
* Copyright 2019-2020 Diligent Graphics LLC
* Copyright 2015-2019 <NAME>
*
* 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.... |
#include "tests.h"
#include "x86_desc.h"
#include "lib.h"
#include "keyboard.h"
#include "rtc.h"
#include "filesys.h"
#include "assembly_linkage.h"
#include "sys_calls.h"
#define PASS 1
#define FAIL 0
#define CONTENT_BUFFER 8000
#define MINSPEED 14
#define MAXSPEED 3
#define RTC_INTERVAL 100
/* format these macros ... |
#include "server.h"
hclient *hclient_init(httpd *server, const char *address, int port, int fd)
{
hclient *client = (hclient*) malloc(sizeof(hclient));
client->server = server;
strcpy(client->address, address);
client->port = port;
client->fd = fd;
return client;
}
void hclient_free(hcl... |
/*
* Copyright (C) 2014-2015 NagraVision
*
* 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 or ... |
#include <stdio.h>
#include <string.h>
#include "functions.h"
#include <jsmn.h>
#include <jsmn-find.h>
#include <concord/discord.h>
#include <concord/discord-internal.h>
#include <concord/websockets.h>
#include <sqlite3.h>
char lavalinkSecure = false; // If its using SSL or not.
char lavalinkNodeUrl[64] = "example... |
#include "main.h"
#include "data.h"
#include <pthread.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <unistd.h>
#include <netinet/in.h>
#include <errno.h>
#define RECV_FLAGS 0
int get_header(int clientSocket,char *strHeader,int nMaxLen)
{
int nLen=0,state=0,nBytesReceived=0;
while (nLen < nMaxLen &&... |
/* config.h. Generated from config.h.in by configure. */
/* config.h.in. Generated from configure.ac by autoheader. */
/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */
/* Define to 1 to enable debug output. */
/* #undef DEBUGBUILD */
/* Define to 1 if you have the ... |
#include <stdint.h>
#include <string.h>
#include "utils.h"
#include "hash.h"
#include "hashx8.h"
#include "thash.h"
#include "thashx8.h"
#include "wots.h"
#include "address.h"
#include "params.h"
// TODO clarify address expectations, and make them more uniform.
// TODO i.e. do we expect types to be set already?
// TO... |
/*
* Mesa 3-D graphics library
*
* Copyright (c) 2017 Intel Corporation
*
* 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 right... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef struct no *pNo;
typedef struct cela *pCela;
typedef struct grafo *pGrafo;
struct no{
int v;
pNo prox;
};
struct cela{
int v;
char nome[32];
int niveisMinimos[6];
pNo prox;
};
struct grafo{
int n;
pCela *adjacencia;
};... |
/*! @file udta_copy.c
*
* @brief Hack to copy global GPMF data from an MP4 to another
*
* @version 1.0.3
*
* (C) Copyright 2017-2021 GoPro Inc (http://gopro.com/).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You... |
#include<math.h>
#include<stdio.h>
#include "sse_type.h"
#define GLOBAL_DEFINE
#include "pg5_table.h"
#undef GLOBAL_DEFINE
static double reff(double sft_length, double radius)
{
double ret;
double eta = 2.0*radius/sft_length;
if(eta < 1.0){
ret = (224.+eta*eta*(-224.+eta*(70.+eta*(48.-eta*21.))))
* 2.e0/(35... |
/* Copyright (c) 2013, The Linux Foundation. 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 con... |
/*
* Copyright (c) Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under both the BSD-style license (found in the
* LICENSE file in the root directory of this source tree) and the GPLv2 (found
* in the COPYING file in the root directory of this source tree).
* You may select, at your optio... |
#include "bw_query.h"
#include <string.h>
#include <math.h>
#include "common.h"
#include "bigWig.h"
#include "localmem.h"
void bw_op_clearz(bwStepOpData * data) {
data->total = 0;
data->count = 0;
}
void bw_op_clear_min(bwStepOpData * data) {
data->total = INFINITY; //R_PosInf;
data->count = 0;
}
void bw_op_cl... |
// 0x0701F0E0 - 0x0701F0F8
static const Lights1 bbh_seg7_lights_0701F0E0 = gdSPDefLights1(
0x66, 0x66, 0x66,
0xff, 0xff, 0xff, 0x28, 0x28, 0x28
);
// 0x0701F0F8 - 0x0701F138
static const Vtx bbh_seg7_vertex_0701F0F8[] = {
{{{ 154, 614, -101}, 0, { 3034, 2010}, {0x00, 0x7f, 0x00, 0xff}}},
{{{ ... |
#include <sl.h>
#include <pushbase.h>
#include "game.h"
#include "push.h"
#include <slini.h>
#define GAME_INSTALL_PATH L"InstallPath"
WCHAR* HeapedString( WCHAR* String )
{
WCHAR *buffer;
buffer = (WCHAR*) Memory_Allocate( (String_GetLength(String) + 1) * sizeof(WCHAR) );
String_Copy(buffer, String);... |
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "platform.h"
#include "transport.h"
#include "transport_tcp.h"
#include "transport_ws.h"
#include "mbedtls/base64.h"
#include "mbedtls/sha1.h"
static const char *TAG = "TRANSPORT_WS";
#define DEFAULT_WS_BUFFER (1024)
typedef struct {
char *path... |
/**
* Copyright (C) 2017, <NAME>
**/
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <error.h>
#include <itc/module_types.h>
#include <itc/module.h>
#include <runtime/api.h>
#include <runtime/pdt.h>
#include <runtime/servlet.h>
#include <runtime/task.h>
#include <runtime/sta... |
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <zlib.h>
static unsigned char *escape(unsigned char *data, int *data_size)
{
int esc_pos, data_pos;
ssize_t esc_size = 4096;
unsigned c... |
/**
* Game of Life shared configuration settings
* @author: <NAME> <<EMAIL>>
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
// Global variables for the whole program
int ROWS;
int COLUMNS;
int GENS;
int DO_PRINT;
int DO_PAUSE;
char *INPUT_FILENAME;
/**
* @brief Get the user parameters fromthe comma... |
#include <NTDSpch.h>
#pragma hdrstop
#include <process.h>
#include <dsjet.h>
#include <ntdsa.h>
#include <scache.h>
#include <mdglobal.h>
#include <dbglobal.h>
#include <attids.h>
#include <dbintrnl.h>
#include <dsconfig.h>
#include <ctype.h>
#include <direct.h>
#include <ntdsa.h>
#include <dsutil.h>
#... |
#include "glUtils.h"
#include "map.h"
#include "octree.h"
#include <pthread.h>
#define FRAMERATE 60
#define FRAMELIMIT
float vertices[] = {
1.0f, 1.0f,
1.0f, -1.0f,
-1.0f, -1.0f,
-1.0f, 1.0f,
1.0f, 1.0f,
-1.0f, -1.0f
};
int chunk[MAP_X_SIZE * MAP_Y_SIZE * MAP_Z_SIZE];... |
/* */
/* Adapted from */
/* "fmref.c: C reference implementation of FM Radio */
/* <NAME> <<EMAIL>> */
/* $Id: fmref.c,v 1.8 2002/07/29 14:05:48 aalamb Exp $" */
/* by */
/* <EMAIL> */
/* */
#include "e-types.h"
#include "tag.h"
#include "devsim7708.h"
#include "sh7708.h"
#include... |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) International Business Machines Corp., 2004
* Copyright (c) Linux Test Project, 2013-2016
*/
/*
* This is a test for the madvise(2) system call. It is intended
* to provide a complete exposure of the system call. It tests
* madvise(2) for all erro... |
#include "iota_streams/channels.h"
#include <stdio.h>
#include <time.h>
void rand_seed(char *seed, size_t n)
{
static char const alphabet[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()-=_+";
srand((unsigned int)time(NULL));
if (seed && n)
for(; --n; )
{
int key = rand() % ... |
#include "inttypes.h"
#include "ntt.h"
#include "params.h"
#include "reduce.h"
/************************************************************
* Name: bitrev_table
*
* Description: Contains bit-reversed 9-bit indices to be used to re-order
* polynomials before number theoratic transform
*************... |
/*
* Copyright (c) 2014 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributin... |
/***********************************************************
random.c -- カイ2乗分布
-- ガンマ分布
-- 三角分布
-- 指数分布
-- 正規分布
-- ベータ分布
-- 累乗分布
-- ロジスティック分布
-- ワイブル分布
-- Cauchy (コーシー) 分布
-- F分布
... |
/******************************************************************************
*
* Filename: CC3200_I2C.c
*
* Author: <NAME>
*
* Description: Non-blocking I2C driver for CC3200.
*
*****************************************************************************/
#include <stdint.h> // needed by i2c.h, pr... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2020 <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,... |
/*
* This file is part of the coreboot project.
*
* Copyright (C) 2007-2010 coresystems GmbH
* Copyright (C) 2012 Google 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; version 2 ... |
/**
@file iopy_module.c
@brief Python wrapper for the IOCOM library.
@author <NAME>
@version 1.0
@date 26.4.2021
Explose Python module interface.
Copyright 2020 <NAME>. This file is part of the iocom project and shall only be used,
modified, and distributed under the terms of the project lic... |
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2017-2018 HUAWEI, Inc.
* https://www.huawei.com/
* Copyright (C) 2021, Alibaba Cloud
*/
#include "internal.h"
#include <linux/prefetch.h>
#include <linux/dax.h>
#include <trace/events/erofs.h>
struct page *erofs_get_meta_page(struct super_bloc... |
#define _GNU_SOURCE
#include <assert.h>
#include <stdatomic.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cairo/cairo.h>
#include <linux/input-event-codes.h>
#include "kbd.h"
struct kbd_t {
kbd_layout_t layout;
atomic_int state[KEY_CNT]; // each item is the las... |
/*
Copyright (c) 1988, 1991, 1994 X Consortium
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,
... |
/*
Copyright (c) 2018. The YARA Authors. 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 and the followi... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/mono/drivers/apollo/apolloBlt.c,v 3.4 1996/12/23 06:47:53 dawes Exp $ */
/*
* MONO: Driver family for interlaced and banked monochrome video adaptors
* <NAME> 8/93, 3/94, 4/94 <EMAIL>
*
* bdm2/driver/apollo/apolloBlt.c
* <NAME> 11/93 <EMAIL>
*/
/* $XConsortium: apolloBl... |
//
// xevan.c
// kizunawallet
//
// Created by Bin on 2018/7/6.
// Copyright © 2018 <NAME>. All rights reserved.
//
#include "xevan.h"
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include "sph/sph_blake.h"
#include "sph/sph_bmw.h"
#include "sph/sph_groestl.h"
#include "sph/sph... |
/*
* This file is part of Libav.
*
* Libav is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* Libav is distributed in... |
/*-
* Copyright (c) 2002
* <NAME> <<EMAIL>>. All rights reserved.
* Copyright (c) 1997, 1998, 1999
* <NAME> <<EMAIL>>. 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. Redistributio... |
/* compute Obj fields for natural satellites.
*/
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "astro.h"
/* private cache of planet ephemerides and when they were computed
* N.B. don't use ones in builtin[] -- they are the user's responsibility.
*/
static ObjPl plobj[NOBJ];
static Now plnow[NO... |
/*-----------------------------------------------------------------------------
* Some sample code for slvs.dll. We draw some geometric entities, provide
* initial guesses for their positions, and then constrain them. The solver
* calculates their new positions, in order to satisfy the constraints.
*
* Copyright 2... |
#include <jvcr_ecm_01/display.h>
#include <stdlib.h>
#include <stdio.h>
#include <jvcr_ecm_01/ram.h>
#include <jvcr_ecm_01/fonts.h>
#include <jvcr_ecm_01/default_font.h>
void cls(Jvcr *machine, byte color) {
jvcr_memset(machine->ram, SCREEN_START, color, SCREEN_SIZE);
}
void pset(Jvcr *machine, i32 x, i32 y, byte c... |
/* Copyright (C) 2001-2021 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
implied.
This software is distributed under license and may not be copied,
modified or distributed except as expressly authorized under the terms
of the license ... |
/*
* GRUB -- GRand Unified Bootloader
* Copyright (C) 2006,2007,2008,2013 Free Software Foundation, Inc.
*
* GRUB 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 3 of the License, ... |
/*
* trans.c - Matrix transpose B = A^T
*
* Each transpose function must have a prototype of the form:
* void trans(int M, int N, int A[N][M], int B[M][N]);
*
* A transpose function is evaluated by counting the number of misses
* on a 1KB direct mapped cache with a block size of 32 bytes.
*/
#include <stdio.h... |
/*
* Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... |
// -*-Mode: C++;-*- // technically C99
// * BeginRiceCopyright *****************************************************
//
// $HeadURL$
// $Id$
//
// --------------------------------------------------------------------------
// Part of HPCToolkit (hpctoolkit.org)
//
// Information about sources of support for research an... |
// ------------------------------------------------------------------
// tokenizer.c
// Copyright (C) 2019-2022 Black Paw Ventures Limited
// Please see terms and conditions in the file LICENSE.txt
#include "tokenizer.h"
#include "buffer.h"
#include "vblock.h"
#include "strings.h"
#include "container.h"
#include... |
/**
* \file
* Routines for handling path names.
*
* Authors:
* <NAME> (<EMAIL>)
* <NAME> (<EMAIL>)
*
* (C) 2006 Novell, Inc. http://www.novell.com
*
*/
#include <config.h>
#include <glib.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
/* This is... |
/* © 2017 Sigma Designs, Inc. This is an unpublished work protected by Sigma
* Designs, Inc. as a trade secret, and is not to be used or disclosed except as
* provided Z-Wave Controller Development Kit Limited License Agreement. All
* rights reserved.
*
* Notice: All information contained herein is confidential an... |
#include "framebuffer.h"
#include "context.h"
#include <stddef.h>
#include <string.h>
#include <float.h>
static void recompute_normal_matrix(context *ctx)
{
float det, m[16], f[18], *mv, *normal;
int i, j;
mv = ctx->modelview;
normal = ctx->normalmatrix;
/* m = inverse( mv ) */
f[ 0] = mv[10] * mv[15] - mv[11]... |
/*
* Merged from files
*
* Copyright © 2005 Agere Systems Inc.
* All rights reserved.
* http://www.agere.com
*
* SOFTWARE LICENSE
*
* This software is provided subject to the following terms and conditions,
* which you should read carefully before using the software. Using this
* software indicates your a... |
/*
* Copyright (c) 2014, Ericsson AB. 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... |
/* Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Developer file-signing utility
*/
#include <errno.h>
#include <getopt.h>
#include <inttypes.h> /* For PRIu64 */
#include <stdarg.h>
#includ... |
/*
* Author: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* Copyright (c) 2014 Intel Corporation.
*
* 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
* wit... |
#include "freertos/FreeRTOS.h"
#include "esp_wifi.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_event_loop.h"
#include "nvs_flash.h"
#include "driver/gpio.h"
#include "freertos/portmacro.h"
#include "freertos/event_groups.h"
#include "esp_log.h"
#include "tcpip_adapter.h"
#include "lwip/err.h"
#inclu... |
/*
* Copyright (c) 2016 Cisco and/or its affiliates.
* 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 applicabl... |
#define thisprog "xe-spearmans1"
#define TITLE_STRING thisprog" v 1: 17.July.2018 [JRH]"
#define MAXLINELEN 1000
#define MAXLABELS 1000
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
<TAGS>stats</TAGS>
v 1: 10.August.2018 [JRH]
- bugfix - corrected assignment of ranks to values
v 1:... |
// Meridian 59, Copyright 1994-2012 <NAME> and <NAME>.
// All rights reserved.
//
// This software is distributed under a license that is described in
// the LICENSE file that accompanies it.
//
// Meridian is a registered trademark.
/*
* async.c
*
This module contains functions to handle asynchronous socket events
... |
#pragma once
//npc offsets/////////////////////////////////////////////////////////////////////
//start correction
//DWORD npcoff1 = 0x40;
//datablock size
WORD npcoff2 = 0x10f0;
//x
WORD npcoff11 = 0x384;
//y
WORD npcoff22 = 0x38c;
//name
WORD npcoffname = 0x148;
//anim
WORD npcoff33 = 0xD68;
// local ? 06 other 02
W... |
/*
Module to convert Braille to Characters
-Uses
notes
-Needs to stay in flash
to look up a character's corresponding braille value,
the character can be used as an array index with
an offset subtracted.
*/
#include "sdk_config.h"
#include "char_conversion.h"
#include <stdint.h>
void modifier_parser(uint8_t * p... |
/*
FreeRTOS V8.2.3 - Copyright (C) 2015 Real Time Engineers Ltd.
All rights reserved
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
This file is part of the FreeRTOS distribution.
FreeRTOS is free software; you can redistribute it and/or modify it under
the... |
/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
*
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
*/
#in... |
/*-
* msh.c
*
* Minishell C source
* Show how to use "obtain_order" input interface function
*
* THIS FILE IS TO BE MODIFIED
*/
#include <stddef.h> /* NULL */
#include <stdio.h> /* setbuf, printf */
//Bibliotecas nuestras
#include <sys/types.h> /* Cabeceras llamada al sistema open */
#include <sy... |
#include "hk_srp.h"
#include "hk_crypto_util.h"
#include "../utils/hk_logging.h"
#define WOLFSSL_USER_SETTINGS
#include <wolfssl/wolfcrypt/settings.h>
#include <wolfssl/wolfcrypt/sha512.h>
#include <wolfssl/wolfcrypt/srp.h>
// 3072-bit group N (per RFC5054, Appendix A)
const byte hk_srp_n[] = {
0xff, 0xff, 0xff, ... |
/* @source prophet application
**
** Gapped alignment for profiles
** @author Copyright (C) <NAME> (<EMAIL>)
** @modified July 5 2006 <NAME> (to use align ACD definition)
** @@
**
** This program is free software; you can redistribute it and/or
** modify it under the terms of the GNU General Public License
** as publis... |
#define COBJMACROS
#include <Windows.h>
#include <mmdeviceapi.h>
#include <audioclient.h>
#include <avrt.h>
#include <stdio.h>
#include <math.h>
#pragma comment(lib, "ole32")
#pragma comment(lib, "avrt")
typedef struct
{
IAudioClient* OutputClient;
IAudioClient* InputClient;
IAudioRenderClient* AudioRenderClie... |
/* $Id: sound.c 3131 2005-11-04 10:02:50Z peter1138 $ */
#include "stdafx.h"
#include "openttd.h"
#include "functions.h"
#include "map.h"
#include "mixer.h"
#include "sound.h"
#include "vehicle.h"
#include "window.h"
#include "viewport.h"
#include "fileio.h"
typedef struct FileEntry {
uint32 file_offset;
uint32 fil... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
/*
Copyright (c) 2014, <NAME>
All rights reserved.
This file is part of the hyLISP project.
http://hylisp.org
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 copyri... |
/* Compute x * y + z as ternary operation.
Copyright (C) 2011-2020 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by <NAME> <<EMAIL>>.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Lice... |
/*
* Copyright (c) 2017-2019 Josef 'Jeff' Sipek <<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 restriction, including without limitation the rights
* to use, copy, ... |
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#define CGLM_DEFINE_PRINTS
#include <cglm/cglm.h>
#include "common.h"
typedef vec2 v2;
typedef vec3 v3;
typedef vec4 v4;
typedef mat2 m2;
typedef mat3 m3;
typedef mat4 m4;
#define MAX_N_SCANNERS 32
#define MAX_N_SCANNER_POINTS 32
#define MAX_N_TOTAL_POINTS 5... |
/********************************************************************
* BenchIT - Performance Measurement for Scientific Applications
* Contact: <EMAIL>
*
* $Id: kernel_main.c 1 2009-09-11 12:26:19Z william $
* $URL: svn+ssh://<EMAIL>@r<EMAIL>-dres<EMAIL>.de/svn-base/benchit-root/BenchITv6/kernel/io/ls/C/0/0/io_ls... |
// para compilar: gcc medianacol.c -o medianacol -Wall
// para executar: medianacol
/*
Dada uma matriz M de tamanho LxC, composta por números inteiros, construa um algoritmo em C que insira a mediana
dos valores de cada coluna da matriz M em um vetor V de tamanho C e imprima esse vetor de medianas como saída
dessa apl... |
/*
* rs_geometry.c
* RS
*
* Created by Administrator on 12/21/10.
* Copyright 2010 Roughsoft. All rights reserved.
*
*/
#include <math.h>
#include <float.h>
#include "rs_util.h"
#include "rs_geometry.h"
void rs_overlap_result_flip(int *inoutResult)
{
int newResult = 0;
if (*inoutResult & eRS... |
// SPDX-License-Identifier: GPL-2.0
//
// allocator.h - a header of a generator for test with buffers of PCM frames.
//
// Copyright (c) 2018 <NAME> <<EMAIL>>
//
// Licensed under the terms of the GNU General Public License, version 2.
#include "generator.h"
#include <stdlib.h>
#include <sys/types.h>
#include <sys/s... |
#include <stdio.h>
#include <stdlib.h>
#include <omp.h>
#include "mpi.h"
#include "map.h"
#include "map_iterator.h"
#include "utils.h"
#include "constants.h"
#include "types.h"
#include "comment_manager.h"
#include "comment.h"
#include "parser.h"
int comments_size;
/*
* Set commented_post field to the real post id, ... |
/*
* Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
*
* 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 appli... |
/***************************************************************************//**
* @file main.c
* @brief This project demonstrates the master configuration of the EFx32xG2x
* I2C peripheral. Two EFx32xG2x modules are connected together, one running the
* master project, the other running the slave project. The mast... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.