text stringlengths 3.12k 18.7k |
|---|
#include <stdio.h>
#include <string.h>
#include "reciter.h"
#include "ReciterTabs.h"
#include "debug.h"
unsigned char A, X;
extern int debug;
static unsigned char inputtemp[256]; // secure copy of input tab36096
/* Retrieve flags for character at mem59-1 */
unsigned char Code37055(unsigned char npos, u... |
#include <stdio.h>
#include <stdlib.h>
#include <Windows.h>
#include <winnt.h>
void *load_PE(char *PE_data);
void fix_iat(char *, IMAGE_NT_HEADERS *);
void fix_base_reloc(char *p_image_base, IMAGE_NT_HEADERS *p_NT_headers);
int main(int argc, char const *argv[]) {
if (argc < 2) {
printf("missing path argument\... |
/*
* Copyright 2014, The TenDRA Project.
*
* See doc/copyright/ for the full copyright terms.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <shared/bool.h>
#include <shared/check.h>
#include <shared/getopt.h>
#include <shared/error.h>
#include <shared/string.h>
#include <main/driver.h>
#... |
/* -------------------------------------------------------------------------------------------------
* Copyright 2016, Cypress Semiconductor Corporation.
*
* This software is owned by Cypress Semiconductor Corporation (Cypress)
* and is protected by and subject to worldwide patent protection (United
* States and ... |
// Copyright (c) <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 use, copy, modify,
// merge, publish,... |
#include <assert.h>
#if defined(__WIN32) || defined(__WIN64)
#include <windows.h>
#endif
#define SDL_PIXELFORMAT_XBGR8888 SDL_PIXELFORMAT_BGR888
#include <mathc/mathc.h>
#include <SDL2/SDL.h>
#define STB_IMAGE_IMPLEMENTATION
#include <stb/stb_image.h>
#include "filesys.h"
#include "glheaders.h"
#include "hash.h"
#i... |
/*
* MIT License
*
* Copyright (c) 2021 <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, m... |
/* $XFree86: xc/programs/Xserver/hw/xfree86/vga256/drivers/sis/sis_blitter.c,v 1.1 1997/01/12 10:43:06 dawes Exp $ */
/*
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear i... |
/* This file is a part of MIR project.
Copyright (C) 2018-2020 <NAME> <<EMAIL>>.
*/
/******************************************************************************
* Copyright (C) 2020-2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated d... |
/*-
* Copyright (c) 2011 Daemotron <<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 copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D... |
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/stat.h>
//#include <windows.h>
#include "graph.h"
#include "main.h"
#include "dnepsa.h"
#include "dnsa.h"
#define PROBLEMS "networks"
#define DIR_PRE "networks-"
#define FILE_PRE "instance-"
#ifnde... |
/*
* fireworks_proc.c - a part of driver for Fireworks based devices
*
* Copyright (c) 2009-2010 <NAME>
* Copyright (c) 2013-2014 <NAME>
*
* Licensed under the terms of the GNU General Public License, version 2.
*/
#include "./fireworks.h"
static inline const char*
get_phys_name(struct snd_efw_phys_grp *grp, b... |
/******************************************************************************
@file sensor_bmp280.c
@brief Driver for the Bosch BMP280 Pressure Sensor
Group: WCS, LPC, BTS
Target Device: CC2650, CC2640, CC1350
******************************************************************************
Copyright (c) 20... |
#include <exec/interrupts.h>
#include <hardware/intbits.h>
#include <devices/input.h>
#include <devices/inputevent.h>
#include <clib/exec_protos.h>
#include <clib/input_protos.h>
#include <clib/dos_protos.h>
#include <clib/potgo_protos.h>
#include <dos/dos.h>
#include <stdio.h>
#include "newmouse.h"
//#define NM_WHEEL... |
/*
* main.c
* Created on: Oct 14, 2015
* Author: <NAME>
* Fast species evolution
* Version 1. Without RXN 5, alpha=2
*
* Branch algorithm depending on the input_time range
* 1) t<=6
* for increment of the day
* Define v_s= v[1:2,:]
* c_s= c[1:2,:... |
/* File size change tool v1.0
By Konamiman 10/2014
Compilation command line:
sdcc --code-loc 0x180 --data-loc 0 -mz80 --disable-warning 196
--no-std-crt0 crt0_msxdos_advanced.rel fsize.c
hex2bin -e com fsize.ihx
*/
/* Includes */
#include <stdio.h>
#include <stdlib.h>
#include <... |
/*
* MikroSDK - MikroE Software Development Kit
* Copyright© 2020 MikroElektronika d.o.o.
*
* 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 ... |
/*
* File: main.c
* Project: kos_pvr_texture_load
* File Created: Wednesday, 23rd January 2019 8:07:09 pm
* Author: <NAME> (<EMAIL>)
* -----
* Copyright (c) 2019 <NAME>
*/
#include <dc/cdrom.h>
#include <dc/flashrom.h>
#include <dc/maple.h>
#include <dc/maple/controller.h>
#include <dc/pvr.h>
#include <dc/vide... |
/******************************************************************************/
/* */
/* Copyright (c) 1990-2016, KAIST */
/* All rights reserved. ... |
#include "hotspot.h"
void writeoutput(float *vect, int grid_rows, int grid_cols, char *file) {
int i,j, index=0;
FILE *fp;
char str[STR_SIZE];
if( (fp = fopen(file, "w" )) == 0 )
printf( "The file was not opened\n" );
for (i=0; i < grid_rows; i++)
for (j=0; j < grid_cols; j++)
{... |
/***************************************************************************
Copyright (c) 2019, <NAME>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE ... |
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "common.h"
#include "disassembler.h"
#include "inputstate.h"
#include "instructions.h"
#include "ref_cpu.h"
#include "tester.h"
#define INSTRUCTION_MEM_SIZE 4
static u8 instruction_mem[INSTRUCTION_MEM_SIZE];
static unsigned long... |
#include "memchunkhax2.h"
#include <3ds.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define SLAB_HEAP_VIRT 0xFFF70000 // O3DS 9.0+, N3DS All
#define SLAB_HEAP_PHYS 0x1FFA0000
#define KERNEL_VIRT_TO_PHYS 0x40000000
#define PAGE_SIZE 0x1000
#define OLDNEW(x) (isNew3DS ? x ## _NEW : x ## _OLD)
#de... |
/**
* @file f_step_ellipsoid.c
* @brief Implementation of the step ellipsoid function and problem.
*
* The BBOB step ellipsoid function intertwines the variable and objective transformations in such a way
* that it is hard to devise a composition of generic transformations to implement it. In the end one would
* ... |
// Copyright (c) 2013-2019 Bluespec, Inc. All Rights Reserved
// This program reads an ELF file into an in-memory byte-array.
// This can then sent to a debugger.
// ================================================================
// Standard C includes
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#inc... |
/*****************************************************************************
FILE: easytest.cpp
AUTHOR: <NAME>
REVISED: 5/13/2002 (PSH); 4/10/2003 (GBM)
___________________________________________________________________________
easytest.cpp: Use bdac to generate an annotation file.
Copyright (C) 2001 <NAME>
Copy... |
#include "global.h"
#include "pop_bubbles.h"
#include "supernode.h"
/*
Popping bubbles works by iterating over all unitigs. For each unitig
we attempt to pull out parallel unitigs. Once we have two parallel
unitigs we see if one should be removed.
*/
/*
In some rare situations boths branches of a bubble will b... |
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
#include "sdk_common.h"
#include "nrf_gpio.h"
#include "nrfx_spim.h"
#include "app_error.h"
#include "bsp_lcd_ie3130b_dri.h"
#include <rtthread.h>
#define SPI_INSTANCE 3 /**< SPI instance index. */
static const nrfx... |
//
// CBNetworkAddress.c
// cbitcoin
//
// Created by <NAME> on 02/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 o... |
/*
* Assembler.c
* Project: Assembler projects, receives 'x.as' file and parser it.
* If Success then Assembler will create output files and will stop,
* otherwise Assembler will print errors outputs and will stop after it will find all possible errors.
* The Assembler will ask you nicely to fix a spec... |
//
// Copyright (c) 2019, Intel Corporation
// 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 conditi... |
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
* (C) 2001 by Argonne National Laboratory.
* See COPYRIGHT in top-level directory.
*/
#include "mpidi_ch3_impl.h"
MPIDI_CH3I_Process_t MPIDI_CH3I_Process = {NULL};
/* Define the ABI version of this channel. Change this if the channel
interface (not just the im... |
#include "oil_libjpeg.h"
#include "oil_libpng.h"
#include <stdlib.h>
#include <jpeglib.h>
#include <png.h>
static void png(FILE *input, FILE *output, int width, int height)
{
int i, in_width, in_height, ret;
png_structp rpng, wpng;
png_infop rinfo, winfo;
png_byte ctype;
struct oil_libpng ol;
unsigned char *outb... |
/*
* libslp-location
*
* Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. All rights reserved.
*
* Contact: <NAME> <<EMAIL>>, <NAME> <<EMAIL>>,
* <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance... |
/*
* sm5010-irq.c
*
* Copyright (c) 2016 SILICONMITUS COMPANY,LTD
*
* 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 License, or (at your
* optio... |
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <ctype.h>
#include "area.h"
#include "stuff.h"
#include "level.h"
#include "game.h"
#include "creature.h"
#include "find.h"
/*
Builds a new area_t with its coordinates set to {Y, X}.
*/
area_t * new_area(const unsigned int y, const unsigned int x)... |
/* ====================================================================
* Copyright (c) 1994-2000 Carnegie Mellon 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:
*
* 1. Red... |
/*
* Copyright (c) 2005 by IBM Corporation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This
* file and program are licensed under a BSD style license. See
* the Copyi... |
/*
* File : tim-tam-tom.c
* Program: tim-tam-tom -- A tic-tac-toe game written in curses
* Purpose: A tic-tac-toe game!
* Author : <NAME> <<EMAIL>>
* License: MIT - See LICENSE
* Notes : Link with -lm -lform -lncurses;
*/
#include <stdlib.h>
#include "draw.h"
#include "moves.h"
#include "form_username.h"
#d... |
#include "stm32f4xx.h"
#include "stm32f4xx_rcc.h"
#include "stm32f4xx_gpio.h"
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "semphr.h"
#include "arm_math.h"
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "accelerometers/accelerometers.h"
#include "temperature/temperature.h"
#i... |
/*
* Copyright (C) <NAME>
* Copyright (C) Rap, Inc.
*/
#include <rap_config.h>
#include <rap_core.h>
#include <rap_stream.h>
typedef struct {
rap_array_t *from; /* array of rap_cidr_t */
} rap_stream_realip_srv_conf_t;
typedef struct {
struct sockaddr *sockaddr;
socklen_t sock... |
/* Split MAF file based on positions in a bed file */
#include "common.h"
#include "portable.h"
#include "hash.h"
#include "options.h"
#include "sqlNum.h"
#include "maf.h"
#include "bed.h"
#include "dlist.h"
static char const rcsid[] = "$Id: mafBreak.c,v 1.3 2007/06/25 16:51:13 braney Exp $";
void usage()
/* Explain... |
// ------------------------------------------------------------------
// codec_longr_alg.c
// Copyright (C) 2021-2022 Black Paw Ventures Limited
// Please see terms and conditions in the file LICENSE.txt
// Copyright claimed on additions and modifications vs EnanoFASTQ.
//
// The code in this file is partially ... |
#include "u.h"
#include "../port/lib.h"
#include "mem.h"
#include "dat.h"
#include "fns.h"
#include "../port/error.h"
#include "devtab.h"
#include "io.h"
int scsiintr(void);
#define DPRINT if(debug)kprint
int scsidebugs[8];
int scsiownid = 0x08|7; /* enable advanced features */
Scsibuf *
scsialloc(ulong n)
{
Scsib... |
#line 2
// Various Shadow mapping functions
// Initializes the parameters for the adaptive depth bias
// Parameters:
// plcs: the position in [0-1) range in light post-projective coordinates
vec2 d_anal_z_to_du_dv;
void initSlopeBias(vec3 plcs)
{
// take derivatives on 2x2 block of pixels
// derivative of distance t... |
/*
* Copyright 2018 GoPro Inc.
*
* 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, Vers... |
//
// Created by smackem on 24.03.21.
//
#include <stdio.h>
#include "vm.h"
static const char *const opcode_names[] = {
"Nop",
"LdGlb_i32",
"LdGlb_f64",
"LdGlb_u8",
"LdGlb_ref",
"LdGlb_ptr",
"LdFld_i32",
"LdFld_f64",
"LdFld_u8",
"LdFld_ref",
"LdFld_ptr",
"LdElem_i32",
... |
#include "rhobli.h"
#include "enclave_data_structures.h"
#include "Enclave_t.h"
#include "Enclave.h"
#include "prj_params.h"
#include "radix_join.h"
#include "util.h"
#ifndef HASH_BIT_MODULO
#define HASH_BIT_MODULO(K, MASK, NBITS) (((K) & MASK) >> NBITS)
#endif
#ifndef MAX
#define MAX(X, Y) (((X) > (Y)) ? (X) : (Y))
... |
/*Retirer 2 iéme boucle dans move particle
* retirer un accès au tableau
* retirer la puissance pour un x*x*x
*
*/
#include <immintrin.h>
#include <omp.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
//
typedef float f32;
typedef double f64;
typedef unsigned long long u6... |
/*
* Windows backend for libusbx 1.0
* Copyright © 2009-2012 <NAME> <<EMAIL>>
* With contributions from <NAME>, <NAME> et al.
* Parts of this code adapted from libusb-win32-v1 by <NAME>
* Major code testing contribution by <NAME>
*
* This library is free software; you can redistribute it and/or
* modify it unde... |
/* $OpenBSD: hash.c,v 1.14 2004/01/04 18:30:05 deraadt Exp $ */
/* $NetBSD: hash.c,v 1.4 1996/11/07 22:59:43 gwr Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* This software was developed by the Computer Systems Engineering group
* at Lawrence Berke... |
/*
Copyright 1994, 1998 The Open Group
Permission to use, copy, modify, distribute, and sell this software and its
documentation for any purpose is hereby granted without fee, provided that
the above copyright notice appear in all copies and that both that
copyright notice and this permission notice appear in suppor... |
/**********************************************************************/
/* ____ ____ */
/* / /\/ / */
/* /___/ \ / */
/* \ \ \/ ... |
/**
* Copyright (C) 2017, <NAME>
**/
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <predict.h>
#include <utils/static_assertion.h>
#include <pstd.h>
#include <pstd/types/string.h>
#include <pservlet.h>
#include <proto.h>
#include <json_model.h>
/**
* @brief The interna... |
// File: ftl_gc_manager.c
// Date: 2014. 12. 03.
// Author: <NAME> (<EMAIL>)
// Copyright(c)2014
// Hanyang University, Seoul, Korea
// Embedded Software Systems Laboratory. All right reserved
#include "common.h"
//#define FTL_DEBUG
void GC_CHECK(struct ssdstate *ssd, unsigned int phy_flash_nb, unsigned int phy_bloc... |
#define COUNT_BYTES
#define _GNU_SOURCE
#include <stdint.h>
#include <dlfcn.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <threads.h>
#include <unistd.h>
#include <execinfo.h>
#include <sys/types.h>
const int ALLOC_LIMIT = 100;
thread_local FILE * file = 0;
thread_local unsigned long long... |
/*
* RACHELL
* Really Abnormal Crazy sHELL
*
*/
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<unistd.h>
#include<stdbool.h>
//commands
// ls, mkdir, echo, cat, rm, cd, exit, touch
#define NAMELEN 0x20
#define MAXPATH_LEN 0x100
#define MAXCHILD 0x10
#define SYSBUF 0x5000
typedef enum{ ... |
/*
* Author: <NAME> <<EMAIL>>
*
* Copyright (c) 2014 Kaprica Security, 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 ri... |
/*
* mod_vhostdb_mysql - virtual hosts mapping from backend MySQL/MariaDB database
*
* Copyright(c) 2017 <NAME> <EMAIL> All rights reserved
* License: BSD 3-clause (same as lighttpd)
*/
#include "first.h"
#include <mysql.h>
#include <string.h>
#include <stdlib.h>
#include "base.h"
#include "http_vhostdb.h"
#in... |
/*
*
* Copyright 2015 gRPC authors.
*
* 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 agree... |
/**
* @file obstring.c
* @brief obstring Method Implementation
* @author theck
*/
#include "../../include/obstring.h"
#include "../../include/private/obstring_private.h"
/** Buffer size for a string to print on a regex error */
#define REGEX_ERROR_BUFFER_SIZE 256
/* PUBLIC METHODS */
obstring *obstring_new(cons... |
/**
******************************************************************************
* @file webclient.c
* @author TaterLi
* @brief LwIP Netconn HTTP/1.0 Client (GET/POST)
******************************************************************************
Example:
extern struct netif gnetif;
cJSON *root,... |
/*
* Implicit list
* First fit.
* Each block has footer and header for 4 bytes.
* Use padding to eliminate bond conditions of coalscing.
*
* Structure of block:
*
* --------------------------
* | HEADER | DATA| FOOTER|
* --------------------------
*
*
* Structure of header and footer(alignment: 8) ... |
/* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.... |
/* Core target definitions for GNU compiler
for IBM RS/6000 PowerPC running NetWare
Copyright (C) 1994 Free Software Foundation, Inc.
Contributed by Cygnus Support.
This file is part of GNU CC.
GNU CC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License... |
#include "io.h"
#include "Player.h"
#include "Pieces.h"
#include "stdio.h"
#include "stdlib.h"
#define BOARD_SIZE 20
struct Player arr_list[4]; // holds structs for Players 1,2,3,4
int currentBoard[BOARD_SIZE][BOARD_SIZE] = {0}; // placed pixels in 2d array
void Init_Players(struct Player ar... |
/* test_ecc_utils.c - TinyCrypt common functions for ECC tests */
/*
* Copyright (C) 2015 by Intel Corporation, 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 ... |
// SPDX-License-Identifier: BSD-3-Clause
/*
* Simple Landlock sandbox manager able to launch a process restricted by a
* user-defined filesystem access control policy.
*
* Copyright © 2017-2020 <NAME> <<EMAIL>>
* Copyright © 2020 ANSSI
*/
#define _GNU_SOURCE
#include <errno.h>
#include <fcntl.h>
#include <linux/... |
/*!
#
# Copyright (c) 2012 <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:
#
# * Redistributions of source code must retain the above copyright
# notice, this l... |
/***************************************************************************
* Copyright (C) 2016
* by Dimok
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any
* damages arising from the use of this software.
*
* Permission is gr... |
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <time.h>
#include <netinet/in.h>
#include <inttypes.h>
#include "postgres.h"
#include "catalog/pg_type.h"
#include "fmgr.h"
#include "utils/builtins.h"
#include "openssl/hmac.h"
#include "ap_pgutils.h"
#inc... |
#include <bearssl.h>
#include <pthread.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <poll.h>
#include <semaphore.h>
#include <stdio.h>
#include <arpa/nameser.h>
void pkey_hash(unsigned char *, unsigned char *, const br_x509_pkey *);
int check_tlsa... |
/*
* 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 <celib/macros.h>
#include <celib/module.h>
#include <celib/memory/memory.h>
#include <celib/id.h>
#include <celib/api.h>
#include <celib/cdb.h>
#include <cetech/debugui/icons_font_awesome.h>
#include <cetech/renderer/gfx.h>
#include <cetech/resource/resource.h>
#include <cetech/debugui/debugui.h>
#include <cet... |
/* id -- print real and effective UIDs and GIDs
Copyright (C) 1989-2011 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 3 of the License, or
... |
// 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... |
/*
* 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... |
/**
* @file f_rastrigin.c
* @brief Implementation of the Rastrigin function and problem.
*/
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include "coco.h"
#include "coco_problem.c"
#include "suite_bbob_legacy_code.c"
#include "coco_utilities.c"
#include "transform_vars_conditioning.c"
#include "transfo... |
/*
* At 100Hz ADC sample channels 0..10 and print to UART TX1 (921600 8N1)
*
* Sampling takes about 20us for the scan plus another 40-50 for the injected channels (Vref and Vtemp)
* At 921600 Bd, the serial can send about 100kB/s. In human readable lines we use about 60 characters per sample.
* The can bus at... |
#include <nds.h>
#include "scenes.h"
#include "io.h"
#include "mi.h"
static int g_titleLastTick = 0;
#define VCOUNT (*(vu16*)0x04000006)
#define BG3HOFS (*(vs16*)0x0400001C)
#define BG3VOFS (*(vs16*)0x0400001E)
#define N_PALETTES 32
#define SWIZZLE(ind) ((((ind)&0xF)>>1... |
/*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2017 Intel Corporation. All rights reserved.
*
*
* 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
... |
#include <stdio.h>
#include <math.h>
#include <sys/time.h>
#include "avecis.h"
#include "drawPtElement.h"
#include "ucrot.h"
#include "correspond3d.h"
#define HOSTNAME "127.0.0.1"
#define PORT 27015
#define win_width 640
#define win_height 360
#define display_unit_size (win_height / 6.5)
float cube_static[] = {-1.0,... |
/*
Multi Timer v3.4
http://matthewtole.com/pebble/multi-timer/
----------------------
The MIT License (MIT)
Copyright © 2013 - 2015 <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... |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* fractol_init_fract2.c :+: :+: :+: ... |
/******************************************************************************
* @attention
*
* <h2><center>© COPYRIGHT 2016 STMicroelectronics</center></h2>
*
* Licensed under ST MYLIBERTY SOFTWARE LICENSE AGREEMENT (the "License");
* You may not use this file except in compliance with the License.
* You ... |
/**
@file
dbcuelist - demonstrate use of a sqlite database
This is a very simple example of a cue list:
- an event is simply an array of atom values
- a cue is simply a collection of events with a name
This object itself has a name.
All objects with the same name share the same database (and thus the same cues... |
#if defined(macintosh)
#include <types.h>
#else
#include <sys/types.h>
#include <sys/time.h>
#endif
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <ctype.h>
#include "merc.h"
/*
* Erwins Auction System by Kyndig
*/
/* modified by spellsong to replace commands and messages to ... |
/* $Id: proto_push_traceroute.c 20800 2012-01-19 05:13:45Z m-oki $ */
/*
* Copyright (c) 2012, Internet Initiative Japan, Inc.
* 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. Red... |
// This file contains definitions for the
// x86 memory management unit (MMU).
// Eflags register
#define FL_CF 0x00000001 // Carry Flag
#define FL_PF 0x00000004 // Parity Flag
#define FL_AF 0x00000010 // Auxillary carry Flag
#define FL_ZF 0x00000040 // Zero Flag
#define FL_SF 0x00000080 // Sign Flag
#d... |
/* dvb-usb-urb.c is part of the DVB USB library.
*
* Copyright (C) 2004-5 <NAME> (<EMAIL>)
* see dvb-usb-init.c for copyright information.
*
* This file contains functions for initializing and handling the
* USB and URB stuff.
*/
#include "dvb-usb-common.h"
int dvb_usb_generic_rw(struct dvb_usb_device *d, u8 *w... |
#include <gb/gb.h>
#include "defines.h"
#include "select.h"
#include "fade.h"
#include "gamestate.h"
#include "cos.h"
#include "ram.h"
#include "sound.h"
#include "mmlgb/driver/music.h"
#include "characters.h"
#include "arrow.h"
#include "data/sprite/togglecat.h"
#include "circles.h"
#include "data/bg/catface.h"
#inc... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <omp.h>
//Inisialisasi linked list, dibuat oleh rionaldi
struct data {
char nama[20];
int umur;
char alamat[30];
int urutan;
struct data * next;
};
//prototype dari function encoding dan decoding
void encoding(int k,struc... |
// Copyright 2022 Blues Inc. All rights reserved.
// Use of this source code is governed by licenses granted by the
// copyright holder including that found in the LICENSE file.
// App Scheduler
#include "framework.h"
// Current operational state of a scheduled app
typedef struct {
bool disabled;
bool active... |
/**
* \file
*
* \brief GCC startup file for ATSAMG55
*
* Copyright (c) 2017 Atmel Corporation, a wholly owned subsidiary of Microchip Technology Inc.
*
* \license_start
*
* \page License
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with... |
/*
* GStreamer
* Copyright (C) <2010-2015> <NAME> <<EMAIL>>
*
* Dodge - saturation video effect.
* Based on Pete Warden's FreeFrame plugin with the same name.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
... |
/*
* Copyright (C) 1985-1992 New York University
*
* This file is part of the Ada/Ed-C system. See the Ada/Ed README file for
* warranty (none) and distribution info and also the GNU General Public
* License for more details.
*/
#define GEN
/* dbg - debugger interface for adagen */
#include "hdr.h"
#include... |
//memory_simulator.c
//<NAME>
//This program simulates virtual memory management with a translation lookaside
//buffer (TLB with FIFO replacement policy) and a page table (demand paging).
//Statistics are computed regarding TLB hit rate and page fault rate.
//General Algorithm:
//read virtual addresses from file
//use... |
// INFERNO
#include <vfs.h>
#include <kfs.h>
#include <slab.h>
#include <kmalloc.h>
#include <kref.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <error.h>
#include <cpio.h>
#include <pmap.h>
#include <smp.h>
#include <ip.h>
#include <endian.h>
static short endian = 1;
static uint8_t *aendian ... |
/************************************************
*
* Converting binary resources from/to *.rc files
*
* Copyright 1999 <NAME>
* Copyright 2003 <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 Fre... |
/*********************************************************************
* ConfD Subscriber intro example
* Implements a DHCP server adapter
*
* (C) 2005-2007 Tail-f Systems
* Permission to use this code as a starting point hereby granted
*
* See the README file for more information
******************************... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.