text
stringlengths
3.12k
18.7k
/* * Copyright (C) by Argonne National Laboratory * See COPYRIGHT in top-level directory */ #include "mpi.h" #include <stdio.h> #include <stdlib.h> #include <assert.h> #include "mpitest.h" #include "dtpools.h" /* static char MTEST_Descrip[] = "Test for streaming ACC-like operations with lock"; */ enum acc_typ...
// our goal here is to // 1. split markdown-related code out of our main blog file // 2. move the changes we've made out of sundown itself // 3. make something that can be easily compiled as a stand-alone process or in emscripten // 4. support privilege-dropping/sandboxing #include <stdio.h> #include <unistd.h> ...
#include "first.h" #include <mysql.h> #include <string.h> #include <stdlib.h> #include "base.h" #include "http_vhostdb.h" #include "fdevent.h" #include "log.h" #include "plugin.h" /* * virtual host plugin using MySQL for domain to directory lookups */ typedef struct { MYSQL *dbconn; buffer *sqlquery; } v...
/************************************************************************************************** * * * This file is part of BLASFEO. * * ...
#include "include/cinterface" #include <stdio.h> typedef TLnat4 TL_TL_priority_t; struct TL_TL_ExceptionInfo { TLint4 quitCode; TLint4 libraryQuitCode; TLstring errorMsg; }; typedef TLnat1 __x567[1]; struct TL_TL_HandlerArea { TLint4 quitCode; TLnat4 lineAndFile; TLaddressint fileTable; stru...
/* * Author: <NAME> <<EMAIL>> * Copyright (c) 1995 <NAME> <<EMAIL>>, Espoo, Finland * All rights reserved * Auxiliary functions for storing and retrieving various data types to/from * Buffers. * * As far as I am concerned, the code I have written for this software * can be used freely for any...
#include "stdafx.h" #define PML4_BASE 0xFFFFF6FB7DBED000 #define PDP_BASE 0xFFFFF6FB7DA00000 #define PD_BASE 0xFFFFF6FB40000000 #define PT_BASE 0xFFFFF68000000000 typedef LARGE_INTEGER PHYSICAL_ADDRESS, *PPHYSICAL_ADDRESS; #pragma pack(push,4) typedef struct _CM_PARTIAL_RESOURCE_DESCRIPTOR { UCHAR Type; UCHAR Sha...
// SPDX-License-Identifier: MIT // Copyright (c) 2019-2020 The Pybricks Authors #include <string.h> #include <pbdrv/gpio.h> #include <pbio/button.h> #include <pbio/uartdev.h> #include "../../drv/button/button_gpio.h" #include "../../drv/ioport/ioport_lpf2.h" #include "../../drv/led/led_pwm.h" #include "../../drv/pwm...
/* # # ---------------------------------------------------------------------------- # # Copyright 2021 IBM 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.or...
/***************************************************************************//** * @file * @brief Driver for the SPV1840LR5H-B MEMS Microphone ******************************************************************************* * # License * <b>Copyright 2018 Silicon Laboratories Inc. www.silabs.com</b> ********...
#define NULL (void *)0 #define EFIERR(a) (0x8000000000000000 | a) #define EFI_SUCCESS 0 #define EFI_INVALID_PARAMETER EFIERR(2) #define EFI_DEVICE_ERROR EFIERR(7) //******************************************************* // Open Modes //******************************************************* #define EFI_FILE_MODE_REA...
#include "main.h" #include "usb_device.h" #include <string.h> #include "BMI088.h" #include "KalmanRollPitch.h" #define SAMPLE_TIME_ACC_MS 25 #define SAMPLE_TIME_GYR_MS 10 #define SAMPLE_TIME_COM_MS 200 #define SAMPLE_TIME_LED_MS 500 #define RAD_TO_DEG 57.2957795131f I2C_HandleTypeDef hi2c1; UART_HandleTypeDef...
/** * (C) Copyright 2018-2021 Intel Corporation. * * SPDX-License-Identifier: BSD-2-Clause-Patent */ #define D_LOGFAC DD_FAC(vos) #include <daos/common.h> #include <daos/dtx.h> #include "vea_internal.h" int verify_free_entry(uint64_t *off, struct vea_free_extent *vfe) { D_ASSERT(vfe != NULL); if (off != NULL &&...
// // Created by 陈国威 on 2018/2/11. // #include <stddef.h> #include <sys/_types/_off_t.h> #include "../../core/ngx_string.h" #include "../../core/ngx_config.h" #include "../../core/ngx_array.h" #include "../../os/unix/ngx_time.h" #include "../../core/ngx_buf.h" #include "../../core/ngx_file.h" #include "../../core/ngx...
/* Copyright (c) 2007 * <NAME>, <NAME>, <NAME>, and <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, * ...
/* * Copyright (c) 2020 Bouffalolab. * * This file is part of * *** Bouffalolab Software Dev Kit *** * (see www.bouffalolab.com). * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redistributions ...
/*---------------------------------------------------------------------- This source distribution is placed in the public domain by its author, <NAME>. You may use it for any purpose, free of charge, without having to notify anyone. I disclaim any responsibility for any errors. Optionally, please be nice and tel...
/** * @file * @brief PHY Test Functions using MAC Functions for Data Reliablity */ /* * Copyright (c) 2019, Cascoda Ltd. * 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. Redistri...
/* * Copyright 2009 <NAME> <<EMAIL>> * Copyright 2009 <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 * on the righ...
/* MIT License Copyright (c) 2020 <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...
#include <stdarg.h> #include "esp_event_loop.h" #include "esp_log.h" #include "esp_ota_ops.h" #include "esp_system.h" #include "esp_wifi.h" #include "freertos/event_groups.h" #include "homie.h" #include "ota.h" static const char *TAG = "HOMIE"; static esp_mqtt_client_handle_t client; static homie_config_t *config; ...
/* * * 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 ...
/* * Copyright (c) 2011-2012, <NAME>, CNRS * 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 condi...
#include "ctypes.h" #include "debug.h" #include "asn.h" #include "asl.h" #include "asldefs.h" #define aslNodeNil ((AslIdType) 0) #define aslNode(n) (aslPtrToId (& aslNodes [ (n) ])) #define aslNodeDef(t,s,n,v) \ { \ (t), \ (CUnswType) (s), \ (AsnLengthType) (n), \ (v) \ } static AslNodeType aslNod...
/*** * $Workfile: packets.h $ * $Revision: 1.2 $ * $Author: <NAME> $ * $Date: 04 May 1990 9:18:30 $ ***/ /* packets.h : January 4, 1989 : <NAME> This file contains the structure definitions for the packets used in the expansion box device drivers */ #define TEST_PACKET_REQ 0 ...
#include <stdlib.h> #include <sys/types.h> #include <stdio.h> #include <inttypes.h> #include <string.h> #include <getopt.h> #include <unistd.h> #include <sys/time.h> #include <sys/stat.h> #include "bcmalgo.h" #define UTIL_VERSION "0.1" #define ENDIAN_REVERSE_NEEDED uint32_t reverse_endian32 ( uint32_t data ) { #ifde...
// // soundfilerx.c // readsfx~ // // Created by <NAME> on 2014-06-13. // Copyright (c) 2014 <NAME>. All rights reserved. // #include "xcommon.h" /* ------- soundfilerx - reads and writes soundfiles to/from "garrays" ---- */ #define DEFMAXSIZE 4000000 /* default maximum 16 MB per channel */ #define SAMPBUFSI...
#include "irc.h" #include "logging.h" #include "network.h" #include "settings.h" #include "commands/commands.h" #include "commands/irc_commands.h" #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <netdb.h> #i...
/* * MIT/X Consortium License * * © 2017 <NAME> * © 2013 <NAME> * © 2009 <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 *...
#include <stdio.h> #include <stdlib.h> #include <time.h> // =-=-=-= Insertion Sort =-=-=-= // void insertion(int vtr[],int tmnh) { for (int i = 1; i < tmnh; i++) { int temp = vtr[i], j = i; while (j > 0 && vtr[j-1] > temp) { vtr[j] = vtr[j - 1]; j = j - 1; } vtr[j] = temp; } } // =-=-=-= Selection ...
// The Timber compiler <timber-lang.org> // // Copyright 2008-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 th...
/* * Copyright (c) 1996 - 2002 FreeBSD Project * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * <NAME> at Krystal Technologies. * * Redistribution and use in source and binary forms, with or withou...
/* * Copyright 2018-2020 Redis Labs Ltd. and Contributors * * This file is available under the Redis Labs Source Available License Agreement */ #include "op_merge.h" #include "op_merge_create.h" #include "../../query_ctx.h" #include "../../schema/schema.h" #include "../../arithmetic/arithmetic_expression.h" #include <...
/* * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * */ /* inhibit floating point copy propagation */ #pragma global - Mx, 6, 0x100 #include "mthdecls.h" #include ...
//----------------------------------------------------------------------------- // // $Id:$ // // Copyright (C) 1993-1996 by id Software, Inc. // // This source is available for distribution and/or modification // only under the terms of the DOOM Source Code License as // published by id Software. All rights reserved. ...
/* * Copyright (c) 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, including without limitation the rights * to use, copy, modify, merge, pu...
/* * This file is part of the coreboot project. * * Copyright (C) 2001 <NAME><<EMAIL>> * * Copyright (C) 2006 AMD * Written by <NAME> <<EMAIL>> for AMD. * * Copyright (C) 2007 University of Mannheim * Written by <NAME> <<EMAIL>> for Uni of Mannheim * * Copyright (C) 2009 University of Heidelberg * Written b...
#include "filter.h" #include "logging.h" #include <libavfilter/buffersrc.h> #include <libavfilter/buffersink.h> #include <libavutil/opt.h> int init_video_filters(struct input_ctx *ictx, struct output_ctx *octx) { char args[512]; int ret = 0; const AVFilter *buffersrc = avfilter_get_by_name("buffer"); ...
/***************************************************************************** * Ledger Oxen App. * (c) 2017-2020 <NAME> <<EMAIL>>, Ledger SAS. * (c) 2020 Ledger SAS. * (c) 2020 Oxen Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compli...
#include "../includes/ft_printf.h" #include "../libft/libft.h" #include <limits.h> #include <stdio.h> void end(void)__attribute__((destructor)); void end(void) { system("leaks a.out"); } int main(void) { int a = -4; int b = 0; char c = 'a'; int d = 2147483647; int e = -2147483648; int f = 42; int g...
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <stdarg.h> #include <string.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <fcntl.h> #define BUF_SIZE 1024 #define HONEYPOT_DETECTOR_VERSION "1.0.1" int g_verbose = 0; int g_timeout = 10; int g_port = 22; int MAX_F...
/* * SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #include <sys/lock.h> #include "sdkconfig.h" #if CONFIG_RMT_ENABLE_DEBUG_LOG // The local log level must be defined before including esp_log.h // Set the maximum log level for this source file #define L...
/* * Simple test program to demonstrate * the functionality of the openg/openfh * system call using MPI! */ #include <stdio.h> #include <sys/time.h> #include <string.h> #include <errno.h> #include <unistd.h> #include <stdlib.h> #include <sys/types.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #inc...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * Copyright (c) 2022 STMicroelectro...
/******************************Module*Header*******************************\ * Module Name: exehdr.h * * (Brief description) * * Created: 08-May-1991 13:42:33 * Author: <NAME> [BodinD] * * Copyright (c) 1990-1999 Microsoft Corporation * * Description * * Data structure definitions for the DOS 4.0/Wind...
/** * 作者:evilbinary on 12/24/16. * 邮箱:<EMAIL> */ #include "graphic.h" #ifndef STB_IMAGE_IMPLEMENTATION #define STB_IMAGE_IMPLEMENTATION #include "stb_image.h" #endif mvp_t* mvp_create(int shader, int width, int height) { mvp_t* self = malloc(sizeof(mvp_t)); self->shader = shader; mat4_set_identity(&self->pro...
/* * jpeg.c -- LCUI JPEG image file processing module. * * Copyright (c) 2018, <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: * * * Redistributions of source code must r...
/* * tps65910-irq.c -- TI TPS6591x * * Copyright 2010 Texas Instruments Inc. * * Author: <NAME> <<EMAIL>> * Author: <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 Founda...
/* <NAME> CS 4348.0U1 Homework 4 7/20/2018 */ #include <stdio.h> #include <stdlib.h> #include <math.h> /* GLOBAL CONSTANTS TLB_ENTRIES = Total entries in the TLB cache TABLE_ENTRIES = Total page entries TOTAL_FRAMES = Total frames in memory FRAME_SIZE = Total bytes in a frame PAGE_SIZE = ...
#include "MainEvents.h" #include "../common/ListView.h" #include "../common/Glob.h" #include "../common/Font.h" #include "../common/Id3.h" #include "../common/util.h" #include "../res/resource.h" #include "Worker.h" static HWND hDlg = 0, hList = 0; static void _Main_calcPaddingSizeAll() { int i, nFiles = ListView_...
/* Test file for mpfr_frexp. Copyright 2011-2020 Free Software Foundation, Inc. Contributed by the AriC and Caramba projects, INRIA. This file is part of the GNU MPFR Library. The GNU MPFR Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as p...
/* Dump registers. Copyright (C) 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C 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 versi...
/***************************************************************************** as.c - Assembler mainline Copyright (C) 1996, 1997, 2014, 2018, by <NAME>, Et al. This file is distributed under the MIT License. See notice at the end of this file. ********************************************************************...
/* PURPOSE: Negotiate a buffer memory extension * * The test operates on the following functions: * * Buffer_nested_negotiate_extend() * * Pointer and indice handling is not subject to this test. Subject to test * is: * * -- Deal with 'no extension possible at all'. * -- Extension possible for...
/* main.c - Application main entry point */ /* * Copyright (c) 2015-2016 Intel Corporation * * SPDX-License-Identifier: Apache-2.0 */ #include <zephyr/types.h> #include <stddef.h> #include <errno.h> #include <zephyr.h> #include <sys/printk.h> #include <bluetooth/bluetooth.h> #include <bluetooth/hci.h> #include <...
/* * Copyright 2020 Makani Technologies LLC * * 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 ...
/* dbcache.c - manage cache of open databases */ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software <http://www.openldap.org/>. * * Copyright 2000-2012 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted only ...
// Copyright 2019 Shift Cryptosecurity AG // // 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 ...
// // PublicDefinitions.h // ecmc // // Created by cp9 on 13-1-10. // Copyright (c) 2013年 cp9. All rights reserved. // //现网环境地址 #define kServerAddr @"http://192.168.127.12:28080/hnmccClient/action.dox" //@"http://service.js.10086.cn/jsmccClient/action.dox" //测试环境地址 //#define kServerAddr @"http://service.js.10086.c...
// // Rendering with EGL ES2 into pbuffer surface // // based on // https://stackoverflow.com/questions/28817777/pbuffer-vs-fbo-in-egl-offscreen-rendering // // https://www.khronos.org/registry/EGL/sdk/docs/man/html/indexflat.php // https://www.khronos.org/assets/uploads/books/openglr_es_20_programming_guide_sample.pd...
/** * @file axidma_of.c * @date Wednesday, April 13, 2016 at 10:59:45 AM EDT * @author <NAME> (bmperez) * @author <NAME> (jaewonch) * * This file contains functions for parsing the relevant device tree entries for * the DMA engines that are used. * * @bug No known bugs. **/ // Kernel Dependencies #include <l...
/** * MO639 - Segurança de Redes * lab03 - DNS spoof * dns-spoof.c * * <NAME> - 060999 * <NAME> - 063140 * <NAME> - 074358 * */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <pcap.h> #include <netdb.h> #include <netinet/ip.h> #include <netinet/udp.h> #include <arpa/inet.h> #incl...
/* * Title: Yatzy med mange terninger. * Assignment: Eksamensopgave 2 * Link to assignment: http://people.cs.aau.dk/~normark/impr-21/eksamensopgaver-e21/Arrays/opgave-2.html * * Programmer: <NAME> * Email: <EMAIL> * Group P1: B205 * Field of study: Computer Science (Datalogi) * Date completed: November 03, 20...
/* Copyright (c) (2010,2011,2012,2015,2016,2017,2018,2019) Apple Inc. All rights reserved. * * corecrypto is licensed under Apple Inc.’s Internal Use License Agreement (which * is contained in the License.txt file distributed with corecrypto) and only to * people who accept that license. IMPORTANT: Any license ri...
/* * Copyright 1999-2000 <NAME> <<EMAIL>> * Copyright 2020 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above...
/* * Copyright (c) 2013-2015 <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, merg...
#include <stdbool.h> #include <assert.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <dirent.h> #include <kos/thread.h> #include <dc/fs_dcload.h> static char OUTPUT_FILENAME[128]; static kthread_t* THREAD; static volatile bool PROFILER_RUNNING = false; static volatile bool ...
/* $Id$ * * 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 "Lice...
/** * Marlin 3D Printer Firmware * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 <NAME> / <NAME> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
#include <stdlib.h> #include <assert.h> #include <string.h> #include <errno.h> #include "segmentation/segmentation.h" #include "imgproc/image.h" #include "imgproc/morphology.h" #include "imgproc/connected_components.h" #include "utils/matrix.h" #include "utils/vector.h" #include "utils/utils.h" #include "utils/error.h"...
/** * Copyright 2020 Huawei Technologies Co., Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) // Copyright (c) 2020 <NAME> // // Based on runqlat(8) from BCC by <NAME>. // 10-Aug-2020 <NAME> Created this. #include <argp.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <bpf/l...
#include "ossGisRaster.h" void raster_destroy(rt_raster raster) { uint16_t i; uint16_t nbands = rt_raster_get_num_bands(raster); for (i = 0; i < nbands; i++) { rt_band band = rt_raster_get_band(raster, i); if (band == NULL) continue; if (!rt_band_is_offline(band) && !rt_band_get_ownsdata_flag(band)) { ...
/**************************************************************************//** * @file main.c * @version V1.00 * $Revision: 8 $ * $Date: 18/07/19 2:22p $ * @brief Demonstrate how to use PWM output waveform. * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2018 Nuvoton Technology Corp. All right...
/* *----------------------------------------------------------------------------- * The confidential and proprietary information contained in this file may * only be used by a person authorised under and to the extent permitted * by a subsisting licensing agreement from ARM Limited or its affiliates. * * ...
/* * This file is part of the coreboot project. * * Copyright 2015 MediaTek Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License. * * This program is distribu...
/*-*- mode:c;indent-tabs-mode:nil;c-basic-offset:2;tab-width:8;coding:utf-8 -*-│ │vi: set net ft=c ts=2 sts=2 sw=2 fenc=utf-8 :vi│ ╞══════════════════════════════════════════════════════════════════════════════╡ │ Copyright 2020 <NAME> │ │ ...
// https://mathworld.wolfram.com/SolitaryNumber.html // Friendly/Solitary/Multi-perfect numbers #include <stdlib.h> #include <stdio.h> #include <stddef.h> #include <stdnoreturn.h> #include <stdbool.h> #include <assert.h> #include <math.h> #include <CUnit/CUnit.h> #include <CUnit/Basic.h> #include <CUnit/Console.h> ...
/* draw a draw_circle on an image * * Author <NAME> * Written on 30/05/1990 * Updated on: * 22/7/93 JC * - im_incheck() call added * 16/8/94 JC * - im_incheck() changed to im_makerw() * 5/12/06 * - im_invalidate() after paint * 6/3/10 * - don't im_invalidate() after paint, this now needs to be at a higher...
/* * Copyright © 2021 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 rights to use, copy, modify, merge, publish,...
/* ncdu - NCurses Disk Usage Copyright (c) 2007-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, mo...
/* USER CODE BEGIN Header */ /** //LA INFORMACIÓN EN ESTOS HEADERS ES UTIL PARA GENERAR LA DOCUMENTACIÓN EN DOXYGEN //LA DELIMITACIÓN POR "USER CODE BEGIN/END" ES UTIL PARA LA GENERACIÓN AUTOMATICA DE CODIGO DE STM32CUBE ****************************************************************************** * @file ...
/****************************************************************************//** * @file main.c * @version V3.00 * @brief * Demonstrate how to implement a USB audio class device. * NAU8822 is used in this sample code to play the audio data from Host. * It also supports to recor...
#include <assert.h> #include <stdlib.h> #include "run.h" #include "logger.h" #include "ui.h" #include "options.h" static RUN_state g_debugState = RUN_stateStopped; #ifdef __amigaos__ #include "amigasupport.h" #include <exec/execbase.h> #include <dos/dostags.h> #include <workbench/startup.h> #include <clib...
/* FastLZ - lightning-fast lossless compression library Copyright (C) 2007 <NAME> (<EMAIL>) Copyright (C) 2006 <NAME> (<EMAIL>) Copyright (C) 2005 <NAME> (<EMAIL>) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Softw...
/********** Copyright (c) 2017, 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 conditions and the fol...
/* * WARNING: be careful changing this code, it is very timing dependent */ #ifndef F_CPU #define F_CPU 16000000 #endif #include <avr/io.h> #include <avr/interrupt.h> #include <util/delay.h> #include <stdbool.h> #include "serial.h" #ifdef USE_SERIAL #define _delay_sub_us(x) __builtin_avr_delay_cycles(x) // Se...
/* prototypes and stuff for ATA command ioctls */ #include <linux/types.h> enum { ATA_OP_DSM = 0x06, // Data Set Management (TRIM) ATA_OP_READ_PIO = 0x20, ATA_OP_READ_PIO_ONCE = 0x21, ATA_OP_READ_LONG = 0x22, ATA_OP_READ_LONG_ONCE = 0x23, ATA_OP_READ_PIO_EXT = 0x24, ATA_OP_READ_DMA_EXT = 0x25, ATA_OP...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <glib.h> #include <sys/time.h> #include <getopt.h> #include "nps_fdm.h" #include "nps_sensors.h" #include "nps_atmosphere.h" #include "nps_autopilot.h" #include "nps_ivy.h" #include "nps_flightgear.h" #define SIM_DT (1./512.) #define DISPLAY_DT (...
/* Copyright (C) Intel Corp. 2006. All Rights Reserved. Intel funded Tungsten Graphics to develop this 3D driver. 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, inclu...
/* Chinese Scale/Caliper readout for Arduino/Microchip Studio Optimized for Arduino Nano (ATMega328P) platform 2021 - <NAME> */ // Clock 16MHz #define F_CPU 16000000UL // Pins #define CLK_PIN PORTD2 #define DATA_PIN PORTD4 #define ZERO_PIN PORTD5 #define MODE_PIN PORTD6 // Function Prototypes void fncSetup (void); l...
#include <stdio.h> #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> #include <libavcodec/avcodec.h> #include <libavutil/pixfmt.h> #include <libswscale/swscale.h> //from decoding_encoding.c #include <string.h> #include <stdlib.h> #define INBUF_SIZE 4096 void setup_video_decode() { avcodec_register...
/* * server.c * * Created on: 2 апр 2021 г. * Author: <NAME>. * * * Модуль обеспечивает инициализацию модулей, запуск сервера при нажатой кнопке * и главный цикл программы. */ /*Simplified BSD License (FreeBSD License) Copyright (c) 2021, <NAME>, All rights reserved. Redistribution and use in source an...
// SPDX-License-Identifier: GPL-2.0 /* Copyright (C) B.A.T.M.A.N. contributors: * * <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * * License-Filename: LICENSES/preferred/GPL-2.0 */ #include <errno.h> #include <net/if.h> #include <netinet/if_ether.h> #include <netlink/netlink.h> #include <netlink/genl/genl.h> #include <ne...
/** * @file txt.c * * @brief plain text manifests * * This file contains sorted manifests * for keywords and tokens of the * standard written SD language */ #include <sd/lang/tokens/gen/txtmaps.h> #include <sd/lang/core/statement.h> #include <sd/lang/tokens/groups.h> #include <sd/intr/txt/tokens/form.h> #inc...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <stdarg.h> #include "symbols.h" #include "file.h" #include "nodes.h" #include "bytecode.h" #include "types.h" #include "variables.h" /////////////////// // file pointers // /////////////////// static FILE *src_ptr = NULL; // so...
#include <stdlib.h> #include <stdbool.h> #include <string.h> #include <stdio.h> #include "basicblock.h" #include "ast/ast.h" #include "tacbuffer.h" static bool* calculate_leaders(struct TACBuffer* buffer); static struct BasicBlock** collect_basic_blocks(struct TACBuffer* buffer, uint32_t count, bool* is_leader); sta...
// RUN: %clang_cc1 -ffreestanding -triple i386-apple-darwin9 -target-cpu pentium4 -target-feature +sse4.1 -g -emit-llvm %s -o - | FileCheck %s #include <emmintrin.h> #include <smmintrin.h> __m128 test_loadl_pi(__m128 x, void* y) { // CHECK: define {{.*}} @test_loadl_pi // CHECK: load <2 x float>* {{.*}}, align 1{...
/* # _____ ___ ____ ___ ____ # ____| | ____| | | |____| # | ___| |____ ___| ____| | \ PS2DEV Open Source Project. #----------------------------------------------------------------------- # Copyright 2001-2004, ps2dev - http://www.ps2dev.org # Licenced under Academic Free License ve...
/****************************************************************************** * * Filename: ieeehalfprecision.c * Programmer: <NAME> * Version: 1.0 * Date: March 3, 2009 * Copyright: (c) 2009 by <NAME>, All Rights Reserved * * This code uses the BSD License: * * Redistribution and use in ...