text stringlengths 5.8k 28.2k |
|---|
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME>ung (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following condition... |
/*====================================================================*
- Copyright (C) 2001 Leptonica. 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 c... |
#include "op-solver.h"
static double
dtrunc(double);
static int
edgelen_nonorm(solver_data *data, int i, int j),
euclid_edgelen(solver_data *data, int i, int j),
euclid_ceiling_edgelen(solver_data *data, int i, int j),
euclid3d_edgelen(solver_data *data, int i, int j),
geographic_edgelen(solver_data *data, int i, int... |
/* T A B S U B . C
* BRL-CAD
*
* Copyright (c) 1998-2014 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as ... |
/*
* MiniDump dumping utility
*
* Copyright 2005 <NAME>
*
* This library 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 versi... |
/* Copyright (C) 2001-2012 by <NAME> */
/*
* 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 the following disclaim... |
#pragma ident "$Id: paro.c,v 1.7 2015/12/22 23:13:18 dechavez Exp $"
/*======================================================================
*
* Paroscientific Digiquartz pressure device configuration and
* test utility.
*
*====================================================================*/
#include "paro.h"... |
/* hgKgMrna - is a modified version of hgRefSeqMrna to be used
as part of the building process of Known Genes track.
It loads all mRNA alignments and other info into refGene
tables in a temporary working genome database. */
/* Copyright (C) 2013 The Regents of the University of California
* See README ... |
/* #undef CURLDEBUG */
#define CURL_CA_BUNDLE "/etc/ssl/cert.pem"
/* #undef CURL_CA_FALLBACK */
/* #undef CURL_CA_PATH */
/* #undef CURL_DEFAULT_SSL_BACKEND */
/* #undef CURL_DISABLE_COOKIES */
/* #undef CURL_DISABLE_CRYPTO_AUTH */
/* #undef CURL_DISABLE_DICT */
/* #undef CURL_DISABLE_DOH */
/* #undef CURL_DISABLE_FILE... |
/***************************************************************************
video.c
***************************************************************************/
#include "driver.h"
#include "includes/nemesis.h"
UINT16 *nemesis_videoram1;
UINT16 *nemesis_videoram2;
UINT16 *nemesis_colorram1;
UINT16 *nemesis_colo... |
/* The implementation of the hash table (_Py_hashtable_t) is based on the cfuhash
project:
http://sourceforge.net/projects/libcfu/
Copyright of cfuhash:
----------------------------------
Creation date: 2005-06-24 21:22:40
Authors: Don
Change log:
Copyright (c) 2005 <NAME>
All rights reserv... |
/*
* Copyright (C) 2020 Southern Storm Software, Pty 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, ... |
/*-
* Copyright (c) 2000-2003 <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 cond... |
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "bchip.h"
#include "machine.h"
static int pixelxy(int x, int y) {
return (y % PIXELS_HEIGHT) * PIXELS_WIDTH + (x % PIXELS_WIDTH);
}
static void machine_set_pixel(struct machine *machine, int x, int y, int val) {
machine->_pix... |
/*
Onion HTTP server library
Copyright (C) 2010-2014 <NAME> and othes
This library is free software; you can redistribute it and/or
modify it under the terms of, at your choice:
a. the Apache License Version 2.0.
b. the GNU General Public License as published by the
Free Software Foundation; either versi... |
/* This module collects I/O, memory and CPU usage info about a job and all
* of its child processes. Each child (and grandchild) is traced using
* ptrace. When the child is about to exit the tracing proces (kickstart)
* looks it up in the /proc file system and determines: what the maximum
* virtual memory size w... |
#include "driver.h"
static int counter,vector_reg,imr_status;
static data16_t es5510_dsp_ram[0x200];
static data32_t es5510_gpr[0xc0];
static data32_t es5510_dram[1<<16];
static data32_t es5510_dol_latch;
static data32_t es5510_dil_latch;
static data32_t es5510_dadr_latch;
static data32_t es5510_gpr_latch;
sta... |
/*
* POK header
*
* The following file is a part of the POK project. Any modification should
* be made according to the POK licence. You CANNOT use this file or a part
* of a file for your own project.
*
* For more information on the POK licence, please see our LICENCE FILE
*
* Pl... |
// 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... |
/* testentrycompletion.c
* Copyright (C) 2004 Red Hat, Inc.
* Author: <NAME>
*
* 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... |
/* Id: local.c,v 1.16 2016/01/30 17:26:19 ragge Exp */
/* $NetBSD: local.c,v 1.1.1.2 2016/02/09 20:28:34 plunky Exp $ */
/*
* Copyright (c) 2014 <NAME> (<EMAIL>).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followin... |
/*
* Copyright 2009 <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 restriction, including without limitation
* on the rights to use, copy, modify, merge, pub... |
#define MENU_MAIN 0
#define MENU_ALARMY 1
#define TYPE_MENU_MAIN 0
#define TYPE_MENU_ALARM 1
int8_t typeMenu = TYPE_MENU_MAIN;
int8_t flagaMenu = 0;
int8_t lastMenu = 0;
#include <LovyanGFX.hpp>
#include <lvgl.h>
/*** Function declaration ***/
void createButton(int8_t x, int8_t y, const char *... |
/*!The Treasure Box Library
*
* 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 ... |
/* Copyright 2018 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.
*
* Cros Board Info utility
*/
#include <compile_time_macros.h>
#include <errno.h>
#include <dirent.h>
#include <getopt.h>
#include <limits.h>
#incl... |
#include <mach/mach.h>
#include <stdbool.h>
#include <stdint.h>
#include <asm/asm.h>
#include <xnuspy/el1/externs.h>
static void generate_b_cond_equivalent(uint32_t orig_instr, uint32_t **tramp,
uint32_t *len_out){
/* get the condition of this branch, and we'll use that to build
* the CSEL */
ui... |
/*
* 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... |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* PTP 1588 clock support - User space test program
*
* Copyright (C) 2010 OMICRON electronics GmbH
*/
#define _GNU_SOURCE
#define __SANE_USERSPACE_TYPES__ /* For PPC64, to get LL64 types */
#include <errno.h>
#include <fcntl.h>
#include <inttypes.h>
#include <m... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
#pragma once
#if !defined(TARGET_X86)
#error The file should not be included for this platform.
#endif
// clang-format off
#define CPU_LOAD_STORE_ARCH 0
#define ROUND_FLOAT... |
/*
** $Id: lxplib.c,v 1.17 2008-12-11 19:05:13 carregal Exp $
** LuaExpat: Lua bind for Expat library
** See Copyright Notice in license.html
*/
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "expat.h"
#include "lua.h"
#include "lauxlib.h"
#if ! defined (LUA_VERSION_NUM) || LUA_VERSION_NUM < 5... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include "HaasLog.h"
#include "ak_common.h"
#include "ak_common_video.h"
#include "ak_log.h"
#include "ak_mem.h"
#include "ak_thread.h"
#include "ak_venc.h"
#include "ak_vi.h"
#include "ak_vpss.h"
#include "camera_ioctl.h"
#include "dev_... |
// Copyright (C) 2018 <NAME>. See included LICENSE file.
size_t dtk_key_to_string(dtk_key key, char* strOut, size_t strOutSize)
{
if (strOut == NULL || strOutSize == 0) {
return 0;
}
if (strOutSize == 1) {
strOut[0] = '\0';
return 0;
}
switch (key)
{
case DTK_KEY_... |
static char help[] ="X-ray propagation in matter in 2D\n\
Solves a simple time-independent linear PDE .\n\
Input parameters include:\n\
-mx,my : number of grid points\n\
-energy : energy of x-rays in ev\n\
-prop_distance : distance of propagation\n\
-prop_steps : number of propagation steps\n... |
/**
******************************************************************************
* File Name : main.c
* Description : Main program body
******************************************************************************
*
* COPYRIGHT(c) 2016 STMicroelectronics
*
* Redistribution and... |
/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of... |
/*
* Mesa 3-D graphics library
*
* Copyright (C) 2009 VMware, 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 limit... |
typedef unsigned char hlBool;
typedef char hlChar;
typedef unsigned short hlWChar;
typedef unsigned char hlByte;
typedef signed short hlShort;
typedef unsigned short hlUShort;
typedef signed int hlInt;
typedef unsigned int hlUInt;
typedef signed long hlLong;
typedef unsigned long hlULong;
typedef float hlSingle;
ty... |
/*
* This file and its contents are licensed under the Timescale License.
* Please see the included NOTICE for copyright information and
* LICENSE-TIMESCALE for a copy of the license.
*/
#include <postgres.h>
#include <access/xact.h>
#include <common/int128.h>
#include <miscadmin.h>
#include <parser/parse_coerce.h... |
// Copyright 2017 <NAME>
#include "./allocator.h"
int32_t ALLOC(arena_t *arena, int32_t size) {
int32_t *prevIndex = (int32_t*)arena->mem;
int32_t *nextIndex = (int32_t*)(arena->mem + *prevIndex);
int32_t prevFinal = 4;
size += 12;
if (size > arena->len - 4) {
return 0;
} // daca tr... |
/*
* Copyright (c) 2008 <NAME>, <NAME>
* Copyright (c) 2008 Atheros Communications, Inc.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* T... |
/* -*- C -*- */
/*
* Copyright (c) 2013-2020 Seagate Technology LLC 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... |
/*
TiMidity -- Experimental MIDI to WAVE converter
Copyright (C) 1995 <NAME> <<EMAIL>>
This program is free software; you can redistribute it and/or modify
it under the terms of the Perl Artistic License, available in COPYING.
*/
#if HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdio.h>
#inc... |
/* $NetBSD: zuncompress.c,v 1.11 2011/08/16 13:55:02 joerg Exp $ */
/*-
* Copyright (c) 1985, 1986, 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME> and <NAME>, derived from original
* work by <NAME> and <NA... |
/*
* Copyright (C) 2015 University of Oregon
*
* You may distribute under the terms of either the GNU General Public
* License or the Apache License, as specified in the LICENSE file.
*
* For more information, see the LICENSE file.
*/
/*************************************************/
/* BEST-TROSY HNCACB (b... |
/*
Serval Low-bandwidth asychronous Rhizome Demonstrator.
Copyright (C) 2015 Serval Project Inc.
This program monitors a local Rhizome database and attempts
to synchronise it over low-bandwidth declarative transports,
such as bluetooth name or wifi-direct service information
messages. It is intended to give a high p... |
#include <linux/prctl.h>
#define _GNU_SOURCE
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <grp.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/prctl.h>
#include <sys/random.h>
#include <sys/stat.h>
#include <sys/types.h>
#include ... |
#include "shortcut_layer.h"
#include "convolutional_layer.h"
#include "dark_cuda.h"
#include "blas.h"
#include "utils.h"
#include "gemm.h"
#include <stdio.h>
#include <assert.h>
layer make_shortcut_layer(int batch, int n, int *input_layers, int* input_sizes, int w, int h, int c,
float **layers_output, float **laye... |
/*
* SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Unlicense OR CC0-1.0
*/
#include "esp_log.h"
#include "esp_hidd_api.h"
#include "esp_bt_main.h"
#include "esp_bt_device.h"
#include "esp_bt.h"
#include "esp_err.h"
#include "nvs.h"
#include "nvs_flash.h"
#includ... |
/*
* The Shadow Simulator
* See LICENSE for licensing information
*/
#include <glib.h>
#include <sys/epoll.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <math.h>
... |
/*
* Copyright © 2012 Intel Corporation
* Copyright © 2012 <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 us... |
/* http://matthewtemple.wordpress.com/the-evolution-of-culture/ */
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#define GENE_INDEX_DISPLAY 0
#define GENE_INDEX_MEET 1
#define GENE_INDEX_MOVE 2
#define GENE_INDEX_PERSONALITY 3
#define GENOME_LENGTH 256 /* 2^GENOM... |
/****************************************************************************
* Project: LPC810 Sous Vide cooking controller
*
* Description:
* A sous vide water bath temperature controller
*
****************************************************************************
Originally based on NXP examp... |
/**
* @file dirent.c
* Copyright 2012, 2013 MinGW.org project
*
* 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... |
/*
This code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <stdio.h>
#include <driver/i2c.h>
#include "esp_log.... |
/* Copyright 2014, 2015 <NAME>
* Copyright 2014, <NAME>
* Copyright 2014, <NAME>
* Copyright 2014, <NAME>
* All rights reserved.
*
* This file is part of CIAA Firmware.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions ar... |
// File: c:/bsd/rigel/sort/C3psort.c
// Date: Fri Dec 29 19:53:38 2017
/* This file has the source of the algorithms that make up parallel FiveSort
headed by fivesort
*/
static const int cut3PLimit = 1875;
/*
#include "Isort.c"
#include "Hsort.c"
#include "Qusort.c"
#include "Dsort.c"
*/
static void tpsc();
// tp... |
// wigner_3j_l
// ===========
//
// Evaluate the 3j symbol f(l1) = ( l1 l2 l3)
// (-m2-m3 m2 m3)
// for all allowed values of l1, the other parameters being held fixed.
//
// Origin
// ------
// SLATEC, http://www.netlib.org/slatec.
//
// Keywords
// --------
// 3j coefficients, 3j sym... |
#include "mex.h"
#include "matrix.h"
mxArray * ReadCArray( FILE * fp, int type );
unsigned long ReadCount( FILE * fp );
void ReadCParam( mxArray * pParam, int index, FILE * fp );
mxArray * ReadCString( FILE * fp );
unsigned long ReadCStringLength( FILE * fp );
mxArray * ReadCStringArray( FILE * fp );
bool ReadCTrial( ... |
/*
* Copyright (C) 2011 <NAME>
* All rights reserved.
*/
/***************************************************************************
*
* test-pcim-das1602-16.c
*
* This program is used to test the PCIM-DAS1602/16 Analog to Digital
* Linux loadable module.
*
*********************************************... |
/* pbmtoppa.c
* program to print a 600 dpi PBM file on the HP DJ820Cse or the HP720 series.
* Copyright (c) 1998 <NAME>. See LICENSE for details
* 2-24-98
*/
#define _BSD_SOURCE
/* This makes sure strcasecmp() is in string.h */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.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 usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <math.h>
#include <stdbool.h>
#include "ft8/unpack.h"
#include "ft8/ldpc.h"
#include "ft8/decode.h"
#include "ft8/constants.h"
#include "ft8/encode.h"
#include "ft8/crc.h"
#include "common/common.h"
#include "common/wave.h"
#include "common/debug.h"
... |
#include "stochastic_gradient_descent.h"
#include "sparse_matrix_utils.h"
sgd_trainer_t *sgd_trainer_new(size_t m, size_t n, bool fit_intercept, regularization_type_t reg_type, double lambda, double gamma_0) {
sgd_trainer_t *sgd = calloc(1, sizeof(sgd_trainer_t));
if (sgd == NULL) return NULL;
double_matr... |
/* $OpenBSD: efiboot.c,v 1.11 2016/07/01 09:34:39 patrick Exp $ */
/*
* Copyright (c) 2015 <NAME> <<EMAIL>>
* Copyright (c) 2016 <NAME>
*
* 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 pe... |
#include "cc.h"
char *read_entire_file(char *filepath);
void erase_backslash_newline(char *src);
Source source;
void init_source(char *src, char *filepath)
{
// caluculate current working directory
int i, j, len = strlen(filepath);
source.cwd = safe_malloc(sizeof(char *) * len);
// TODO: ad-hoc
f... |
/**
* RTOS 2: Practica N2: Drivers Asincronicos
*
*/
/*==================[inclusiones]============================================*/
// Includes de FreeRTOS
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
#include "queue.h"
#include "sapi.h"
// QM Pool
#include "string.h"
#include "driver_uart.h"
#incl... |
/*
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... |
/* Copyright (c) 2007-2009, Stanford University
* 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 ... |
/*
* Copyright (c) <NAME>
*
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "net/gcoap.h"
#include "od.h"
#include "fmt.h"
#include "./hardware/hardware.h"
#define UNUSED(x) (void)(x)
#define MAX_PAYLOAD_SIZE 120
#define URI_MAX_LEN 64
typedef struct {
const char * ... |
/*
* libwebsockets-test-ping - libwebsockets test floodping
*
* Copyright (C) 2011-2016 <NAME> <<EMAIL>>
*
* This file is made available under the Creative Commons CC0 1.0
* Universal Public Domain Dedication.
*
* The person who associated a work with this deed has dedicated
* the work to the public domain by ... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
/*
* Copyright (C) 2012-2015, <NAME> <http://juan.cl/>
* All rights reserved.
*
* This file is part of MultimediaTools. https://github.com/juanbarrios/multimedia_tools
* MultimediaTools is made available under the terms of the BSD 2-Clause License.
*/
#include "random_util.h"
#include <time.h>
#define MAX_SEEDE... |
#include "colours.h"
#include "stdio.h"
#include "string.h"
#include "config.h"
#include "stdlib.h"
#include "MAFontRobotoRegular.h"
#include "button.h"
#include "statusbar.h"
#include "water.h"
#include "MAGFX.h"
#include "touchblock.h"
#include "colourIconBackground_bin.h"
#include "colourIconDarkText_bin.h"
#includ... |
/**
* @file gui.c
* @brief Graphical user interface elements for the Bootloader
* @author <NAME> <<EMAIL>>
* @copyright Copyright 2020 Crypto Advance GmbH. All rights reserved.
*
* Progress bar drawing based on the "min_display" example by <NAME>
* <<EMAIL>>
*/
#include <string.h>
#include <cty... |
/*
* Copyright (c) 2014 <NAME>
* Copyright © 2014 Broadcom
*
* 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... |
/*-
* Copyright (c) 2003-2004 <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 conditi... |
#define LOG_MODULE "patch-piuio"
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "capnhook/hooklib/usb-emu.h"
#include "io/piuio/defs.h"
#include "ptapi/io/piuio.h"
#include "ptapi/io/piuio/util/lib.h"
#include "util/log.h"
// Enable this to get a detailed "call trace" of... |
void Wait(u32 counter){
u32 a=0;
while(a<counter){
a++;
SpriteActions();
UpdateSoundVars();
PA_WaitForVBL();
}
}
void Wait_or_skip(u32 counter){
u32 a=0;
while(a<counter){
a++;
SpriteActions();
UpdateSoundVars();
if((Pad.Newpress.Start)||(Pad.Newpress.A)||(Pad.Newpress.B))a=counter;
PA_WaitForVB... |
/*-------------------------------------------------------------------------
*
* receiver_raw.c
* Receive and apply logical changes generated by decoder_raw. This
* creates some basics for a multi-master cluster using vanilla
* PostgreSQL without modifying its code.
*
* Copyright (c) 1996-2018, PostgreSQL Glob... |
/*
* $Id: MOD_weightvg_util.c 40641 2011-09-28 05:53:40Z campbellbarton $
*
* ***** BEGIN GPL LICENSE BLOCK *****
*
* 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 ... |
#include "Parsha.h"
#include <stdio.h>
// The names of the Parshiot.
static char *parshiot_names[] =
{
"Bereshit", "Noach", "<NAME>", "Vayera", "<NAME>",
"Toldot", "Vayetze", "Vayishlach", "Vayeshev", "Miketz",
"Vayigash", "Vayechi", "Shemot", "Vaera", "Bo",
"Beshal... |
/*!The Treasure Box Library
*
* 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 agreed to in wr... |
/*-
* Copyright (c) 2003-2009 Silicon Graphics International Corp.
* Copyright (c) 2012 The FreeBSD Foundation
* Copyright (c) 2015 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... |
#include <sys/types.h>
#include <sys/param.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <dirent.h>
#include <time.h>
#include <syslog.h>
#include "match.h"
#include "ut.h"
struct filtab {
char *name;
long size;
long mtime;
};
struct filtab *tab;
i... |
/******************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Technology Corp. and is only
* intended for use with Renesas products. No other uses are authorized.
* This software is owned by Renesas Technology Corp. and is protected under
* all a... |
// ATMEL Microcontroller Software Support - Colorado Springs, CO -
// ----------------------------------------------------------------------------
// DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// ME... |
/*******************************
* Title: Set-C
* Author: <NAME>
* Dates: December 2018-January 2019
* Summary:
* Presents a collection of functions for basic manipulating of a set data structure.
* Note: This project drew some inspiration initially from some documentation of kobjects, ksets, and ktypes
* by <NAME> (b... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#include <unistd.h>
#define SQR(x) ((x)*(x))
#define txt "ini.txt"
#define image_path "hawk.ppm"
#define out_image_path "hawk_out.ppm"
#define sobel_image_path "hawk_out_sobel.ppm"
#define BLACK 0
#define WHITE 255
#defi... |
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <ctype.h>
#include <math.h>
#include <limits.h>
#define FACES 24 // Sum of cube faces
#define IDLEN 25 // uchar[24] + \0
#define OPRNUM 6
#define UCHAR_MAX 9 // Causes WARNING on gcc
typedef unsigned char uchar; // ucha... |
//*****************************************************************************
// Filename : 'qr.c'
// Title : Animation code for MONOCHRON QR clock
//*****************************************************************************
#include <string.h>
#include "../global.h"
#include "../glcd.h"
#include "../anim.h"
#... |
/*************************************************************************************************
( _ USP-Universidade de São Paulo _ )
( __ ___.--'_`. ICMC-Instituto de Ciências Matemáticas e de Computação .'_`--.___ __ )
( ( _`.'. - 'o` ) =... |
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <unistd.h>
#include "main.h"
#include "utils.h"
void init_data() {
int i;
int random = 0;
memset(shared.CARD_ID, 0, 16 * sizeof(uint8_t));
memset(shared.CARD_STATUS, 0, 16 * sizeof(uint8... |
// Copyright (c) 2021-2022 ByteDance Inc.
//
// 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, pu... |
// <NAME>, 2019
// The secure Hash Algorithm, 256 bit version
// https://ws690.nist.gov/publication/get_pdf.cfm?pub_id=919060
//The usual input/output header file.
#include <stdio.h>
// For using fixed-bit length integers.
#include<stdint.h>
// Represents a massage block.
union msgblock{
uint8_t e[64];
u... |
#import "hand.h"
// Render constants
#define HAND_RENDER_SCALE_FACTOR 600
#define HAND_MAX_TILT 15
#define HAND_MAX_TOP 20
#define HAND_OFFSET 80
#define HAND_HOVER_ANIM_SPEED 1
#define HAND_REMOVE_ANIM_SPEED 1
#define HAND_FOLLOW_SPEED 1
#define HAND_FOLLOW_OFFSET 10
Hand* createHand(SDL_Renderer* renderer, int (*p... |
// Copyright (C) 2021 Microchip Technology Inc. and its subsidiaries
//
// SPDX-License-Identifier: MIT
#include "board.h"
#include "div.h"
#include "string.h"
#include "arch/at91-qspi/qspi.h"
#include "spi_flash/spi_nor.h"
#include "debug.h"
#include "pmc.h"
#include "timer.h"
#include "qspi-common.h"
#define QSPI_... |
/*
* Copyright (c) 2018 <NAME>
* https://github.com/iotaledger/entangled
*
* MAM is based on an original implementation & specification by apmi.bsu.by
* [ITSec Lab]
*
* Refer to the LICENSE file for licensing information
*/
#include <unity/unity.h>
#include "mam/mss/mss.h"
#include "utils/handles/rand.h"
#if... |
#include "cf/inferno/search/system.h"
#include "cf/x/core/log.h"
#include "cf/x/config/options.h"
#include "cf/x/core/bitarray.h"
#include "cf/x/core/objects.h"
#include "cf/x/file/basic.h"
#include "cf/x/file/csv.h"
#include "cf/x/math/tools.h"
#define DEFAULT_SEARCH_ALGORITHM CF_INFERNO_SEARCH_ALGORITHM_BIOS
#define... |
/*
* main.c
*
* Created on: 16 de Junho de 2020
* Author: <NAME>
*/
#include <string.h>
#include <stdio.h>
#include "stm32f4xx_hal.h"
#include "main.h"
void GPIO_Init(void);
void Error_handler(void);
void UART2_Init(void);
void SystemClock_Config_HSE(uint8_t clock_freq);
void CAN1_Init(void... |
/**
* additive_fft.c
* NTS-KEM
*
* Parameter: NTS-KEM(12, 64)
*
* This file is part of the reference implemention of NTS-KEM
* submitted as part of NIST Post-Quantum Cryptography
* Standardization Process.
**/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "additive_fft.h"
#inclu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.