text
stringlengths
3.08k
10.5k
#include "libfreenect.h" #include "libfreenect_audio.h" #include <stdio.h> #include <string.h> #include <signal.h> #include <pthread.h> #if defined(__APPLE__) #include <GLUT/glut.h> #else #include <GL/glut.h> #endif pthread_t freenect_thread; volatile int die = 0; int window; static freenect_context* f_ctx; static ...
#include "cortexm_systick.h" // 0. Constants uint32_t calibration_val = SYSTICK_TICKS_10_MS; // 1. Static (after initialization) configs uc_hook hook_systick_write_handle = -1, hook_systick_read_handle = -1; int systick_used = false; uint32_t user_configured_reload_val = SYSTICK_RELOAD_VAL_NONE; // 3. Dynamic State ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include <assert.h> #include "Common.h" #define MAX_LINE_LENGTH 4000 #define MAX_NUM_OF_CHRS 100000 #define PROGRESS_METER_UNIT 4000000 /**********************************************/ FILE *fileOpen(char *fileName, char *mode) { FILE *...
#include <string.h> #include <types.h> #include <debug.h> #include <memory.h> #include <filesys.h> #include <floppy.h> #include <errno.h> #define TD_TRACK (TD_SECTOR * NSECTORS) #define TD_DISK (TD_TRACK * NTRACKS) #define IOF_EOF 0x0002 #define IOF_ERR 0x8000 /* On disk directory entries are always aligned to 2-byt...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "Python.h" #include "hmm.h" #undef max double forward(int K, int T, double * init_state_distrib, double * transmat, double * obslik, double * alpha) { int t = 0; double scale = 0.0f; double loglik = 0.0f; double * transmatT...
/************************************************************************* -------------------------------------------------------------------------- -- ooops License -------------------------------------------------------------------------- -- -- ooops is licensed under the terms of the MIT license reproduced b...
#define _POSIX_C_SOURCE 200809L #include <stdlib.h> #include <string.h> #include <stdint.h> /* defines SIZE_MAX */ #include "../io/error.h" #include "strings.h" void ZoO_strings_initialize (struct ZoO_strings s [const restrict static 1]) { s->words_count = 0; s->words = (ZoO_char **) NULL; s->word_sizes = ...
/* * ev3_hacks.c * * Created on: Sep 20, 2013 * Author: liyixiao */ #include "driver_common.h" #include "kernel.h" #include "t_stddef.h" #include "tlsf.h" #include <stdarg.h> #define DEBUG #include <errno.h> #undef errno int errno; //typedef struct { // irq_handler_t handler; // unsigned int irq; /...
/* Copyright 2017-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 writing, softwar...
/*************************************************************** * Project: * CPLD SlaveSerial Configuration via embedded microprocessor. * * Copyright info: * * This is free software; you can redistribute it and/or modify * it as you like. * * This program is distributed in the hope that it will be us...
#undef __STRICT_ANSI__ // For strsep() #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include "inc/hw_ints.h" #include "inc/hw_memmap.h" #include "inc/hw_nvic.h" #include "inc/hw_types.h" #include "driverlib/interrupt.h" #include "driverlib/flash.h" #include "driverl...
/* $OpenBSD: mongoosereg.h,v 1.2 2008/08/24 18:53:36 miod Exp $ */ /* * Copyright (c) 1998-2003 <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...
// Buffer cache. // // The buffer cache is a linked list of buf structures holding // cached copies of disk block contents. Caching disk blocks // in memory reduces the number of disk reads and also provides // a synchronization point for disk blocks used by multiple processes. // // Interface: // * To get a buffer fo...
/* * Copyright 2000, International Business Machines Corporation and others. * All Rights Reserved. * * This software has been released under the terms of the IBM Public * License. For details, see the LICENSE file in the top-level source * directory or online at http://www.openafs.org/dl/license10.html */ /* ...
/* Copyright (c) 2007-2009, 2015 <NAME> <<EMAIL>> Copyright (c) 2007-2008 Center for Bioinformatics, University of Hamburg 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 no...
/***************************************************************************** * Copyright (c) 2009, OpenJAUS.com * All rights reserved. * * This file is part of OpenJAUS. OpenJAUS is distributed under the BSD * license. See the LICENSE file for details. * * Redistribution and use in source and binary...
/*------------------------------------------------------------------------- * * hdfs_query.c * Foreign-data wrapper for remote HDFS servers * * Portions Copyright (c) 2012-2014, PostgreSQL Global Development Group * * Portions Copyright (c) 2004-2014, EnterpriseDB Corporation. * * IDENTIFICATION * hdfs_qu...
/* ################################################################### ** Filename : main.c ** Project : tinyK20_Operator ** Processor : MK20DX128VFT5 ** Version : Driver 01.01 ** Compiler : GNU C Compiler ** Date/Time : 2017-03-11, 13:30, # CodeGen: 0 ** Abstract : ** ...
#include "ADCModuleBoard.h" #include <plib.h> SampleBuffer BufferA; SampleBuffer BufferB; static uint8_t flag = 0; void InitFSM(void); enum { DAQ_INIT, DAQ_START_CONVERSION, DAQ_SAMPLES_TO_BUFFER_A, DAQ_SAMPLES_TO_BUFFER_B, DAQ_SEND_BUFFER_A, DAQ_SEND_BUFFER_B, DAQ_WAIT_FOR_CONVERSION, DAQ_WAIT, DAQ_FATAL_...
#include "stdPcx.h" #include "Engine/rdMaterial.h" #include "General/stdBitmap.h" #include "stdPlatform.h" #include "jk.h" #include "Win95/stdDisplay.h" #include "Win95/std.h" stdBitmap* stdPcx_Load(char *fpath, int create_ddraw_surface, int gpu_mem) { stdBitmap *bitmap; stdVBuffer **mipSurfaces; stdVBuff...
/* * gui.c * * 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...
// // Common.h // MediaPlayer // // Created by <NAME> on 2018/1/2. // Copyright © 2018年 BUPT. All rights reserved. // #if DEBUG #define MPLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__); #else #define MPLog(...) #endif #define HQLogFileStr(object) [NSString stringWithForm...
/** ****************************************************************************** * File Name : SAI.c * Description : This file provides code for the configuration * of the SAI instances. ****************************************************************************** ...
#include<stdlib.h> #include<stdio.h> #include<unistd.h> #include<pthread.h> #include<sys/ipc.h> #include<semaphore.h> #include<string.h> #define Tamanho_Fila 6 #define Numero_Cabines 1 #define Tipos_Veiculos 7 sem_t sem_Veiculos; //representa os veiculos sem_t sem_Fila; //representa a fila de veiculos s...
#include "Compare.h" /*! * @brief Hamming weight * * Get the count of "1" in a number. * */ int hamming_weight(uint32 x) { const uint32 m1 = 0x55555555; //binary: 0101... const uint32 m2 = 0x33333333; //binary: 00110011.. const uint32 m4 = 0x0f0f0f0f; //binary: 4 zeros, 4 ones ... const uint32 ...
/* Copyright (c) 2018 <NAME> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applicat...
/****************************************************************************** * * This file is provided under a dual BSD/GPLv2 license. When using or * redistributing this file, you may do so under either license. * * GPL LICENSE SUMMARY * * Copyright(c) 2014 Intel Mobile Communications GmbH * * This progra...
/* * xpt2046.c * * Created on: Jan 6, 2020 * Author: <NAME> * Copyright [<NAME>] I refer https://github.com/PaulStoffregen/XPT2046_Touchscreen/blob/master/XPT2046_Touchscreen.cpp from Original source: * Copyright (c) 2015, <NAME>, <EMAIL> * * Permission is hereby granted, free of charge, to any pe...
/* * PCG64 Random Number Generation for C. * * Copyright 2014 <NAME> <<EMAIL>> * Copyright 2015 <NAME> <<EMAIL>> * * 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...
#include<stdio.h> #include<pthread.h> #include<unistd.h> int count_A=0, count_B=0; //分别表示当前工作台中已有的part A和part B的数量 int empty=12; // 工作台中空位数量, empty=12 - ( count_A+ count_B) pthread_mutex_t mutexA, mutexB; //二元信号量,分别用于控制对count_A、count_B互斥访问 pthread_mutex_t mutexStation; //二元信号量,控制对工作台和empty的互斥访问(取/放零件...
/** * @file popup.c * @author <NAME> * @date 2004-2006 * * @brief Functions for displaying popup windows. * */ #include "jwm.h" #include "popup.h" #include "main.h" #include "color.h" #include "font.h" #include "screen.h" #include "cursor.h" #include "timing.h" #include "misc.h" #include "settings.h" #include "...
#include<stdio.h> #include<sys/types.h> #include<sys/stat.h> #include<time.h> #include<pwd.h> #include<grp.h> #include<dirent.h> #include<unistd.h> #include<fcntl.h> #define BSIZE 64 ///Return 1 if flag unsigned int isFlag(char* arg){ return arg[0]=='-'; } ///Return -1 if not found any argument, else return...
#include "delta_compressor.h" #include <string.h> #include <stdio.h> #define GAP_THRESHOLD 6 /* when the number of matching bytes between two runs of changes is less than GAP_THRESHOLD, consider them as one packet as this will have less overhead */ #define TARGET_FRAME_TIME 141000 /* minimum estimated running time fo...
/*++ Copyright (c) 1994-1998 Microsoft Corporation Module Name: kill.c Abstract: This module implements a task killer application. Author: <NAME> (wesw) 20-May-1994 Environment: User Mode --*/ #include "pch.h" #pragma hdrstop BOOL ForceKill; struct _arg ...
#include "hardware.h" #include <os.h> #include <stddef.h> //NULL definition /* LEDs */ #define LED_R_PORT PORTB #define LED_R_GPIO GPIOB #define LED_G_PORT PORTE #define LED_G_GPIO GPIOE #define LED_B_PORT PORTB #define LED_B_GPIO GPIOB #define LED_R_...
/* Copyright (c) 2019-2022 <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, d...
/* test_parse_int.c -- Test integer string conversion Copyright (C) 2019 Genome Research Ltd. Author: <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, ...
#include "sys_dep.h" #include "ota_updater.h" #include "ota_mq.h" int ota_updater_init(OtaUpdater *apt, const char *cur_ver, OtaUpdaterCb cb, void* userData) { if (!cur_ver || !cb) { return -1; } apt->cur_version = strdup(cur_ver); apt->cb = cb; apt->userData = userData; apt->ota_mq_h...
/* * Simon 128/256 Cipher in C and inline assembly * * This code is made public using the MIT License * * Author: <NAME> */ # include "Simon.h" void encrypt(uint64_t* plaintext, uint64_t* key, int len){ int i, j; for (i = 0; i < len - 1; i += 2){ for (j = 0; j < T; j++){ R(key + j, plaintext + i, plain...
/* * Copyright (C) <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, publish...
/* * Copyright (c) 2021 Huawei Device 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 ...
/* * NXP MAG3110 Basic Driver * * 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, cop...
/* * * PSOS Development Build * https://github.com/TheBenPerson/PSOS/tree/dev * * Copyright (C) 2016 - 2017 <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...
#include "aes_128_mix_columns.h" #include <stdio.h> #include <string.h> unsigned char galois_mult_by_two(unsigned char val) { if ((val >> 7) & 0x1) return (val << 1) ^ 0x1b; else return (val << 1); } // x*3 = (x*2)+x unsigned char galois_mult_by_three(unsigned char val) { return galois_mult_by_two(val) ^ val; ...
/* * * */ #include <stdlib.h> #include <unistd.h> #include <sys/wait.h> #include <ncarg/hlu/Error.h> #include <ncarg/hlu/NresDB.h> #include "defs.h" #include "NclDataDefs.h" #include "NclBuiltInSupport.h" #include "NclMultiDValData.h" #include "NclVar.h" #include "Symbol.h" #include "Machine.h" #include "VarSuppo...
/****************************************************************************** * * Copyright (C) 2017 Xilinx, 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 wit...
/* Copyright 2020 marksard This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it wil...
/* * gpio - GPIO driver * * Copyright (c) 2018, Archos S.A. * 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 * notic...
/** * \file Optional.c * * Class and method exports for Optional. This source file contains a * registration method that registers the class and method references just once, * making each of these a global reference. */ #include <cbmc/model_assert.h> #include <stdbool.h> #include "../../com/velopayments/blockc...
/*********************************************************************************************************************** * * * Copyright (C) 2017-2018 <NAME> ...
/* * Copyright (c) 2011-2012, 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) 2006 <NAME> * * 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 disclai...
#include "types.h" #include "defs.h" #include "param.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" #include "x86.h" #include "traps.h" #include "spinlock.h" // Interrupt descriptor table (shared by all CPUs). struct gatedesc idt[256]; extern uint vectors[]; // in vectors.S: array of 256 entry pointers ...
#include "ppd_main.h" #include "ppd_utility.h" /** * @file ppd_options.h declares all functions to implement the menu * options that can be called from the main menu. **/ /** * This option allows the user to request a display of the items available * for purchase. This is the data loaded into the linked list in...
/*- * Copyright (C) 1999, 2002, 2003 <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 ...
// Copyright (C) 2020-2020 <NAME>. All rights reserved. // Copyright (C) 2016-2019 Semtech (International) AG. All rights reserved. // // This file is subject to the terms and conditions defined in file 'LICENSE', // which is part of this source code package. #include "lmic.h" #include "peripherals.h" #include "bootta...
/** * @file re_ice.h Interface to Interactive Connectivity Establishment (ICE) * * Copyright (C) 2010 Creytiv.<EMAIL> */ /** ICE Configuration */ struct trice_conf { enum ice_nomination nom; /**< Nomination algorithm */ bool debug; /**< Enable ICE debugging */ ...
/*- * Copyright (c) 1990, 1993, 1994 * The Regents of the University of California. 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 t...
/* * Copyright 2011-2012 the Redfish authors * * 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 ...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
/***************************************************************************** * \file application.c * \author <NAME> * \date 2019-10-13 * \brief Description * * Copyright (c) 2019-2020 <NAME> * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and ...
/* Copyright (c) 1988 X Consortium 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, distribute, ...
#include "c_wangers_time.h" bool is_leap_year(int year) { bool result; if ( (year%4) != 0 ) { result = false; } else if ( (year%400) == 0 ) { result = true; } else if ( (year%100) == 0 ) { result = false; } else { result = true; } return ( result ); } bool d...
/* crypto/ripemd/rmd_locl.h */ /* Copyright (C) 1995-1998 <NAME> (<EMAIL>) * All rights reserved. * * This package is an SSL implementation written * by <NAME> (<EMAIL>). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long ...
/******************************************************************************* External Interrupt Controller (EIC) PLIB Company Microchip Technology Inc. File Name plib_eic.c Summary Source for EIC peripheral library interface Implementation. Description This file defines the interface t...
// SPDX-License-Identifier: GPL-2.0-or-later /* * isl6405.c - driver for dual lnb supply and control ic ISL6405 * * Copyright (C) 2008 <NAME> * Copyright (C) 2006 <NAME> * * the project's page is at https://linuxtv.org */ #include <linux/delay.h> #include <linux/errno.h> #include <linux/init.h> #include <linux/k...
/* * Copyright (c) 2018, Mellanox Technologies and Contributors. * 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, t...
/******************************************************************************* * Ledger Blue - Bitcoin Wallet * (c) 2016 Ledger * * 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 * * ...
// config.h - Generated from config.h.in by configure. #pragma once // Define to the one symbol short name of this package. #define USTL_NAME "ustl" // Define to the full name and version of this package. #define USTL_STRING "ustl v2.8" // Define to the version of this package. #define USTL_VERSION 0x280 // Define to ...
/* -*- coding: utf-8-with-signature; tab-width: 8; indent-tabs-mode: t; -*- */ /* * Suika 2 * Copyright (C) 2001-2021, <NAME>. All rights reserved. */ /* * [Changes] * - 2016/06/09 作成 * - 2021/06/10 マスクつき描画の対応 */ #include "suika.h" static stop_watch_t sw; static float span; static int fade_method; static...
/* CalculiX - A 3-dimensional finite element program */ /* Copyright (C) 1998-2021 <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 t...
/* $Id$ */ /* * %ISC_START_LICENSE% * --------------------------------------------------------------------- * Copyright 2007-2018, Pittsburgh Supercomputing Center * All rights reserved. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, pro...
#pragma config(Hubs, S1, HTMotor, HTMotor, none, none) #pragma config(Sensor, S1, IRSEEKER2, sensorNone) #pragma config(Sensor, S4, GYRO, sensorI2CHiTechnicGyro) #pragma config(Motor, motorA, , tmotorNXT, openLoop) #pragma config(Motor, motorB, , ...
/* Copyright (c) <NAME>, 1994. */ /* This program is freely distributable without licensing fees and is provided without guarantee or warrantee expressed or implied. This program is -not- in the public domain. */ /* blender renders two spinning icosahedrons (red and green). The blending factors for the tw...
// SPDX-License-Identifier: GPL-2.0-or-later /* * dwmac-sunxi.c - Allwinner sunxi DWMAC specific glue layer * * Copyright (C) 2013 <NAME> * * <NAME> <<EMAIL>> */ #include <linux/stmmac.h> #include <linux/clk.h> #include <linux/module.h> #include <linux/phy.h> #include <linux/platform_device.h> #include <linux/o...
struct buf; struct context; struct file; struct inode; struct pipe; struct proc; struct rtcdate; struct spinlock; struct sleeplock; struct stat; struct superblock; struct pt_entry; // bio.c void binit(void); struct buf *bread(uint, uint); void brelse(struct buf *); void bwrite(struct buf *); // console.c void console...
/* Copyright (c) 2020 <NAME>, <NAME>, <NAME>, and <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, p...
/** * @file gui_w_checkBox.c * @brief basic checkBox implementation * @author <NAME> <<EMAIL>> * @version 0.1b * @date (yyyy-mm-dd) 2013-07-13 * Licence: MIT */ #include "gui_w_checkBox.h" /** * checkBox */ typedef struct { uint8_t /*@null@*/ *str; /*string associated to the check box*/ const uint8_t ...
/** * @file * @brief This file contains the function implementations for the * General-Purpose Input/Output (GPIO) peripheral module. */ /* **************************************************************************** * Copyright (C) 2016 Maxim Integrated Products, Inc., All Rights Reserved. * ...
/* Copyright (c) 1998-2002 by <NAME> Copyright (c) 2003 After X-TT Project, 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 t...
#include "co-test.h" #include <lely/co/csdo.h> #include <lely/co/dcf.h> #include <lely/co/ssdo.h> #include <lely/co/val.h> // A value small enough for a single CAN frame. #define EXP_VALUE "42" // A value too large for a single CAN frame. #define SEG_VALUE "Hello, world!" // A value too large for a single (127 * 7 b...
// Copyright (c) 2016 <NAME> // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distr...
#include "ethernet.h" #include "arp.h" #include "udp.h" #include "eth_device.h" #include "../endian.h" #include "../kheap.h" /* * Receives an Ethernet packet, performs appropriate actions, and replies if necessary * Currently it implements the IPv4 and ARP protocols, and UDP on top of that * INPUTS: buffer: a buffe...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <GL/glut.h> #include "texture.h" #if !defined(GL_VERSION_1_1) && !defined(GL_VERSION_1_2) #define glBindTexture glBindTextureEXT #endif static int the_texture; static int texture_count; static int shrink = 1; void afunc(void) { static int state; ...
#include <arpa/inet.h> #include "cryptoauthlib.h" #include "mongoose.h" #include "tinycbor/cbor.h" #include "edhoc.h" #include "protocol.h" static edhoc_server_session_state edhoc_ctx; uint8_t id_u[64]; uint8_t message2_buf[512]; static char *s_default_address = "udp://:5683"; static int s_sig_received = 0; static...
/* * m_uuidime.c --- Interpret the time field from a uuid. This program * violates the UUID abstraction barrier by reaching into the guts * of a UUID and interpreting it. * * Copyright (C) 1998, 1999 <NAME>. * * %Begin-Header% * Redistribution and use in source and binary forms, with or without * modificatio...
/* pnmedge.c - edge-detection ** ** Copyright (C) 1989 by <NAME>. ** modified for pnm by <NAME>, 1995. ** ** Permission to use, copy, modify, and distribute this software and its ** documentation for any purpose and without fee is hereby granted, provided ** that the above copyright notice appear in all copies and th...
/* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved. * * The information contained herein is property of Nordic Semiconductor ASA. * Terms and conditions of usage are described in detail in NORDIC * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. * * Licensees are granted free, non-transferable use...
// RUN: %clang_cc1 -triple x86_64-apple-darwin %s -emit-llvm -disable-llvm-passes -o - | FileCheck %s typedef float float4 __attribute__((ext_vector_type(4))); typedef short int si8 __attribute__((ext_vector_type(8))); typedef unsigned int u4 __attribute__((ext_vector_type(4))); __attribute__((address_space(1))) floa...
#include <stdio.h> #include <stdlib.h> #include <machine/rtc.h> #include <machine/patmos.h> #include <stdbool.h> #include <math.h> #include "../basic_lib/i2c_master.h" //Barometer variables. uint16_t C[7]; int loop_counter, loop_timer,start=0; uint8_t barometer_counter, temperature_counter; int64_t OFF, ...
/* * Copyright (c) 2019, Intel Corporation * * 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 fo...
/* * keyd - A key remapping daemon. * * © 2019 <NAME> (see also: LICENSE). */ #include "device.h" #include "keys.h" #include <stdio.h> #include <pthread.h> #include <string.h> #include <sys/types.h> #include <dirent.h> #include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <assert.h> #include <errno.h...
/* * Copyright (c) 2016, Alliance for Open Media. All rights reserved * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at w...
/* Written in 2018 by <NAME> and <NAME> (<EMAIL>) * * To the extent possible under law, the author has dedicated all copyright and * related and neighboring rights to this software to the public domain * worldwide. This software is distributed without any warranty. * * See <http://creativecommons.org/publicdomai...
/*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~* ** ** ** This file forms part of the Underworld geophysics modelling application. ** ** ...
/*---------------------------------------------------------------- * chat/server.c - chat server demo for libnet *---------------------------------------------------------------- * libnet is (c) Copyright <NAME> and <NAME> 1997-1999 * * Please look in `docs' for details, documentation and * distribution condit...
/* * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved. * Copyright (c) 2020-2021 Huawei Device Co., 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....
/* $OpenBSD: bha_pci.c,v 1.6 2003/02/28 15:26:23 mickey Exp $ */ /* $NetBSD: bha_pci.c,v 1.16 1998/08/15 10:10:53 mycroft Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME>. * * Redistributi...
/* * SCSI functions used by both the initiator and the target code. */ #include <linux/bug.h> #include <linux/kernel.h> #include <linux/string.h> #include <scsi/scsi_common.h> /* NB: These are exposed through /proc/scsi/scsi and form part of the ABI. * You may not alter any existing entry (although adding new ones...
/* * pcl724.c * Comedi driver for 8255 based ISA and PC/104 DIO boards * * <NAME> <<EMAIL>> */ /* * Driver: pcl724 * Description: Comedi driver for 8255 based ISA DIO boards * Devices: (Advantech) PCL-724 [pcl724] * (Advantech) PCL-722 [pcl722] * (Advantech) PCL-731 [pcl731] * (ADLink) ACL-7122 ...