text
stringlengths
3.12k
18.7k
/* Copyright (c) 2009,2010, <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 conditions and the ...
#pragma once #include <stddef.h> #include <stdlib.h> #include <stdio.h> #include <stdbool.h> #include <time.h> #include <string.h> #define _countofFrames(array) (sizeof(array) / sizeof(struct Frame*)) // HTTP libs #include <curl/curl.h> #include <json-c/json.h> #define MAX_INTERACTION 3 // Maximum interaction for ...
#include <string.h> #include <stdlib.h> #include <stdio.h> #include <assert.h> #include "values.h" #include "gc.h" /* Floats instead of ints. Instead of storing the int inside the Field of the alloced node: For each randomised float, create a new field (double precision, so two Fields) Store ptr to it */ value *alloc...
#include "symtable.h" #define ST_BUCKETS_MIN 4 #define ST_BUCKETS_MAX 256 uint8_t hash_str(const char *str); void rehash(struct symbol_table *st, size_t cnt); void symbol_table_init(struct symbol_table *st) { st->buckets_cnt = ST_BUCKETS_MIN; st->buckets = ycalloc(st->buckets_cnt, sizeof(struct symbol *)); st...
/* * Copyright (c) 1992, 1993 * The Regents of the University of California. All rights reserved. * * This software was developed by the Computer Systems Engineering group * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and * contributed to Berkeley. * * All advertising materials mentioning fe...
#include "jenkins_hash.h" #include <stdlib.h> #ifdef WIN32 #define _USE_MATH_DEFINES //For M_LOG2E #endif #include <math.h> #include <limits.h> #include <string.h> //#define DEBUG #include "debug.h" #define hashsize(n) ((cmph_uint32)1<<(n)) #define hashmask(n) (hashsize(n)-1) //#define NM2 /* Define this if you do...
#include <stdio.h> #include <libgen.h> #include <string.h> #include "includes/sutils.h" #include "includes/scompiler.h" #include "includes/sinstruction_utils.h" #include "includes/smemory.h" #if DEBUG_PRINT_CODE #include "includes/sdebug.h" #endif #ifdef _WIN32 #define PATH_SEPARATOR "\\" #else #define PATH_SEPARATO...
#include "bloom.h" typedef struct prime_table { uint64_t count; uint64_t *primes; } prime_table; static inline int bloom_calc_partitions(bloom *bf, long target_size, long k, prime_table *primes); static inline long binary_search_nearest(const uint64_t *elem_array, size_t num_elems, uint64_t value); static inlin...
/* cam.h * * Micropolis, Unix Version. This game was released for the Unix platform * in or about 1990 and has been modified for inclusion in the One Laptop * Per Child program. Copyright (C) 1989 - 2007 Electronic Arts Inc. If * you need assistance with this program, you may contact: * http://wiki.laptop.or...
/** **************************************************************************************** * * @file xtal_cal.c * * @brief External oscillator calculation functions source code file. * * Copyright (C) 2012. Dialog Semiconductor Ltd, unpublished work. This computer * program includes Confidential, Proprietary...
/* $OpenBSD: vswprintf.c,v 1.4 2012/12/05 23:20:01 deraadt Exp $ */ /* $NetBSD: vswprintf.c,v 1.1 2005/05/14 23:51:02 christos Exp $ */ /* * Copyright (c) 1997 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that...
/* * 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...
#include "include/battle.h" // This is literally just for SCREEN_* #include "include/math.h" #include "include/tilemap.h" #include <assert.h> #include <stdlib.h> #include <string.h> // Battles are scaled by 4x const sfFloatRect BATTLE_VIEW = {0, 0, SCREEN_WIDTH / 4.0, SCREEN_HEIGHT / 4.0}; // These positions are sfV...
#include "main.h" /** @description Convert value to binary string. * @param str the destination string. * @param val the value to convert. * @param len the number of bits to write. * @return pointer to the next byte after the last character written in str. * @note does not perform any sort of bounds check. ...
#define _GNU_SOURCE #include <bits/types/__sigval_t.h> // for __sigval_t #include <ctype.h> // for isprint #include <errno.h> // for EINTR, errno #include <pthread.h> // for pthread_create, pthread_join, pth... #include <semaphore.h> // for sem_p...
/* MatrixSSL miscalculation bug * demonstrating incomplete fix for Use CVE-2016-6887 * * by <NAME>, license: CC0 / public domain */ #include <stdio.h> #include <stdlib.h> #include <openssl/bn.h> #include <crypto/cryptoApi.h> unsigned char a1[] = { 0xe7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00...
/* Program sterujący obrotową mapą nieba. Copyright 2018, <NAME> & <NAME> */ #include <avr/io.h> #include <avr/interrupt.h> #include "dcf.h" #ifdef DEBUG #include "debug.h" #endif /* Ports configuration Red LED - no valid frame received during last rotation Yellow LED - DCF output Green LED - motor step */ ...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <netdb.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <sys/socket.h> #include<netinet/tcp.h> #include<netinet/ip.h> #include<netinet/ip_icmp.h> #include<netinet/udp.h> // struct will be used to calculate the size of th...
/* * Copyright (c) 2015, <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: * * * Redistributions of source code must retain the above copyright notice, this * list of conditions and...
/* ======================================== * * tm32_basicapp.c * description: TouchMidi32 Default application * * Copyright(c)2017 <NAME> at Kigakudoh * This software is released under the MIT License, see LICENSE.txt * * ======================================== */ #include "tm32_lib.h" #include "tm32_i2cdev...
/* * Copyright (c) 2000 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 hope that it wou...
/*! \file \brief Implements the various recv operations. \date Started 4/6/2013 \author George */ #include "bdmplib.h" /*************************************************************************/ /* Performs a blocking recv operation */ /*************************************************************************/ int ...
/* * (C) Copyright 2005- ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * * In applying this licence, ECMWF does not waive the privileges and immunities granted to it by * virtue of its status as an int...
/* * Copyright © 2020 Valve Corporation * * 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, mer...
typedef enum {BAUD_300=39999,BAUD_1200=9999, BAUD_2400=4999, BAUD_9600=1249, BAUD_10417=1151, BAUD_19200=624, BAUD_38400 = 312, BAUD_57600=207, BAUD_115200=103}USARTBaud; typedef enum {USART_DataLength_8b, USART_DataLength_9b}USARTDataLength; typedef enum {USART_StopBits_1, USART_StopBits_1_5, USART_StopBits_2}USARTSto...
#include <stdint.h> #include <stdio.h> #include <string.h> #define IOREG(X) (*(volatile uint32_t *) (X)) // GPIO registers #define GPFSEL0 IOREG(0x20200000) #define GPFSEL1 IOREG(0x20200004) #define GPFSEL2 IOREG(0x20200008) #define GPFSEL3 IOREG(0x2020000C) #define GPFSEL4 IOREG(0x20200010) #define GPFSEL5 IOREG(0x...
/* 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 */ #include "FLAME.h" FLA_Error FLA_Hess_UT_un...
#include "freertos/FreeRTOS.h" #include "esp_system.h" #include "esp_event.h" #include "esp_event_loop.h" #include "esp_partition.h" #include "esp_err.h" // #include "driver/spi_master.h" #include "esp_log.h" #include "esp_vfs_fat.h" // #include "driver/sdmmc_host.h" #include "driver/sdspi_host.h" #include "sdmmc_cmd....
#include "ns/nodes/worker.h" #include <stdlib.h> #include <string.h> #include <mpi.h> #include <cJSON.h> #include "ns/solver.h" #include "ns/utils/logger.h" #include "ns/utils/parser.h" #include "ns/utils/file.h" #include "ns/nodes/com/message.h" #define MASTER_NODE_RANK 0 #define RESULT_FILE_MAX_NAME_LENGTH 64 stati...
// Beware, this code is shared between the kernel and userspace. #ifdef _KERNEL #include <types.h> #include <lib.h> #include <kern/errno.h> #else #include <string.h> #include <stdlib.h> #include <errno.h> #include <unistd.h> #include <time.h> #include <stdio.h> #endif #include <kern/secure.h> #include "sha256.h" //...
/* Address Book * by <NAME> * * filename: tonedial.c */ #include "ab.h" #include "externals.h" /* This function prepers the data structures needed by the audio.device. * It is called by mymain() during startup. */ void open_audio_data(void) { LONG counter; /* First setup clock_rate. This depends of w...
/* Copyright © 2015, <NAME> <<EMAIL>> * * 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 AUTHOR DISC...
#include "cpuemulator.h" static void print_ram(int *ram) { int last_written; int i; int ram_line; last_written = RAM_SIZE - 1; i = 0; ram_line = 1; printf(" ----> RAM STATUS (up to last non zero value)\n"); while (ram[last_written] == 0) last_written--; while (i <= last_written) { if (i == SCREEN_...
#include "mem.h" #include "vmem.h" #include "../libc/stdlib.h" #include "../config.h" #include <stdint.h> //uint32_t page_directory[1024]; uint32_t* page_directory = 0; /* Important to make this fastcall so GCC doesn't accidently store in stack and break everything */ extern void vmem_enable_page_dir(uint32_t* page...
// (C) <NAME>, <NAME>, <NAME> group: 07 (2022) // Work package 6 // Exercise 3 // Submission code: MYESOG6S #include <Arduino.h> #include <Keypad.h> #include <Adafruit_NeoPixel.h> #include <string.h> #ifdef __AVR__ #include <avr/power.h> #endif // function declarations void keyEv(KeypadEvent); // decl...
/*********************************************** Author contact information: <NAME> Department of Computer Science Brown University P.O. Box 1910 Providence, RI 02912 http://www.cs.brown.edu/people/black/ email: <EMAIL> 401-863-7637 (voice) 401-863-7657 (fax) ---------------...
#include "main.h" void SystemClock_Config(void); static void MX_GPIO_Init(void); static void MX_TIM2_Init(void); #include "../lib/SevenSegment.h" #define AT_THIRD_LED_DIGIT 3 volatile uint16_t number = 0; volatile uint16_t counter = 0; void TIM2Callback() { if (LL_TIM_IsActiveFlag_UPDATE(TIM2)) { LL_...
#include "lvd.h" #include "blynk.h" static struct mg_connection *s_blynk_conn = NULL; static blynk_handler_t s_blynk_handler = NULL; static void *s_user_data = NULL; static int s_ping_interval_sec = 2; int s_reconnect_interval_ms = 3000; /*** * Setup Hander pointers ***/ void blynk_set_handler(blynk_handler_t func,...
/*- * Copyright (c) 2012-2014 <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 condit...
#include<stdlib.h> #include<string.h> #include "contact.h" #include "node.h" void node_init_func(struct Node *aNode, char *vName, int onRoute, unsigned long bufSize) { if(aNode == NULL) return ; strncpy(aNode->name, vName, strlen(vName)+1); aNode->onRoute = onRoute; aNode->gPoint.x = 0; aNode->gPoint.y = 0; aN...
// // BSD 3-Clause License // // Copyright (c) 2020, <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 abov...
/**************************************************************************** * Copyright (C) 2016 Hillcrest Laboratories, Inc. * * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License and * any applicable agreements you may have with Hillc...
/* * autor: <NAME> * fecha: 10/11/17 * descripcion: juego de battleship */ #include <stdio.h> #include <stdlib.h> #include <time.h> // crea la esttructura que va a tener el jugador y la // computadora. // aqui se guardan las posiciones de los barcos junto // con los respectivos puntajes struct jugador { char ...
/* Copyright (c) 2012 <NAME>, <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: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following d...
#include "morpheus.h" static void irc_event_ping(struct client* client, struct irc_msg* msg){ char buf[256]; int len = snprintf(buf, sizeof(buf), ":morpheus PONG :%s\r\n", msg->params[0] ?: ""); send(client->irc_sock, buf, len, 0); } static void irc_event_pong(struct client* client, struct irc_msg* msg){ // do no...
/* This is a 'captive portal' DNS server: it basically replies with a fixed IP (in this case: the one of the SoftAP interface of this ESP module) for any and all DNS queries. This can be used to send mobile phones, tablets etc which connect to the ESP in AP mode directly to the internal webserver. */ #include "...
/* SPDX-License-Identifier: BSD-2 */ /******************************************************************************* * Copyright 2017-2018, Fraunhofer SIT sponsored by Infineon Technologies AG * All rights reserved. *******************************************************************************/ #include <stdlib.h...
#include <aws/nitro_enclaves/kms.h> #include <aws/nitro_enclaves/nitro_enclaves.h> #include <aws/common/command_line_parser.h> #include <aws/common/encoding.h> #include <aws/common/logging.h> #include <json-c/json.h> #include <linux/vm_sockets.h> #include <sys/socket.h> #include <errno.h> #include <unistd.h> #defi...
/*- * Copyright 2013 <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED W...
/* Waiting for a subprocess to finish. Copyright (C) 2001-2003, 2005-2018 Free Software Foundation, Inc. Written by <NAME> <<EMAIL>>, 2001. 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 Foundati...
/* * Copyright (c) 2014-2015, Freescale Semiconductor, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, this...
/* * Copyright (C) 2014 BlueKitchen GmbH * * 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 follo...
/* * FreeRTOS Kernel V10.2.0 * Copyright (C) 2017 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 restriction, includ...
/* * Copyright (C) <NAME> * Copyright (C) Nginx, Inc. */ #include <ngx_config.h> #include <ngx_core.h> #include <nginx.h> ngx_uint_t ngx_win32_version; ngx_uint_t ngx_ncpu; ngx_uint_t ngx_max_wsabufs; ngx_int_t ngx_max_sockets; ngx_uint_t ngx_inherited_nonblocking = 1; ngx_uint_t ngx_tcp_nodelay_and_tcp_...
/* $OpenBSD$ */ /* * Copyright (c) 2008 <NAME> <<EMAIL>> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND...
/* * Copyright 2019 <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 in wr...
/***************************************************************************** * "Gif-Lib" - Yet another gif library. * * Written by: <NAME> IBM PC Ver 0.1, Jun. 1989 ****************************************************************************** * Module to quatize high resolution image into lower...
/* * Copyright (C) 2019-2021 Data Ductus AB * * 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 disc...
/* * * Copyright 2015-2016, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of ...
/* Simple Plugin API * * Copyright © 2018 <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, ...
/* american fuzzy lop++ - high-performance binary-only instrumentation ------------------------------------------------------------------- Originally written by <NAME> <<EMAIL>> and <NAME> TCG instrumentation and block chaining support by <NAME> ...
/* * This file is designed to support spi functions in Espruino for ESP32, * a JavaScript interpreter for Microcontrollers designed by <NAME> * * Copyright (C) 2016 by <NAME> (wilberforce) * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not dist...
/* * Copyright (C) 2016 <NAME> <<EMAIL>> * Copyright © 2018 Google, 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 right...
/* american fuzzy lop++ - high-performance binary-only instrumentation ------------------------------------------------------------------- Originally written by <NAME> <<EMAIL>> and <NAME> <<EMAIL>> TCG instrumentation and block chaining support by <NAME> ...
/** * File: correlation.c * * Correlation formula: * scalar r(x,y) = (n*SUM(x,y) - SUM(x)*SUM(y))*SQRT_INVERSE(x)*SQRT_INVERSE(y) * where: * x,y,... - Time series data to be correlated * n - window for correlation (minimum size of 2) * SUM(x) - sum of all elements inside a window * SQRT_INVERSE(x) ...
/* * Copyright (c) 2016, Linaro Ltd. * Copyright (c) 2015, Sony Mobile Communications Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and * only version 2 as published by the Free Software Foundation. * * This program...
/* * Copyright (C) 2009 - 2018 Xilinx, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, * this list of ...
#include "ok_jpg.h" #include "ok_png.h" #include "test_common.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #ifndef min #define min(a, b) ((a) < (b) ? (a) : (b)) #endif #ifndef max #define max(a, b) ((a) > (b) ? (a) : (b)) #endif static const int CUSTOM_MEMORY_STRIDE_ALIGNMENT = 512; // To test strid...
/* * Copyright 2006-2018 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the OpenSSL license (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.openssl.org/source/lice...
/* * Copyright (C) 2018 Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * */ #include <sys/stat.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <assert.h> #include "dm.h" #include "pci_core.h" #include "vmmapi.h" #def...
/******************************************************************************* * Copyright (c) 2010-2017 Analog Devices, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * - Redis...
/***************************************************************************** * chain.c : configuration module chain parsing stuff ***************************************************************************** * Copyright (C) 2002-2007 VLC authors and VideoLAN * $Id: 0ac550cec08cf5b0324ee42e972e73b705e1d729 $ * *...
#include "stm32f3xx_hal.h" #include "usb_device.h" #include "pixelBlaster.h" #include "console.h" #include "app.h" int _write(int file, char *outgoing, int len); extern ADC_HandleTypeDef hadc1; extern ADC_HandleTypeDef hadc2; extern ADC_HandleTypeDef hadc3; extern ADC_HandleTypeDef hadc4; extern DMA_HandleTypeDef ...
// To get required headers, run // sudo apt-get install libcups2-dev libcupsimage2-dev #include <cups/cups.h> #include <cups/ppd.h> #include <cups/raster.h> #include <stdlib.h> #include <fcntl.h> #include <signal.h> // uncomment next line in order to have verbose dump in DEBUGFILE // after print //#define DEBUGP #de...
/* * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...
// SPDX-License-Identifier: GPL-2.0 /* * Linux driver for digital TV devices equipped with B2C2 FlexcopII(b)/III * flexcop-hw-filter.c - pid and mac address filtering and control functions * see flexcop.c for copyright information */ #include "flexcop.h" static void flexcop_rcv_data_ctrl(struct flexcop_device *fc,...
/* * Sord M5 CAS and WAV generator/converter * * $Id: m5.c $ */ #include "appmake.h" static char *binname = NULL; static char *crtfile = NULL; static char *outfile = NULL; static char *blockname = NULL; static int origi...
/** @file Per-remap purge RESTful API for stateful generation ID management. @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...
#include "f2c.h" #include "blaswrap.h" /* Table of constant values */ static integer c__8 = 8; static integer c__1 = 1; static integer c__2 = 2; static integer c__0 = 0; /* Subroutine */ int sckglm_(integer *nn, integer *mval, integer *pval, integer *nval, integer *nmats, integer *iseed, real *thresh, integer * n...
// ------------------------------------------------------------------ // arch.c // Copyright (C) 2020-2021 Black Paw Ventures Limited // Please see terms and conditions in the file LICENSE.txt #include <fcntl.h> #include <dirent.h> #include <errno.h> #include <sys/types.h> #ifdef _WIN32 #include <windows.h> #els...
#include <SDL2/SDL.h> #include <shadowdive/shadowdive.h> #include "utils/log.h" #include "game/text/text.h" #include "game/text/languages.h" #include "game/har.h" #include "game/scene.h" #include "video/video.h" #include "game/scenes/vs.h" #include "game/menu/menu_background.h" #include "controller/controller.h" #incl...
/* * Copyright 2017, 2020 NXP * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "fsl_device_registers.h" #include "fsl_debug_console.h" #include "fsl_lpspi.h" #include "pin_mux.h" #include "clock_config.h" #include "board.h" /************************************************************...
/* * 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...
/* * 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 ...
////////////////////////////////////////////////////////////////////////// // Plog - portable and simple log for C++ // Documentation and sources: https://github.com/SergiusTheBest/plog // License: MPL 2.0, http://mozilla.org/MPL/2.0/ #pragma once #include <plog/Logger.h> //////////////////////////////////////////...
/* * Copyright (c) 2010, STMicroelectronics. * 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...
/*BHEADER********************************************************************** * Copyright (c) 2008, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * This file is part of HYPRE. See file COPYRIGHT for details. * * HYPRE is free software; you can redistribute...
/* * Copyright © 2012-2015 VMware, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the “License”); you may not * use this file except in compliance with the License. You may obtain a copy * of the License at http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
/*! \file bcmltm_fa_util.c * * Logical Table Manager Field Adaptation * * Utility functions for field manipulations * * This file contains the LTM FA stage utilities, including copying * API field values to/from the Working Buffer. */ /* * Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to...
//**********************************************************************; // Copyright (c) 2015-2018, 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...
/* 视频解码成图片 *clang -g -o decode_video decode_video.c -I/usr/local/ffmpeg/include -L/usr/local/ffmpeg/lib -l avutil -l avformat -l avcodec -l swscale *./decode_video jina.mp4 ./outpic * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <libavformat/avformat.h> #include <libavcodec/avcodec.h> #inc...
/* Copyright 2004-2005 (c) by <NAME>, University of Alcala, Computer Engineering Department. For further information, please visit http://atc1.aut.uah.es This software is provided under the terms of the GNU General Public v2 Licence. A full copy of the GNU GPL is provided in the file COPYING ...
#include <stdbool.h> #include <stdio.h> #define NO_PADDING 0 #define MAX(x, y) (((x) > (y)) ? (x) : (y)) typedef struct { int len; int *values; } int_array; char *cstr_alloc_from_int_array(int_array *arr); int find_greater_or_equal_power_of_2(int value); void int_array_add(int_array *accumulator, int_array *...
#include <ctype.h> #include <stdio.h> #include <float.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <csv.h> #include <table.h> enum { N = 999 }; static const char me[] = "split"; #include "util.h" #define USED(x) \ if (x) \ ; \ else { \ } ...
/* * avdtp_internal.h - avdtp handling * Copyright (c) 2015-2016 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 *...
/* * linux/net/sunrpc/pmap.c * * Portmapper client. * * FIXME: In a secure environment, we may want to use an authentication * flavor other than AUTH_NULL. * * Copyright (C) 1996, <NAME> <<EMAIL>> */ #include <linux/config.h> #include <linux/types.h> #include <linux/socket.h> #include <linux/kernel.h> #includ...
/* * Block matching used by the file-transfer code. * * Copyright (C) 1996 <NAME> * Copyright (C) 1996 <NAME> * Copyright (C) 2003-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 Foun...
/* mnprof.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; static integer c__15 = 15; /* ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc...
#define _POSIX_C_SOURCE 199309L #define _XOPEN_SOURCE 500 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #include <unistd.h> #include <wayland-server.h> #include <wayland-server-protocol.h> #include <xkbcommon/xkbcommon.h> #include <GLES2/gl2.h> #include <wlr/render/matrix.h> #include <wlr...
/** * * @file pssytrd_he2hb.c * * PLASMA auxiliary routines * PLASMA is a software package provided by Univ. of Tennessee, * Univ. of California Berkeley and Univ. of Colorado Denver * * @version 2.6.0 * @author <NAME> * @author <NAME> * @date 2010-11-15 * @generated s Tue Jan 7 11:45:13 2014 * **/ #i...