text
stringlengths
3.12k
18.7k
/* * Written by <NAME> (<EMAIL>) for the OpenSSL project * 2003. */ /* ==================================================================== * Copyright (c) 2003 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided...
/******************** (C) COPYRIGHT 2008 STMicroelectronics ******************** * File Name : usb_desc.c * Author : MCD Application Team * Version : V2.2.1 * Date : 09/22/2008 * Description : Descriptors for Custom HID Demo ******************************************...
/* * ============================================================================ * Copyright (c) 2010 Marvell Semiconductor, Inc. All Rights Reserved * * Marvell Confidential * ============================================================================ * */ #include <stdint.h> #incl...
/* cache.c: This program is a test program which repeatedly (REPEAT times) accesses the same NUM_ENTRIES entries in a large array using a FIXED SPACING of line_offset entries between accesses (i.e. if tmparray[j] has just been accessed the next access will be to tmparray[j + line_offset]). The user chooses the...
/** <Atom2Vox.c> Functions from atomic data to Voxel data **/ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include <math.h> #include <stdbool.h> #include "pdbstruct.h" #include "PdbIO.h" #include "Radius.h" #include "gauss.h" #include "Matrix3D.h" #include "Voxel.h" #include "M...
/* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 Copyright (C) 2004 <NAME> <<EMAIL>> Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. DO WHA...
/* $NetBSD: oclock.c,v 1.1 2002/03/28 11:54:17 pk Exp $ */ /*- * Copyright (c) 2002 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistribution and use in source and binary forms, with or without * modification, ...
/* RX task * * Copyright 2020 <NAME>, Univ. Lille, CNRS. * * This file is part of Project Ubertooth. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your optio...
// Copyright (c) 2019 Diamond Key Security, NFP // Copyright (c) 2019 Diamond Key Security, NFP // 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 re...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <float.h> #include <stdbool.h> #include "sql_op.h" #include "csv.h" static const char DELIMITER = ';'; #define COLUMN_NAME_LEN 128 typedef char (*column_name)[COLUMN_NAME_LEN]; #define LINE_NAME_LEN 32 typedef char (*line_name)[LI...
/* * File: game.c * Author: <NAME> * Date: July 23, 2014 * * This file contains the implementation of the game logic. */ #include <assert.h> #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include "game.h" #define POS_IN_DIR(pos, dir) ((pos) + (dir)) // The maximum which the game supports in any...
/*************************************************************************\ * Copyright (c) 2002 <NAME>, DIRO, Université de Montréal. * SEE: LICENSE \*************************************************************************/ #define _CRT_SECURE_NO_WARNINGS #include "gdef.h" #include "util.h" #include "gofs.h" #incl...
// Copyright (c) 2012-2017, The CryptoNote Developers, The Bytecoin Developers // Copyright (c) 2020, The TurtleCoin Developers // // Please see the included LICENSE file for more information. #include "ge_fromfe_frombytes_vartime.h" /* sqrt(x) is such an integer y that 0 <= y <= p - 1, y % 2 = 0, and y^2 = x (mod p)...
/*-------------------------------------------------------------------- This source distribution is placed in the public domain by its author, <NAME>. You may use it for any purpose, free of charge, without having to notify anyone. I disclaim any responsibility for any errors. Optionally, please be nice and tell me if ...
// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2018 MediaTek, Inc. * Author : <EMAIL> */ #include <common.h> #include <dm.h> #include <malloc.h> #include <spi.h> #include <asm/io.h> #include <linux/iopoll.h> #include <linux/ioport.h> /* Register Offset */ struct mtk_qspi_regs { u32 cmd; u32 cnt; u32 rd...
/* Distributed under the MIT license. See the LICENSE file. * Copyright (c) 2014--2016 <NAME> */ /* read symbols from running process. */ /* 1. find _DYNAMIC in normal symtable * 2. _Sym's st_value for _DYNAMIC gives d_tag of an Elf64_Dyn in inferior * 3. if _Dyn's tag is DT_DEBUG, than +1 word is the _Dyn's d_ptr,...
/****************************************************************************** * Copyright (c) 2009 - 2010 Marvell International, Ltd. All Rights Reserved * * Marvell Confidential ******************************************************************************/ /** * *This file contain...
// Copyright (c) 2022 Cesanta Software Limited // All rights reserved // // This software is dual-licensed: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License version 3 as // published by the Free Software Foundation. For the terms of this // license, see http://www.fsf...
/* * 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. */ /* rsw.c - reduce sw. Read a 1D FT-ed VNMR nD data file and write out a reduc...
/***************************************************************************** ** ** Name sbc_decoder.c ** ** Description ** This file contains the code for bit allocation algorithm. ** It calculates the number of bits required for the encoded stream of data. ** ** Copyright (c) 2002, WIDCOMM Inc., All Rights R...
/* * CDDL HEADER START * * The contents of this file are subject to the terms of the * Common Development and Distribution License, Version 1.0 only * (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 * o...
// File name: main.c #include <math.h> #include <stdio.h> #include <stdlib.h> #include <time.h> struct OneDMemrefF64 { double *ptrToData; double *alignedPtrToData; long offset; long shape[1]; long stride[1]; }; struct TwoDMemrefF64 { double *ptrToData; double *alignedPtrToData; long offset; long sh...
/* A small script parser to parse R3X script (.rxs) files */ #include <r3x_script.h> #include <nt_malloc.h> FILE* input_file = NULL; int look = 0; unsigned int line_num = 0; char** string_pointers = NULL; unsigned int used_string_ptrs = 0; unsigned int string_pointers_sz = 0; ScriptState* GlobalScriptState = NULL; bo...
/* Author: <NAME> * Date: 11-10-2016 * Last revision: 13-11-2016 */ #include <gtk/gtk.h> #include <pthread.h> #include <stdbool.h> #include <stdio.h> #include <unistd.h> #include <structures.h> #include <stdlib.h> //for system() #include <gdk/gdkx.h> //global vars GtkWidget* window; //main window GtkWidget* box; /...
/* * Copyright (c) 2010, <NAME>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions ...
#include "aarch64/registers.h" #include "bcm2836_ic.h" #include "exceptions.h" #include "kio.h" #include "page.h" #include "process.h" #include "syscall.h" #include "vmem.h" #include <stdbool.h> #include <stdint.h> int interrupt_ref = 0; int in_exception = 0; extern void exec_signal_handler(void (*code)(int), uint64_...
/* * Copyright 2019 <EMAIL> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
// Copyright (c) 2019 <NAME> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include <sys/socket.h> #include "netio.h" #include "cipher.h" #include "hash.h" error_t net_sendmsg(int sock, const msgbuf_t* msg) { len_t namelen = strlen(msg->name); len_t grouplen; if(msg->group == NULL) ...
/*- * SPDX-License-Identifier: BSD-2-Clause-FreeBSD * * Copyright (c) 2011 NetApp, Inc. * Copyright (c) 2018 Joyent, 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. Redistrib...
#include <errno.h> #include <stdlib.h> #include "double.h" #include "int.h" #include "matrix_sparse_private.h" static int int_array_position(int n, const int * a, int element) { int i; for (i = 0; i < n; ++i) if (element == a[i]) return i; return -1; } static void lhs_restricted_matrix_modify( ma...
#define F_CPU 16000000 #include <avr/io.h> #include <avr/delay.h> #include <avr/interrupt.h> #include <stdlib.h> #include "uart.h" //Left motor operated internally by 3 inputs. Two control inputs and one PWM signal defined below as follows. #define L_CTRL_1 PIND2 #define L_CTRL_2 PIND4 #define PWM_L PIND5 //OC0B //...
//Copyright 2013 <>< <NAME>, Relicensed under the MIT/x11 License. #include "objreader.h" #include <stdlib.h> #include <stdio.h> #include <string.h> #include "3dutils.h" #define TBUFFERSIZE 256 #define VBUFFERSIZE 524288 struct TempObject { char CNameBuffer[TBUFFERSIZE]; int CVertCount; float CVerts[VBUFFERSI...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "parceiros_de_trabalho.h" //~ESTRUTURAS struct node_{ struct user_ *user; //aponta ao usuário em questão struct node_ *next; //aponta ao próximo nó da lista }; struct message_{ char *info; //contém a mensagem propriamente dita Use...
#define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <limits.h> #include <string.h> #include <stdint.h> #include <omp.h> uint32_t *out; uint32_t *tex; int w=102...
/*------------------------------------------------------------------------- * * auto_explain.c * * * Copyright (c) 2008-2014, PostgreSQL Global Development Group * * IDENTIFICATION * contrib/auto_explain/auto_explain.c * *------------------------------------------------------------------------- */ #include...
/* * Copyright (c) 2021 HiSilicon Technologies Co., Ltd. * Wayca scheduler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * http://license.coscl.org.cn/MulanPSL2 * THIS SOFTWARE IS PROVIDED...
// RUN: %llvmgcc %s -emit-llvm -O0 -g -c -o %t1.bc // RUN: rm -rf %t.klee-out // RUN: %klee --single-repr-for-nan=1 -search=dfs -use-construct-hash-z3=1 -debug-assignment-validating-solver -z3-validate-models --output-dir=%t.klee-out --exit-on-error %t1.bc #include "klee/klee.h" #include <assert.h> #include <stdio.h> #...
/***************************************************************************** * slaves.c: test libvlc_media_t and libvlc_media_player_t slaves API ***************************************************************************** * Copyright © 2016 VLC authors, VideoLAN and VideoLabs * * This program is free software;...
#include "region_layer.h" #include "activations.h" #include "softmax_layer.h" #include "blas.h" #include "box.h" #include "cuda.h" #include "utils.h" #include <stdio.h> #include <assert.h> #include <string.h> #include <stdlib.h> region_layer make_region_layer(int batch, int w, int h, int n, int classes, int coords) { ...
/******************************************************************************* # uvccapture: USB UVC Video Class Snapshot Software # #This package work with the Logitech UVC based webcams with the mjpeg feature # #. ...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Mupen64plus - main.c * * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * * Copyright (C) 2012 CasualJames * * Copyri...
/* / _____) _ | | ( (____ _____ ____ _| |_ _____ ____| |__ \____ \| ___ | (_ _) ___ |/ ___) _ \ _____) ) ____| | | || |_| ____( (___| | | | (______/|_____)_|_|_| \__)_____)\____)_| |_| (C)2017 Semtech-Cycleo Description: Minimum test program for the loragw_reg 'library' Licen...
/*===---- cpuid.h - X86 cpu model detection --------------------------------=== * * 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 rig...
/* $Cambridge: exim/exim-src/src/filtertest.c,v 1.12 2009/11/16 19:50:37 nm4 Exp $ */ /************************************************* * Exim - an Internet mail transport agent * *************************************************/ /* Copyright (c) University of Cambridge 1995 - 2009 */ /* See the file NOTICE ...
/* 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, merge, publish, distrib...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...
// inspired by https://github.com/mysterioustrousers/MTGeometry/blob/master/MTGeometry/MTGeometry.c #import <math.h> #import <CoreGraphics/CoreGraphics.h> #import <UIKit/UIKit.h> #define NULL_NUMBER INFINITY #define NULL_POINT CGPointMake(NULL_NUMBER, NULL_NUMBER) #define RADIANS(degrees) ((degree...
/* IPOL SIFT Copyright (C) 2014, <NAME>, CMLA ENS Cachan <<EMAIL>> Version 20140911 (September 11th, 2014) This C ANSI source code is related to the IPOL publication [1] "Anatomy of the SIFT Method." <NAME> and <NAME> Image Processing Online, 2013. http://www.ipol.im/pub/algo/rd_anatomy...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <pthread.h> #include <stdbool.h> #define MAX_N 20 #define MIN_N 1 #define MAX_R 50 #define MIN_R 1 #define MAX_BUFFER 10000 #define MIN_BUFFER 10 #define MAX_LENGTH 256 // TODO: buffer finishes, wordArray size (realloc), merger, check leaks typedef ...
void PUT32 ( unsigned int, unsigned int ); unsigned int GET32 ( unsigned int ); void WFE ( void ); #define RESETS_BASE 0x4000C000 //#define RESETS_RESET_RW (RESETS_BASE+0x0+0x0000) //#define RESETS_RESET_XOR (RESETS_BASE+0x0+0x1000) //#define RESETS_RESET_SET (RESETS_BASE+0x0+0x200...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <stdint.h> #include <inttypes.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <time.h> #include <limits.h> #include <x86intrin.h> #include "zerodb.h" #include "index.h" #include "index_loader.h" #include ...
#include "malloc.h" #include <stdint.h> #include <sys/mman.h> #include <errno.h> #include <stdio.h> typedef struct blk_t { size_t prevFree:1; size_t prevSize:31; size_t free:1; size_t size:31; struct blk_t *prev; struct blk_t *next; } blk_t, *Block; struct { Block head; Block guard; void *mem; } C...
#include "Block.h" #include "Parameter.h" #include "zCore.h" #include "Util.h" #include "Regex.h" void clean_BM(struct BlockMemory* p_pBM) { if(p_pBM == NULL) return; p_pBM->m_lLine = 0; p_pBM->m_bEven = true; p_pBM->m_bOdd = false; p_pBM->m_bCondition = false; if(p_pBM->m_pLocal != NULL) { if(p_pBM->m_pL...
#include "common.h" int kd_list_len = 0; struct kd kd_list[KD_MAX]; GLuint kd_data_split_axis[KD_MAX]; GLfloat kd_data_split_point[KD_MAX]; //int kd_data_child1[KD_MAX]; //int kd_data_spibeg[KD_MAX]; //int kd_data_spilen[KD_MAX]; double bmin_x = 0.0; double bmin_y = 0.0; double bmin_z = 0.0; double bmax_x = 0.0; doub...
#include <assert.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include "rte_ethdev.h" #include "rte_malloc.h" //#include "benchmark_rxer.h" #include "benchmark_helper.h" #include "dataplane.h" #include "fll.h" #include "jit.h" #include "log.h" #include "packets.h" #include "pipeli...
/* * tools.c - Utility functions * The author licenses this file * to you 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 b...
/* * Copyright 2002-2011, The TenDRA Project. * Copyright 1997, United Kingdom Secretary of State for Defence. * * See doc/copyright/ for the full copyright terms. */ #include <string.h> #include <limits.h> #include <stdio.h> #include <shared/check.h> #include <utility/config.h> #include "c_types.h" #include <...
/** * @file printf_manager.c */ #include <errno.h> #include <stdio.h> #include <unistd.h> #include <rc/pthread.h> #include <rc/start_stop.h> #include <rc/time.h> #include <feedback.h> #include <input_manager.h> #include <printf_manager.h> #include <rc_pilot_defs.h> #include <setpoint_manager.h> #include <settings....
/***************************************************************************** 07/07/06: Added the compare with WQRS to find noise segments using the Matt's algorithm. So the annot output is: time-detection time; anntyp-QRS for beats, NOISE for kurtosis<5(non-ECG) or kurtosis>127(invalid data); subtyp- if <0 ...
/* huffbench Standard C version 17 April 2003 Written by <NAME> (<EMAIL>) No rights reserved. This is public domain software, for use by anyone. A data compression benchmark that can also be used as a fitness test for evolving optimal compiler options via genetic algorithm. This prog...
/*============================================================================ # COMP30023 Assignment 2 # # TLS X509 certificate checker # # FileName: verify.c # # ...
#include "headers.h" typedef struct Sub Sub; struct Sub { CNF *cnf; Clause *empty; int max_var; signed char *marks; long original, subsumed, strengthened; Clauses *occs; }; static Sub * new_subsume (CNF * cnf) { Sub *sub; NEW (sub); sub->cnf = cnf; sub->max_var = maximum_variable_index (cnf); L...
/* *Copyright (C) 2013-2014 <NAME>, 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. *This program is distributed AS-IS WITHOUT ANY WARRANTY of any *kind, whether express or implied...
/* Description: This program executes the K-Means algorithm for random vectors of arbitrary number and dimensions Author: <NAME> (1046900) Year: 5 Parallel Programming in Machine Learning Problems Electrical and Computer Engineering Department, University of Patras System Specifications: ...
#include "LKH.h" #include "Genetic.h" /* * The AddToPopulation function adds the current tour as an individual to * the population. The fitness of the individual is set equal to the cost * of the tour. The population is kept sorted in increasing fitness order. */ void AddToPopulation(GainType Cost) { int i, ...
/** * Author: <NAME> * Copyright: Crownstone (https://crownstone.rocks) * Date: 28 May, 2019 * Triple-license: LGPLv3+, Apache License, and/or MIT */ #pragma once /** * Use this config file to overwrite values in sdk_config.h. * * The sdk_config.h is a copy of SDK_15-3/config/nrf52832/config/sdk_config.h */ ...
/* * msi.c * * Copyright (c) 2010 <NAME> <yamahata at valinux co jp> * VA Linux Systems Japan K.K. * * 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 ver...
/* * (C) Copyright 2011 - 2012 Samsung Electronics * EXT4 filesystem implementation in Uboot by * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * ext4ls and ext4load : Based on ext2 ls and load support in Uboot. * Ext4 read optimization taken from Open-Moko * Qi bootloader * * (C) Copyright 2004 * es...
/* modifier 0 means no modifier */ static int surfuseragent = 1; /* Append Surf version to default WebKit user agent */ static char *fulluseragent = ""; /* Or override the whole user agent string */ static char *scriptfile = "~/.surf/script.js"; static char *styledir = "~/.surf/styles/"; static char *cac...
// Copyright 2018 Espressif Systems (Shanghai) PTE 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 applic...
/* Teem: Tools to process and visualize scientific data and images Copyright (C) 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 General Public License (LGPL) as...
/***************************************************************************** * * \file * * \brief WDT example application for AVR32 UC3. * * Copyright (c) 2014 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or wi...
/* * Oracle Linux DTrace. * Copyright (c) 2006, 2020, Oracle and/or its affiliates. All rights reserved. * Licensed under the Universal Permissive License v 1.0 as shown at * http://oss.oracle.com/licenses/upl. */ #include <dt_impl.h> #include <dt_peb.h> #include <dt_probe.h> #include <dt_bpf.h> #include <dt_stat...
#include <assert.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include "ast.h" #include "context.h" #include "token.h" #include "utils.h" void node_deinit(Node* self) { switch (self->kind) { case nk_top_decl: free(self->bits.top_decl.stmtv); self->bits.top_decl.stmtv = NULL; ...
#include <GLES2/gl2.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <wayland-client.h> #include <wayland-egl.h> #include <wlr/render/egl.h> #include "keyboard-shortcuts-inhibit-unstable-v1-client-protocol.h" #include "xdg-shell-client-protocol.h" #include <linux/input-event-codes.h> /** * Usag...
/** * Proof of concept offloaded memcopy using AXI Direct Memory Access v7.1 */ #include <stdio.h> #include <unistd.h> #include <fcntl.h> #include <termios.h> #include <sys/mman.h> #define MM2S_CONTROL_REGISTER 0x00 #define MM2S_STATUS_REGISTER 0x04 #define MM2S_START_ADDRESS 0x18 #define MM2S_LENGTH 0x28 #define ...
/* * QEMU keysym to keycode conversion using rdesktop keymaps * * Copyright (c) 2004 <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 lim...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <getopt.h> #include <time.h> #include <string.h> #include "mandel.h" void mandel_avx(unsigned char *image, struct imgspec *s){ __m256 xmin = _mm256_set1_ps(s->xlim[0]); __m256 ymin = _mm256_set1_ps(s->ylim[0]); __m256 xscale = _mm256_set1_p...
#include <stdio.h> #include <stdio.h> #include <string.h> #include "pico/stdlib.h" #include "hardware/gpio.h" #include "hardware/pwm.h" #include "bsp/board.h" #include "tusb.h" #include "usb_descriptors.h" #define LED_1_RED_GPIO 5 #define LED_1_GREEN_GPIO 7 #define LED_1_BLUE_GPIO 6 #define PWM_COUNT_TOP 100 //Fu...
#include "hashtable.h" /*allocate a new hash table*/ hashtable* new_hashtable(const int po2size) { int max_size = po2size; if(po2size > 24){ fprintf(stderr,"hash po2size should not exceed 24, using 24\n"); max_size = 24; } hashtable* hashtable = ckallocz(sizeof(struct hashtable_st)); hashtable->po2size = max...
#include "at_parser.h" /* * Handler Storage * counter / size / pointer */ static uint16_t handlerIdx; static uint16_t handlerSize; static T_AT_storage* handlerStorage; /* * AT Command Params * size / pointer */ static uint16_t ...
/* GIO - GLib Input, Output and Streaming Library * * Copyright (C) 2009 Red Hat, Inc. * * 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 of the License, or (at y...
#include "main.h" int translate (char *str) { char next; char *rd = str, *wr = str, *bad; char temp[1 + 3 + 1]; char ch; if (!*rd) //If it's a null string just return { return 0; } while (*rd) { /* Is it an escaped character ? */ if (*rd == '\\') { rd++; switch (*rd) { case...
#include <ncarg/ncargC.h> #include <ncarg/hlu/hlu.h> #include <ncarg/hlu/NresDB.h> #include <ncarg/hlu/ResList.h> #include <ncarg/hlu/App.h> #include <ncarg/hlu/NcgmWorkstation.h> #include <ncarg/hlu/PSWorkstation.h> #include <ncarg/hlu/PDFWorkstation.h> #include <ncarg/hlu/CairoWorkstation.h> #include <ncarg/hlu/Conto...
/* * tiff-palette.c -- create a Class P (palette) TIFF file * * Copyright 1990 by Digital Equipment Corporation, Maynard, Massachusetts. * * All Rights Reserved * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is her...
#include <lua.h> #include <lauxlib.h> #include <lualib.h> #include <assert.h> #include <stdlib.h> #include "ejoy2dgame.h" #include "fault.h" #include "shader.h" #include "texture.h" #include "ppm.h" #include "spritepack.h" #include "sprite.h" #include "lmatrix.h" #include "label.h" #include "particle.h" //#define LOG...
/* Declarations for interface to insn recognizer and insn-output.c. Copyright (C) 1987, 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License a...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "split.h" #include <float.h> #ifdef DEBUG #include <fenv.h> #endif /* print the progress if getting SIGQUIT */ void sig_handler(int signo) { if (signo == SIGINT) { fprintf(stderr, "progress: %d/1024\n", progress); fprintf(stderr...
// // Copyright 2019 <NAME> (<EMAIL>). All rights reserved. // License: https://github.com/septag/rizz#license-bsd-2-clause // #include "rizz/camera.h" #include "rizz/config.h" #include "rizz/graphics.h" static void rizz__cam_init(rizz_camera* cam, float fov_deg, const sx_rect viewport, float fnear, ...
/******************************************************************* Copyright (C) 2009 FreakLabs 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 so...
#include <stdio.h> #include "pasta_fp.h" #include "pasta_fq.h" #include "crypto.h" #include "libbase58.h" #include "base10.h" #ifdef ANDROID_LIB #include <android/log.h> #endif #include "porting.h" // Copy g_generator from crypto.c, this let the code merge from Izaak easy // g_generator = (1 : 124186547828833255934144...
#include "stm32f4xx.h" #include "core_cm4.h" #include "timers.h" #include "vga.h" #include "gpio_swipe.h" #include "int_swipe.h" #include "rcc_swipe.h" #define NULL 0 typedef void HBlankInterruptFunction(void); static HBlankInterruptFunction *HBlankInterruptHandler; static uint32_t VGAPixelsPerRow; static uint32_t...
/* comedi/drivers/aio_aio12_8.c Driver for Access I/O Products PC-104 AIO12-8 Analog I/O Board Copyright (C) 2006 C&C Technologies, 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 ...
/* ex: set softtabstop=3 shiftwidth=3 expandtab: */ /* This file is part of the *ramalloc* project at <http://fmrl.org>. * Copyright (c) 2011, <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
//########################################################################### // // FILE: flashapi_ex2_verify.c // // TITLE: Verify Source Code // // //########################################################################### // $TI Release: F28004x Support Library v1.10.00.00 $ // $Release Date: Tue May 26 17:0...
// // hlog.c // // HTTP Logging // // Copyright (C) 2002 <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 // ...
/*------------------------------------------------------------------------------ * * Copyright (c) 2011-2018, EURid vzw. All rights reserved. * The YADIFA TM software product is provided under the BSD 3-clause license: * * Redistribution and use in source and binary forms, with or without * modification, are permitte...
#include <sys/stat.h> #include <sys/types.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "rmtfs.h" #define MAX_CALLERS 10 #define STORAGE_MAX_SIZE (16 * 1024 * 1024) #define BY_PARTLABEL_PATH "/dev/disk/by-partlabel" #define MIN(x, y) ...
#pragma once #include "il2cpp-config.h" #include <stdint.h> // This file contains the structures specifying how we store converted metadata. // These structures have 3 constraints: // 1. These structures will be stored in an external file, and as such must not contain any pointers. // All references to other metad...
/* * Arm SCP/MCP Software * Copyright (c) 2017-2020, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <stdint.h> #include <fwk_assert.h> #include <fwk_id.h> #include <fwk_macros.h> #include <fwk_mm.h> #include <fwk_module.h> #include <fwk_notification.h> #in...