text
stringlengths
3.12k
18.7k
/* * This file contains the maze-solving strategy. */ #include <pololu/3pi.h> #include "follow-segment.h" #include "turn.h" // The path variable will store the path that the robot has taken. It // is stored as an array of characters, each of which represents the // turn that should be made at one interse...
#ifndef DLB_INDEX_H #define DLB_INDEX_H //------------------------------------------------------------------------------ // Copyright 2019 <NAME> //------------------------------------------------------------------------------ //-- documentation ------------------------------------------------------------- // High-lev...
/** BSD 3-Clause License Copyright (c) 2019, TheWover, Odzhan. 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 ...
/* Includes ------------------------------------------------------------------*/ #include "Common/globals.h" #include <stm32l4xx_hal.h> #include "_Init/startup.h" #include "_Init/Init_GPIO.h" #include "Tasks/task_weight_monitor.h" #include "Flash/Flash_Sim_Demo.h" #include "Flash/spi_flash.h" #include "LED/LED.h" #in...
/* ** Copyright (C) 2002-2005 <NAME> <<EMAIL>> ** ** 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 option) any later version. ** ** This program...
/* * itrace * * Disassemble specific routines * */ #include <stdlib.h> #include <inttypes.h> #include <libudis86/extern.h> #include <libudis86/types.h> #include "disas.h" #include "elfsym.h" #include "ptrace.h" #include "trace.h" #include "resolv.h" /* * Returns the register name according to the ELF class */ ...
#include <string.h> #define __STDC_FORMAT_MACROS #include <inttypes.h> #include <netinet/in.h> #include "carp.h" #include "rib.h" struct rib_stride { uint32_t prefix_bitmap[512/32]; /* 512 bits (511, in reality) */ uint32_t stride_bitmap[256/32]; /* 256 bits */ /* Pointer to the information we chose to ...
#include <stdint.h> #include <kernel.h> struct bios_drive_params { uint16_t buf_size; uint16_t info_flags; uint32_t cyl; uint32_t heads; uint32_t sects; uint64_t lba_count; uint16_t bytes_per_sect; uint32_t edd; } __attribute__((packed)); #define BIOS_DRIVES_START 0x80 #define BIOS_DRI...
#include "mathlib.h" #include <memory.h> void VectorClear( vec3_t dest ) { dest[0] = 0.0; dest[1] = 0.0; dest[2] = 0.0; } void VectorCopy( vec3_t src, vec3_t dest ) { dest[0] = src[0]; dest[1] = src[1]; dest[2] = src[2]; } void VectorCopy4( vec4_t src, vec4_t dest ) { dest[0] = src[0]; dest[1] = src[1]; de...
#include "nim.h" #include <stdlib.h> #include <stdio.h> #include <time.h> //fonction qui trouve les voisines /*void Voisines(T_Case pion, T_Tab_Case tab_vois[],int *nb_vois,int nlig,int ncol) { int i=pion.Colonne; int j=0; int n=0; T_Case vois; //calcul des voisines sur la ligne while(i+1<=nco...
// Copied from Apache Impala, then modified. Usable under the terms in the Apache License, // Version 2.0. // // This is a block Bloom filter (from Putze et al.'s "Cache-, Hash- and Space-Efficient // Bloom Filters") with some twists: // // 1. Each block is a split Bloom filter - see Section 2.1 of Broder and Mitzenmac...
/* Copyright (c) 2010 - 2020, Nordic Semiconductor ASA * 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 * l...
/* * Academic License - for use in teaching, academic research, and meeting * course requirements at degree granting institutions only. Not for * government, commercial, or other organizational use. * * repmat.c * * Code generation for function 'repmat' * */ /* Include files */ #include "rt_nonfinite.h" #inc...
/* * Funny Language - a free style programming language. * Copyright (C) 2015 by fanguangping (<EMAIL>) * hash.c */ #include <stdlib.h> #include <string.h> #include "datastructure.h" HashTable alloc_hash_table() { HashTable result = (HashTable) malloc(HASHTABLE_SIZE * sizeof(HashNode *)); exit_when_out_of_memor...
// Copyright 2015 Astex Therapautics 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 applicable law or ag...
#include <stdio.h> #include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <sys/signal.h> #include <sys/types.h> #include <sys/ipc.h> #include <sys/shm.h> #include <sys/sem.h> #include <sys/errno.h> #include <sys/time.h> #define SHMKEY IPC_PRIVATE // Shared Memory Key #define SEMKEY I...
/* * google-oauth2.c * * Copyright 2021 chehw <<EMAIL>> * * The MIT License * * 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 t...
#define _XOPEN_SOURCE 500 // random, srandom #include <assert.h> // assert #include <math.h> // isfinite, sqrt #include <stdbool.h> // bool, false, true #include <stddef.h> // size_t #include <stdio.h> // FILE, fopen, fclose, fprintf, snprintf, stderr #include <stdlib.h> // NULL, EXIT_{SUCCESS,ERROR}, malloc, ...
/* * helloWorld.c * * TCP/IP Stack 'Hello World!' Example * * Copyright (C) 2007 Texas Instruments Incorporated - http://www.ti.com/ * * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * ...
#pragma once extern const wchar_t* IDC_ABOUT_BUTTON; extern const wchar_t* IDC_BUTTON_BLUE; extern const wchar_t* IDC_BUTTON_BROWN; extern const wchar_t* IDC_BUTTON_GREEN; extern const wchar_t* IDC_BUTTON_ORANGE; extern const wchar_t* IDC_BUTTON_PINK; extern const wchar_t* IDC_BUTTON_PURPLE; extern const wchar_t* IDC_...
// 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 // Auxiliary carry Flag #define FL_ZF 0x00000040 // Zero Flag #define FL_SF 0x00000080 ...
//Author : LabJack //May 25, 2011 //This example demonstrates how to write and read some or all analog and digital //I/O. It records the time for 1000 iterations and divides by 1000, to allow //measurement of the basic command/response communication times. These times //should be comparable to the Windows command/res...
#if _XOPEN_SOURCE < 700 # undef _XOPEN_SOURCE # define _XOPEN_SOURCE 700 /* strndup, isblank */ #endif #include "strtab.h" #include "tokenize.h" #include <lacc/cli.h> #include <assert.h> #include <stdio.h> #include <ctype.h> #include <stdlib.h> #include <string.h> struct token token_end = {END, "$"}, token_...
// SPDX-License-Identifier: GPL-2.0-only #define _GNU_SOURCE /* for program_invocation_short_name */ #include <errno.h> #include <fcntl.h> #include <pthread.h> #include <sched.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <signal.h> #include <syscall.h> #include <sys/ioctl.h> #include <sys/sysi...
#include "Application.h" #include "GameTypes.h" #include "Logger.h" #include "Platform/Platform.h" #include "Core/TMemory.h" #include "Core/Event.h" #include "Core/Input.h" #include "Core/Clock.h" #include "Memory/LinearAllocator.h" #include "Renderer/RendererFrontEnd.h" typedef struct application_state { game* ga...
/** * collectd - src/target_notification.c * Copyright (C) 2008 <NAME> * * 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; only version 2 of the License is applicable. * * This program is...
/** * collectd - src/dns.c * Copyright (C) 2006-2011 <NAME> * Copyright (C) 2009 <NAME> * * 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; only version 2 of the License is applicabl...
//Name : <NAME> //Div2 - T20230 //Batch – B //Write a program to solve the travelling salesman problem and to print the path and the cost using Branch and Bound. #include<stdio.h> int visited[10],n,cost[10],l=0; static int node_no=1; int a[10][10]; int find_row_min(int b[][10],int r); int find_col_min(int b[][10],...
/* * Copyright (c) 2016, 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: * * 1. Redistributions of source code must retain the above copyright notice, * this list of cond...
///////////////////////////////////////////////////////////////////////////////// ////// ////// Interface to MA47 sparse linear solver ////// Copyright (C) 2005 <NAME> (lourakis at ics.forth.gr) ////// Institute of Computer Science, Foundation for Research & Technology - Hellas ////// Heraklion, Crete, Greece. //...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* * neo6m.c * * Created on: Jun 20, 2021 * Author: leocelente */ #include "Application/ublox_neo8.h" // Calculate checksum over the packet buffer excluding sync (first two) and checksum chars (last two). static void ubx_checksum(int len, uint8_t packet[len]) { packet[len - 2] = 0x00; packet[len - 1] = 0...
#include <string.h> #include <unistd.h> #include <stdarg.h> #include "lexer.h" #include "fgfx.lex.h" #include "error.h" #include "utils.h" #include "buffer.h" lexer_t* new_lexer(int filde) { lexer_t* lex = NEW(lexer_t, 1); if (!lex) { return (NULL); } memset(lex, 0, sizeof(*lex)); lex->filde...
#include"JsObject.h" #include"JsContext.h" #include"JsEngine.h" #include"JsVm.h" #include"JsValue.h" #include"JsList.h" #include"JsSys.h" #include"JsDebug.h" #include"JsAst.h" #include"JsECMAScript.h" #include"JsException.h" #include<stdlib.h> #include<stdio.h> #include<string.h> //创建一个Array对象, prototyp...
//////////////////////////////////////////////////////////////////////// // COMP1521 19t3 ... assignment 1: emu -- a MIPS emulator // // 2019-10-15 v1.0 emu squad <<EMAIL>> // Initial release onto unsuspecting students. // // // // // // // // DO NOT MODIFY THIS FILE! // // // // // // // // // #include <asse...
#include "c1.h" typedef struct Information { char VisitorName[10];//来访人员姓名 char Phone[20]; //手机号默认为11位 char StuName[20]; //考虑到少数名族,数组长度设置为10 char roomId[10]; //按照华师学生宿舍3位数字,例如226,需要把数组改大一些,不然数据会溢出 char Affair[100]; //事由,不超过100个字符 char Date[200]; //日期,不超过200个字符 char TimeLine[100];//时间段 }...
/* mncuev.f -- translated by f2c (version 19961017). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static integer c__1 = 1; /* ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc */ /* c ...
/* Name: fldr.h Purpose: Fast sampling of random integers (floating-point weights). Author: <NAME> Copyright (C) 2020 <NAME>, All Rights Reserved. Released under Apache 2.0; refer to LICENSE.txt */ #include <assert.h> #include <float.h> #include <math.h> #include <stdbool.h> #include <stdio.h> #inclu...
/**************************************************************** * Copyright (C) 2016 mdm * * * * Licensed to the Apache Software Foundation (ASF) under one * * or more contributor license agreements. See the NOTI...
/* * HX711.c * * Created on: Jun 6, 2020 * Author: <NAME> */ #include "HX711.h" // Make shiftIn() be aware of clockspeed for // faster CPUs like ESP32, Teensy 3.x and friends. // See also: // - https://github.com/bogde/HX711/issues/75 // - https://github.com/arduino/Arduino/issues/6561 // - https://communi...
#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <errno.h> #include <limits.h> #include <arpa/inet.h> #include <unistd.h> #include <pthread.h> #include <langinfo.h> #include "opuscomment.h" static size_t const gbuflen = 1 << 16; static uint8_t gbuf[1 << 16];...
/* === Source file: 'mosaico.c' Autor: <NAME> <NAME> Profile: Estudante de Ciência da Computação - UFPR - GRR20190351 Programa que gera um fotomosaico no formato PPM a partir de uma imagem PPM === */ /* === Bibliotecas === */ #include "parsing/parsing.h" #include "ppmimage/ppmimage.h" #include...
// Bits in usbHidKeyboardInput.modifiers #include <inttypes.h> #include <SoftwareSerial.h> typedef uint8_t byte; const byte MODIFIER_NONE =byte((0)); const byte MODIFIER_CONTROL_LEFT =byte((1<<0)); const byte MODIFIER_SHIFT_LEFT =byte((1<<1)); const byte MODIFIER_ALT_LEFT =byte((1<<2)); const byte M...
/* Parser interface for DOM-based parser (libxml) rather than stream-based SAX-type parser */ #include "postgres.h" #include "fmgr.h" /* libxml includes */ #include <libxml/xpath.h> #include <libxml/tree.h> #include <libxml/xmlmemory.h> /* declarations */ static void *pgxml_palloc(size_t size); static void *pgx...
/* * Compile with: * gcc -o helloworld helloworld.c `pkg-config --cflags --libs gtk+-2.0` * */ #include <gtk/gtk.h> #include <gdk/gdkkeysyms.h> #include <libzgui/zwin.h> GtkEntry *entry; GtkTreeModelFilter *filter; //GtkTreeViewColumn *col; int count = 0; int show_all = 1; void row_activated(GtkTreeView ...
/***********************************************************************/ /* */ /* Objective Caml */ /* */ /* <NAME>, <N...
/* The MIT License (MIT) * * Copyright (c) 2015 Monetra Technologies, LLC. * * 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 righ...
/***************************************************************************/ /** * @file main_pdm_stereo_ldma.c * @brief This project demonstrates how to get stereo audio using PDM module and * LDMA. ******************************************************************************* * # License * <b>Copyright 2020 S...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <inttypes.h> #include <getopt.h> #include <unistd.h> #include "libzdb.h" static struct option long_options[] = { {"data", required_argument, 0, 'd'}, {"index", required_argument, 0, 'i'}, {"namespace", requi...
/** * shipedit -- WipeOut Pulse PSP Ship Skin Editor * Copyright (c) 2021 <NAME> <<EMAIL>> * * 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 granted to anyone t...
/***************************************************************************//** * @file * @brief Command definitions for the Gateway Relay COAP plugin. ******************************************************************************* * # License * <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b> ****...
/** * @file rgb2yuv_sse.c * * RGB2YUV sse */ #include "rgb2yuv.h" #include <xmmintrin.h> #include <emmintrin.h> #include <tmmintrin.h> typedef struct { __m128i r, g, b; } r8g8b8_t; typedef struct { __m128i y, u, v; } y8u8v8_t; typedef struct { __m128i r_coef, g_coef, b_coef, x_coef; } rgb_to_yuv_mat_v8_t...
/* * 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.c * * send files on request over a named pipe. * * supports requests to package up a file and send it over a named pipe. * * <NAME>, August 92 */ #include <windows.h> #include <stdio.h> #include <string.h> #include "sumserve.h" #include "errlog.h" #include "server.h" BOOL ss_com...
/* * 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...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* Minimal DTLS server. * (Meant to be used with config-threadnet.h) * * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved * * SPDX-License-Identifier: Apache-2.0 * * This file is part of mbed TLS (https://tls.mbed.org) */ #include <zephyr.h> #include <stdio.h> #include <errno.h> #include <misc/p...
/* * Frommel 2.0 * * (c) 2001 <NAME> * * Network code for Linux * * NOTE: A large portion of this code, particularely the net_ipx_xxx functions, * were copied from LWARED. * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/ioctl.h> #in...
/*- * Copyright (c) 2008-2014 WiredTiger, Inc. * All rights reserved. * * See the file LICENSE for redistribution information. */ #include "wt_internal.h" static const u_char hex[] = "0123456789abcdef"; /* * __fill_hex -- * In-memory conversion of raw bytes to a hexadecimal representation. */ static inline v...
/* ---------------------------------------------------------------------------------------- */ /* WRW 17 Feb 2022 - This implements an approximation of MySql FULLTEXT search in C. The Sqlite3 implementation of FULLTEXT did not work well. It might be my own doing but I couldn't get good results and often outrig...
/* LUFA Library Copyright (C) <NAME>, 2011. dean [at] fourwalledcubicle [dot] com www.lufa-lib.org */ /* Copyright 2011 <NAME> (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is her...
#include <string.h> #include <unistd.h> #include "faidx.h" #include "sam.h" #define TYPE_BAM 1 #define TYPE_READ 2 bam_header_t *bam_header_dup(const bam_header_t *h0) { bam_header_t *h; int i; h = bam_header_init(); *h = *h0; h->hash = h->dict = h->rg2lib = 0; h->text = (char*)calloc(h->l_text + 1, 1); memcp...
#include "SPNoise.h" #include "SPCommon.h" #include "SPRand.h" #include <stdio.h> #include <stdlib.h> #define RANDOM_N 624 typedef struct SPNoise { int* p; double* g3; double persistance; unsigned long state[RANDOM_N]; int left; unsigned long *next; } SPNoise; /* Period parameters */ #define RANDOM_M 397...
/* * Copyright (c) 2016, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at w...
/** ****************************************************************************** * @file com.c * @author MEMS Application Team * @version V2.0.0 * @date 01-May-2017 * @brief USART message handler ************************************************************************...
/* $Id: tif_color.c,v 1.12.2.2 2010-12-14 02:23:09 faxguy Exp $ */ /* * Copyright (c) 1988-1997 <NAME>ler * Copyright (c) 1991-1997 Silicon Graphics, Inc. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation for any purpose is hereby granted without fee, provided...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright 2007,2009 Wind River Systems, Inc. <www.windriver.com> * * Copyright 2007 Embedded Specialties, Inc. * * Copyright 2004, 2007 Freescale Semiconductor. * * (C) Copyright 2002 <NAME> <<EMAIL>> */ #include <common.h> #include <init.h> #include <pci.h> #include <...
//************************************************************************** //** //** p_sight.c : Heretic 2 : Raven Software, Corp. //** //** $RCSfile: p_sight.c,v $ //** $Revision: 1.1 $ //** $Date: 95/05/11 00:22:50 $ //** $Author: bgokey $ //** //********************************************************************...
/* * Regulator driver for LP87565 PMIC * * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/ * * 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. */ ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "astro.h" #define MAX_JPL_LINE_LEN 100 #define MAX_JPL_RECORDS 73415 #define FLAG_SOE 1 struct jplrcd { double jd; double lon; }; int parsejplhorizon(char *fname, struct jplrcd *records[]); struct jplrcd *lon_alloc(void); void v...
#include <pcap.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netinet/ip.h> #include <netinet/ether.h> #include <netinet/ip_icmp.h> #include <arpa/inet.h> #include <errno.h> #include <sys/time.h> #define...
/* LUFA Library Copyright (C) <NAME>, 2017. dean [at] fourwalledcubicle [dot] com www.lufa-lib.org */ /* Copyright 2017 <NAME> (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is her...
/* * Copyright (C) 2019 Intel Corporation. All rights reserved. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ #include <stdlib.h> #include "bh_platform.h" #include "bh_read_file.h" #include "wasm_export.h" #include "aot_export.h" static int print_help() { printf("Usage: wamrc [options] -o output_f...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/* * File: SerialM32.c * Author: <NAME> * Brief: * Created on November 10, 2020, 9:52 am * Modified on November 11/2020 9:27 am */ /******************************************************************************* * #INCLUDES * ***************...
/* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME>. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditio...
/* * Copyright 2013 MongoDB, Inc. * * 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 ...
/* Solve Polynomials of up to the fourth degree. (over real numbers) * Algorithms by Ferrari, Tartaglia, Cardano, et al. (16th century Italy) */ #include "quartic_real.h" #define _USE_MATH_DEFINES #include <math.h> #define MAX_DEGREE 4 static double stableness_score(double a, double b); static int solve_normalize...
#include "malloc.h" #include "stdlib.h" #include <stdbool.h> //@ #include "ghostlist.gh" // Some general infrastructure; should be in the VeriFast Library. /*@ predicate foreach2<a, b>(list<a> as, list<b> bs, predicate(a, b) p) = switch (as) { case nil: return bs == nil; case cons(a, as0): retu...
/*----------------------------------------------------------------------------*/ /* Big Brother webpage generator tool. */ /* */ /* This is a replacement for the "mkbb.sh" and "mkbb2.sh" scripts from the ...
/* ----------------------------------------------------------------------- * * * Copyright 1996-2019 The NASM Authors - All Rights Reserved * See the file AUTHORS included with the NASM distribution for * the specific copyright holders. * * Redistribution and use in source and binary forms, with or withou...
/* Copyright (c) 2016 SharkRF OÜ. https://www.sharkrf.com/ Author: <NAME>" Varga, HA2NON 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 righ...
/* * Copyright (c) 2005-2017 National Technology & Engineering Solutions * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with * NTESS, the U.S. Government retains certain rights in this software. * * Redistribution and use in source and binary forms, with or without * modification, are permitt...
/* Hexagon grid bitmap renderer * $ cc -Ofast -o hexmap hexmap.c -lm * $ hexmap >output.bmp * This is free and unencumbered software released into the public domain. */ #define BMP_COMPAT #include <math.h> #include <stdio.h> #include <stdlib.h> #include "bmp.h" #include "getopt.h" static long blend(long c0, lo...
#ifndef lint static const char RCSid[] = "$Id: oconv.c,v 2.21 2005/09/23 19:04:52 greg Exp $"; #endif /* * oconv.c - main program for object to octree conversion. * * 7/29/85 */ #include "platform.h" #include "standard.h" #include "octree.h" #include "object.h" #include "otypes.h" #include "paths.h" #in...
/* * $Id: cidx_manager.c 897 2011-08-28 21:43:57Z <EMAIL> $ * * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium * Copyright (c) 2002-2014, Professor <NAME> * Copyright (c) 2003-2004, <NAME> * Copyright (c) 2010-2011, <NAME> * All rights reserved. * * Redistribution and use in source an...
/*---------------------------------------------------------------------------- / / Filename: fits_wavelet.c / Author: <NAME> / Author's email: <EMAIL> / Description: This program will perform a Debauchies wavelet transform on / an input image and turn off the wavelet coefficients up to / a c...
#include "nistseedexpander.h" #include "parameters.h" #include "parsing.h" #include "randombytes.h" #include "vector.h" #include <stdint.h> #include <string.h> /** * @file parsing.c * @brief Functions to parse secret key, public key and ciphertext of the HQC scheme */ void PQCLEAN_HQCRMRS256_AVX2_store8(unsigned c...
/*- * Copyright (c) 2016 <NAME> <<EMAIL>> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the followi...
/* Copyright 1994 The PL-J Project. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following...
/* * 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 test.c * \brief * * */ #include "base.h" #include "typedef.h" #include "archive.h" #include "catalog.h" #include "simulation.h" typedef struct Options { int verbose; int ilist; int id; Archive list; Archive param; Archive outp...
/* $Id: ccdvar.h,v 1.7 1998/09/15 10:07:26 gibbs Exp $ */ /* $NetBSD: ccdvar.h,v 1.7.2.1 1995/10/12 21:30:18 thorpej Exp $ */ /* * Copyright (c) 1995 <NAME>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following con...
/* * Copyright (c) 2015-2019 Contributors as noted in the AUTHORS file * * This file is part of Solo5, a sandboxed execution environment. * * 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 th...
#define _DEFAULT_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <errno.h> #include "libflist.h" #include "zflist.h" #include "actions.h" #include "tools.h" zfe_settings_t settings; // // commands list // zf_cmds_t zf_commands[] = { {.name = "open", .db = 0, .ca...
#include "funcs.h" #include <math.h> #include "util.h" #include "window.h" #include "wallpaper.h" #include "strings.h" #define PLAYERNAME "_PlayerName_xxxxxxxxxxxxxxxxxxxx" #define PLAYERNAME_GUESS "_PlayerName_guess_xxxxxxxxxxxxxx" #define PLAYERNAME_SIZE (32) #define PLAYERNAME_ENTRY "\\N[2...
/*- * Copyright (c) 2020 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
/* * Copyright (c) 2002-2005 <NAME>, <NAME> * Copyright (c) 2002-2005 Atheros Communications, Inc. * Copyright (c) 2008-2010, 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 * copyrig...
#include <loki/alloc.h> #include "defs.h" // An array of random numbers. extern int* random; // Create an activation tensor. Allocation of data and assignment to a memory // group is not done. (User must set `address` and `data.memory_config`.) // Computation is parallelised over channels, so make them contiguous. //...
// // Copyright(C) 2005-2014 <NAME> // // 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 option) any later version. // // This program is distrib...