text
stringlengths
5.8k
28.2k
/* $NetBSD: vrc4172pwm.c,v 1.15 2002/01/27 14:18:12 takemura Exp $ */ /* * Copyright (c) 2000,2001 <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 cod...
/* New client tool, replaces old /dev/initctl API and telinit tool * * Copyright (c) 2019-2021 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, i...
/* $Id: s100_fif.c 1995 2008-07-15 03:59:13Z hharte $ IMSAI FIF Disk Controller by <NAME> Based on altairz80_dsk.c, Copyright (c) 2002-2011, <NAME> Plug-n-Play added by <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d...
#ifndef _DEFAULT_SOURCE # define _DEFAULT_SOURCE #endif #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <wchar.h> #include <libxml/tree.h> #include <libxml/parser.h> #include <cups/cups.h> #include "capabilities.h" #include "logging.h" struct cap { char...
/* horst - Highly Optimized Radio Scanning Tool * * Copyright (C) 2005-2016 <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 yo...
/* * This example shows how application can implement RX and TX DMA for UART. * It uses simple packet example approach and 3 separate buffers: * * - Raw DMA RX buffer where DMA transfers data from UART to memory * - Ringbuff for RX data which are transfered from raw buffer and ready for application processin * - ...
// 0x0701F888 - 0x0701F988 static const Vtx hmc_seg7_vertex_0701F888[] = { {{{ -2774, 205, -6476}, 0, { 0, 0}, {0xff, 0xff, 0xff, 0xff}}}, {{{ -2876, 205, -6476}, 0, { 990, 0}, {0xff, 0xff, 0xff, 0xff}}}, {{{ -2876, 102, -6476}, 0, { 990, 990}, {0xff, 0xff, 0xff, 0xff}}}, ...
/* * fsp-error.c * * Copyright (C) 2010-2012 <NAME> * Authors: <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or * modify it under the terms of version 3 of the GNU Lesser General * Public License as published by the Free Software Foundation. * * This program is distributed in...
#include "ecrypt-sync.h" /* ===================================================================== * The following defines the keystream generation function *======================================================================*/ /*h1 function*/ #define h1(ctx, x, y) { \ u32 B0,B1,B2,B3;...
// prototypes void initializeDataCollection(); void inLoopDataCollection(); void finalizeDataCollection(); void writeBaseHeader(); void writeCenterLocsHeader(); void writeHeadHeader(); void writeForcesHeader(); void writeSummaryHeader(); void writeToWHeader(); void writeBase(); void writeCenterLocs(); void writeHead(...
/* procmgr -- init-like process manager * https://github.com/CylonicRaider/procmgr */ #include <errno.h> #include <string.h> #include <unistd.h> #include "logging.h" #include "config.h" #include "util.h" /* Static functions/constants */ static struct action **action_pointer(struct program *prog, char *name); static...
#include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <time.h> #include <sys/time.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <netinet/if_ether.h> #include <net/if.h> #include <linux/sockios.h> #include <unistd.h> #include <arpa/inet.h> #include "LogC.h" /** Log...
/*********************************************************************** * * Copyright 1996, University Corporation for Atmospheric Research. * * configfilemgmt.c * * Config (defaults) file management functions. * * History: * * 11/96 COMET Original copy * ***************************************************...
/* * iwinfo - Wireless Information Library - Linux Wireless Extension Backend * * Copyright (C) 2009-2010 <NAME> <<EMAIL>> * * The iwinfo library is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundati...
// Copyright 2011-2021 <NAME> <<EMAIL>> // SPDX-License-Identifier: ISC #undef NDEBUG #include "date_utils.h" #include "int_test_data.h" #include "macros.h" #include "num_test_utils.h" #include "time_test_utils.h" #include "exess/exess.h" #include <assert.h> #include <stdbool.h> #include <stdint.h> #include <stdio....
/* erract.f -- translated by f2c (version 19980913). 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__5 = 5; static integer c__2 = 2; /* $Procedure ERRACT ( Get/Set Default Error Action ) */ /* Subro...
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2011-2013 Couchbase, 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 * * ...
// (C) Copyright 1990-2002 by Autodesk, Inc. // // Permission to use, copy, modify, and distribute this software in // object code form for any purpose and without fee is hereby granted, // provided that the above copyright notice appears in all copies and // that both that copyright notice and the limited warr...
// // test.c // KFS // // Copyright (c) 2012, FadingRed LLC // 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 ...
#include "target.h" #include <libubox/avl.h> #include <libubox/avl-cmp.h> #include "uci.h" #include "radio.h" #include "utils.h" #define BRIDGE_NAME(x) (x ? "wan" : "lan") struct vlan { int vid; int nat_created; int bridge_created; struct avl_node avl; struct avl_tree nat; struct avl_tree bridge; }; struct v...
#include "owl.h" #define BIND_CMD(kpress, command, desc) \ owl_keymap_create_binding(km, kpress, command, NULL, desc) #define BIND_FNV(kpress, fn, desc) \ owl_keymap_create_binding(km, kpress, NULL, fn, desc) /* sets up the default keymaps */ void owl_keys_setup_keymaps(owl_keyhandler *kh) { owl...
/* Author: <NAME> <<EMAIL>> 17 march 2006 */ /* Modified for ProcFS by <NAME> and <NAME> */ #define _MINIX_SYSTEM 1 #include <stdio.h> #include <unistd.h> #include <pwd.h> #include <curses.h> #include <minix/timers.h> #include <stdlib.h> #include <limits.h> #include <termcap.h> #include <termios.h> #include <time.h...
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <ctype.h> #include <unistd.h> #include <assert.h> #include <math.h> #include <sys/param.h> #include "lib/colors.h" #include "lib/oflags.h" #include "lib/pass.h" #include "lib/tracks.h" #include "lib/utils.h" #include "lib/lasidx....
/* * main65816cpu.c - Emulation of the main 65816 processor. * * Written by * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * This file is part of VICE, the Versatile Commodore Emulator. * See README for copyright notice. * * This program is free software; you can redistribute it and/or modify * it under the ter...
/*************************************************************************** Jaleco Exerion ***************************************************************************/ #include "driver.h" #include "video/resnet.h" #include "exerion.h" #define BACKGROUND_X_START 32 #define VISIBLE_X_MIN (12*8)...
/* -*- c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* ==================================================================== * Copyright (c) 1999-2007 Carnegie Mellon University. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided ...
/* Created RJudd August 29, 1999 */ /* SPAWARSYSCEN D881 */ /********************************************************************** // For TASP VSIPL Documentation and Code neither the United States / // Government, the United States Navy, nor any of their employees, / // makes any warranty, express or implied, i...
#include "sra_clicker.h" /***************/ /*** DEFINES ***/ /***************/ #define _data ((sra_locate_data_t*)self->data) /************************************/ /*** PRIVATE VARIABLE DEFINITIONS ***/ /************************************/ typedef struct { // pixel data of the image BYTE *Pixels; ...
//http://www.c-jump.com/CIS77/CPU/x86/lecture.html#X77_0120_encoding_add //https://www.felixcloutier.com/x86/ // op code byte #define OP_S 0b0000001 // set operand to 16/32 bit mod #define OP_D 0b0000010 // 0 = adding from reg to mem, 1 = adding from memory to reg // d = 0 | add [ebx], al // d = 1 | add al, [ebx] ...
/* * mockpf.c vi:ts=4:sw=4:expandtab: * Evil testing shim that captures pf ioctls and emulates * the /dev/pf interface. * * Author: <NAME> <<EMAIL>> * * Portions of the validation code were taken from the pf kernel * implementation. * * Copyright (c) 2002 <NAME> * Copyright (c) 2006 - 2007 Three Rings Design...
/* * ***** BEGIN GPL LICENSE BLOCK ***** * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is d...
/************************************************************************** * * Copyright 2009, VMware, Inc. * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the * "Software"), to deal in the Software wi...
/* copyright 2013 <NAME> and contributors (see LICENSE for licensing information) */ #define _GNU_SOURCE #include "notification.h" #include <assert.h> #include <errno.h> #include <glib.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/wait.h> #include <time.h> #include <...
//////////////////////////////////////////////////////////////////////////// // **** DSDPACK **** // // Lossless DSD (Direct Stream Digital) Audio Compressor // // Copyright (c) 2013 - 2016 <NAME>. // // ...
/* * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. * * 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 l...
/* * Copyright (c) 2011 <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...
/*- * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2018 <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 copyrig...
/* Copyright 1994, 1995 by Abacus Research and * Development, Inc. All rights reserved. */ #if !defined (OMIT_RCSID_STRINGS) char ROMlib_rcsid_qPixMapConv[] = "$Id: qPixMapConv.c 87 2005-05-25 01:57:33Z ctm $"; #endif #include "rsys/common.h" #include "QuickDraw.h" #include "CQuickDraw.h" #include "MemoryMg...
//---------------------------------------- // BIOS header files //---------------------------------------- #include <xdc/std.h> //mandatory - have to include first, for BIOS types #include <ti/sysbios/BIOS.h> //mandatory - if you call APIs like BIOS_start() #include <xdc/runtime/Log.h> //needed for any L...
/* * File: sspfd.c * Author: <NAME> <<EMAIL>> * Description: a fine-grained profiler based on rdtsc * sspfd.c is part of sspfd * * The MIT License (MIT) * * Copyright (C) 2013 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated...
/* * Blocklist Copyright 2013 Regents of the University of Michigan * * XMap Copyright 2021 <NAME> from Network and Information Security Lab * Tsinghua University * * 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 ...
#include <stdio.h> #include <ctype.h> #include <fcntl.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <stdio.h> #include <unistd.h> #include <errno.h> #include <time.h> #include <termios.h> #include <dirent.h> #include <pthread.h> #include <sys/socket.h> #include <sys/ioctl.h> #in...
/* * Ver002.c * * Code generation for model "Ver002". * * Model version : 1.15 * Simulink Coder version : 8.12 (R2017a) 16-Feb-2017 * C source code generated on : Thu Nov 16 10:56:49 2017 * * Target selection: sldrtert.tlc * Embedded hardware selection: Intel->x86-64 (Windows64) * Code generatio...
#pragma config(Hubs, S1, HTMotor, HTMotor, HTMotor, none) #pragma config(Hubs, S2, HTMotor, HTServo, HTServo, none) #pragma config(Sensor, S1, , sensorI2CMuxController) #pragma config(Sensor, S2, , sensorI2CMuxController) #pragma config(Sensor, S3, MUX, sensorI...
#include <vecimg/rgb232.h> #include <vecimg/stb_image.h> #include <vecimg/stb_image_write.h> #include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <unistd.h> #include <string.h> #include <assert.h> #include <math.h> void print_usage(const char *name) { fprintf(stderr, "Usage: %s [-b block size] [-q ...
/* * common.c - functions used by all trigger variants. * * Copyright (c) 2007 <NAME>, Skype Technologies OÜ * * 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 i...
#include <stdbool.h> #include <time.h> #include <stdlib.h> #include <stdio.h> #include "SDL.h" typedef unsigned char byte; #define DELETED 0x1 #define BLOCK 0x2 #define BEAST 0x4 #define PLAYER 0x8 #define STATIC 0x10 typedef struct { byte flags; int x; int y; } entity; // forward-declare functions int ...
/* * Copyright (c) 2010 The VP8 project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing...
/** @file md5.c @brief support MD5 for PPPoE CHAP mode taken from RFC-1321/Appendix A.3 MD5C.C - RSA Data Security, Inc., MD5 message-digest algorithm */ #include <string.h> #include <avr/io.h> #include "md5.h" // Constants for Transform routine. #define S11 7 #define S12 12 #define S...
/* 10 March 2011 - 12 June 2011. Simulated evolution, for comparing MK and BK tests */ /* This function simulates evolution of one diallelic (0 and 1) locus. Using this function, we consider loci of 5 kinds: neutral (synonymous and nonsynonymous, but who cares) under constant selection (say, Ns = 1, 10, and 100) a...
//<NAME> //<EMAIL> #include <stdio.h> #include <stdlib.h> #include <string.h> /* "Sudoku" is a number puzzle with a 9x9 grid of "cells". Each "cell" must hold one number between 1 and 9 inclusive. * * For the sake of a reader understanding the comments in this program, the "board" refers to the playing field of the...
/* Make ucnid.h from various sources. Copyright (C) 2005-2015 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, or (at your option) any later version...
#include <err.h> #include <errno.h> #include <signal.h> #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/mman.h> #include <sys/user.h> typedef uint8_t cell_t; typedef int64_t word_t; static const size_t word_size = sizeof(word_t); #...
/* =========================================================================== Copyright (C) 1999-2006 Id Software, Inc. Copyright (C) 2001-2006 <NAME> (Q3Map2) Copyright (C) 2008 <NAME> <<EMAIL>> This file is part of XreaL source code. XreaL source code is free software; you can redistribute it and/or modify it unde...
/* Includes ------------------------------------------------------------------*/ #include "main.h" #include "stm32f1xx_hal.h" #include "fatfs.h" #include "usb_keyboard.h" /* Private variables ---------------------------------------------------------*/ SPI_HandleTypeDef hspi1; TIM_HandleTypeDef htim2; FATFS fs; FI...
#define _DEFAULT_SOURCE #include <string.h> #include <stdio.h> #include <stdlib.h> #include <dirent.h> #include <libgen.h> /* basename */ #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <signal.h> #ifdef __NCMPI__ #include <mpi.h> #include "pnetcdf/dvl_ncmpi.h" #elif __HDF5__ #include "hdf5...
/* * array.c * */ #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <x86intrin.h> #include "run.h" extern bool run_container_is_full(const run_container_t *run); extern bool run_container_nonzero_cardinality(const run_container_t *r); extern void run_container_clear(run_conta...
/** * tbxsosd/libcomm/ssl_comm.c * Copyright (C) 2006-2012 Opersys 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 * * Unles...
/* * Copyright (c) 2019 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, pu...
/* * Copyright (c) Bridgetek Pte Ltd * * THIS SOFTWARE IS PROVIDED BY BRIDGETEK PTE LTD "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL * BRIDGETEK PTE LTD BE LIABLE F...
/* * Copyright 2019 The Opentls Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.opentls.org/source/licens...
#include <stdio.h> #include <string.h> #include <math.h> #include <stdlib.h> #include <unistd.h> #include <getopt.h> #include <limits.h> #include <math.h> #include <float.h> #include "cfg.h" #include "error.h" double VeroTotalVit; // DBL_MIN is 2.2250738585072014e-308; /******************************************/ vo...
#include<stdint.h> #include"dadio.h" #include"hal.h" #include"inthandling.h" #define MAX_INTERRUPTS 256 #define IDT_DESC_TRAP 0x01 //00000001 #define IDT_DESC_BIT16 0x06 //00000110 #define IDT_DESC_BIT32 0x0E //00001110 #define IDT_DESC_RING1 0x40 //01000000 #define IDT_DESC_RING2 0x20 //00100000 #define IDT_DESC_RING...
/** * graphics/sdl_graphics.c * A SDL graphics abstraction layer. * * @author <NAME> <<EMAIL>> */ #include <SDL.h> #include <SDL_ttf.h> #include <stdlib.h> #include <stdio.h> #include <math.h> #include "../engine/nanocad.h" #include "osifont.h" #include "sdl_graphics.h" // Constants #define ZOOM_INTENSITY 10 #de...
/* Copyright (C) 1994-2016 Lawrence Livermore National Security, LLC. LLNL-CODE-425250. All rights reserved. This file is part of Silo. For details, see silo.llnl.gov. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * R...
//===-- boards/unc90.c --------------------------------------------*- C -*-===// // // The Leigun Embedded System Simulator Platform : modules // // 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 o...
/* * Copyright(c) 2021 Intel Corporation. * * 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 agre...
#include "des.h" #include <stdio.h> #include <stdint.h> #include <stdbool.h> #include <string.h> #define DES_BLOCK_SIZE 64 #define DES_ITERATIONS 16 #define DES_F_ITERATIONS 8 #define DES_S_BOX_INPUT_GROUP_SIZE 6 #define DES_S_BOX_OUTPUT_GROUP_SIZE 4 #define DES_S_BOX_COUNT DES_F_ITERATIONS #...
/* * Copyright (c) 2005-2009 Hypertriton, Inc. <http://hypertriton.com/> * 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 copyrigh...
/* 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...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
/* * Copyright (C) 2016 Unwired Devices <<EMAIL>> * 2017 Inria Chile * 2017 Inria * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup drivers_...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <math.h> #define WEIGHT_MAX 0.0001 #define LEARNING_RATE 0.01 #define THRESHOLD 0 #define NETWORK_SIZE 5 typedef struct Neuron Neuron; typedef struct Data Data; typedef double (*functionPtr)(double); typedef struct Layer Layer; typ...
/* * Copyright 2020 <NAME>, <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
/* * * ***** BEGIN GPL LICENSE BLOCK ***** * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program i...
/* * (C) 2001 Clemson University and The University of Chicago * * See COPYING in top-level directory. */ #include <assert.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <gtk/gtk.h> #include "karma.h" /* traffic.c * * This file implements the "traffic" page of the notebook. The functi...
/** @file A brief file description @section license License 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 und...
/* * Copyright 2010 <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...
/* vi: set sw=4 ts=4: */ #include "tinylogin.h" #include <fcntl.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <syslog.h> #include <termios.h> #include <unistd.h> #include <utmp.h> #include <sys/resource.h> #include <sys/stat.h> #include <sys/time.h> #include <sys/types.h> #...
#include "quakedef.h" void fractalnoise(unsigned char *noise, int size, int startgrid) { int x, y, g, g2, amplitude, min, max, size1 = size - 1, sizepower, gridpower; int *noisebuf; #define n(x,y) noisebuf[((y)&size1)*size+((x)&size1)] for (sizepower = 0;(1 << sizepower) < size;sizepower++); if (size != (1 << si...
/* * mkbootimg/lean.c * * Copyright (C) 2017 - 2021 bzt (<EMAIL>) * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to u...
#include<stdio.h> #include<stdlib.h> #include<lua5.2/lua.h> #include<lua5.2/lauxlib.h> #include<lua5.2/lualib.h> #include<SDL2/SDL.h> #include<SDL2/SDL_image.h> #include<SDL2/SDL_ttf.h> #include"main.h" #include"text.h" #include"window.h" #include"lua_func.h" #include"frame_text.h" #include"list.h" #include"core.h" t...
/* * FreeRTOS STM32 Reference Integration * * Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without res...
/* * This file is part of the * * Copyright (c) 2016-2017 linghaibin * */ #include "ui_menu.h" #include "../lvgl.h" #include "time_set.h" #include "ui_debug.h" #include "ui_net_set.h" #include "ui_can_set.h" #include "persistence.h" #include "ui_password.h" #include <string.h> #include <stdlib.h> #include "buz...
/* * The MIT License (MIT) * * Copyright (c) 2017 <NAME> (github.com/kanflo) * * 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...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <signal.h> #include <string.h> #include "tools.h" /* Used at trp as the relatice accuracy needed*/ #define NTTOL_REL 1e-4 #ifdef BLAS extern double ddot_(int *n, double *x, int *incx, double *y, int *incy); extern double dnrm2_(int *n, double *x, int...
//======================================================// // _oo0oo_ // // o8888888o // // 88" . "88 // // (| -_- |) // // 0...
/** * names.h * * Names of files, registry keys, etc. * * Copyright (c) 1998-1999, Microsoft Corporation * */ #ifdef __cplusplus #pragma once #endif #include "fxver.h" #define PRODUCT_TOKEN_3(x, y) x ## y #define PRODUCT_TOKEN_2(x, y) PRODUCT_TOKEN_3(x, y) #define PRODUCT_T...
/* * 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...
// 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...
/*author:* <NAME> */ #include "embARC.h" #include "embARC_debug.h" #include "stdio.h" #include "mathh.h" #include "u8g.h" #include <string.h> #include "arc.h" #define FOLLOW_DISTANCE 120 //跟随距离 #define STOP_DISTANCE 80 #define LOST_DISTANCE 300 #define ALARM_DISTANCE 400 #define BOARD_TEMP_I2C_SLAVE_ADD...
/* ** Copyright 2014-2016 The Earlham Institute ** ** 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 appl...
#include "player.h" #include "neslib.h" #include "room.h" #include "ancient.h" #include "mapview.h" #include "pickups.h" #define PLAYER_DASH_SPEED 6 #define PLAYER_DASH_DURATION 10 #define PLAYER_ANIMATION_FRAMECOUNT 3 #define PLAYER_LEAD_X_NEGATIVE -6 #define PLAYER_LEAD_X_POSITIVE 0 #define PLAYER_LEAD_Y_NEGATIVE -...
/* * Copyright (c) 2016 <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, dis...
/** * libcrypt * * Copyright 2014 (c) <NAME> * https://github.com/caseyscarborough/libcrypt * * Description: * * File: crypt.c * * libcrypt is a simple and easy to use library for encryption, hashing, * ciphering, and UUID generation. It can be used in a project by including * the crypt.h file at th...
#include <getopt.h> #include <mpi.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "mpi_module.h" #include "swsharp/evalue.h" #include "swsharp/swsharp.h" #define ASSERT(expr, fmt, ...)\ do {\ if (!(expr)) {\ fprintf(stderr, "[ERROR]: " fmt "\n", ##__VA_ARGS__);\ ...
/* FreeTDS - Library of routines accessing Sybase and Microsoft databases * Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 <NAME> * Copyright (C) 2005, 2006, 2007 <NAME> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * Lice...
/* * The Yices SMT Solver. Copyright 2015 SRI International. * * This program may only be used subject to the noncommercial end user * license agreement which is downloadable along with this program. */ #include "mcsat/conflict.h" #include "io/term_printer.h" #include "mcsat/tracing.h" #define CONFLICT_DEFAULT_...
/*++ /* NAME /* qmqp-source 1 /* SUMMARY /* multi-threaded QMQP test generator /* SYNOPSIS /* .fi /* \fBqmqp-source\fR [\fIoptions\fR] [\fBinet:\fR]\fIhost\fR[:\fIport\fR] /* /* \fBqmqp-source\fR [\fIoptions\fR] \fBunix:\fIpathname\fR /* DESCRIPTION /* \fBqmqp-source\fR connects to the named host and TCP port (default ...
// (C) 2017 <NAME>, MIT/x11 License. // //All MIT/x11 Licensed Code in this file may be relicensed freely under the GPL or LGPL licenses. /* ootx data decoder */ #include "ootx_decoder.h" #include "string.h" #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <os_generic.h> #ifdef NOZLIB #include "c...