text
stringlengths
3.08k
10.5k
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the Apache Licens...
#include <stdio.h> #include <stdint.h> #include <string.h> #include <stdlib.h> #include <stdarg.h> #include <setjmp.h> #include <ctype.h> #include <assert.h> #define nil NULL #define nelem(a) (sizeof(a)/sizeof(a[0])) typedef uint32_t u32; typedef struct Legex Legex; enum { MAXSUB = 10, WORDLEN = 256 }; typedef str...
// SPDX-License-Identifier: BSD-2-Clause /* * Copyright (c) 2015-2021, Renesas Electronics Corporation */ #include <io.h> #include <kernel/tee_time.h> #include <kernel/delay.h> #include <kernel/thread.h> #include <tee/tee_svc.h> #include <drivers/qspi_hyper_flash.h> #include <trace.h> #include "qspi_hyper_flash_comm...
/* * File: threadpool.c * * Contains all definitions of threadpool.h functions. * * Author: <NAME> <<EMAIL>> */ #include "threadpool.h" #include <pthread.h> #include <stdlib.h> #include <stdio.h> #include <glib.h> #include <unistd.h> // Job functions job *job_new(void *params, void (* work_func)(void *)) { ...
// Found on hackchina.com // Tidied up a little by <NAME>, http://cplus.about.com // Tidied up even more by <NAME>, http://www.knp.de // This is in the public domain under MIT license #include <stdbool.h> #include <stdio.h> #include <string.h> #include <ctype.h> /* CONFIGURATION ****************/ #define MAX_INPUT...
/***************************************************************************//** * @file app.c * @brief Callbacks implementation and application specific code. ******************************************************************************* * # License * <b>Copyright 2022 Silicon Laboratories Inc. www.silabs.com</b...
/** Copyright (C) 2003-2004 <NAME>, <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, modif...
/* $OpenBSD: wrtvid.c,v 1.7 2007/06/17 00:28:57 deraadt Exp $ */ /* * Copyright (c) 1995 <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 c...
#include "ot_database.h" void ot_database_init(ot_database_t *this, uint8_t *file_path) { if(file_path == NULL) { memcpy(this->file_path, DEFAULT_FILE_PATH, strlen(DEFAULT_FILE_PATH)); } else { if(strlen(file_path) < BIG_STRING_SIZE) { memcpy(this->file_path, file_path, strlen(...
/* * 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 will b...
/* -*- mode: C -*- */ /* IGraph library. Copyright (C) 2010-2012 <NAME> <<EMAIL>> 334 Harvard st, Cambridge MA, 02139 USA 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; eithe...
#include <stdlib.h> #include <stdio.h> #include "mandelbulb.h" #include <models/mandelbulb.vert.h> #include <models/mandelbulb.frag.h> #include <models/mandelbulb.vert.spv.h> #include <models/mandelbulb.frag.spv.h> #include <lib/object.h> #include <lib/linmath.h> #include <render/pipeline.h> struct UniformBlock { ...
/**************************************************************************** * * * ardop_params.h Parameters needed to run ARDOP * * Copyright (c) 2004, Geophysical Institute, University of Alaska Fairbanks * * All rights reserved. ...
/* * This file is part of the uv_hal distribution (www.usevolt.fi). * Copyright (c) 2017 <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 Foundation, version 3. * * This program is di...
#include <stdlib.h> #include <stdint.h> #include <sys/time.h> #include "merkle_tree_test.h" #include "MerkleTree.h" #include "EverCrypt_AutoConfig2.h" static struct timeval timer; void timer_start() { gettimeofday(&timer, NULL); } int timer_tick() { int time_cur_usec = timer.tv_usec; int time_cur_sec = timer.t...
#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <string.h> #include <limits.h> typedef struct { char **riskLevels; int size, capacity; int width, height; } Input; typedef struct { int part1; int part2; } Results; typedef struct { int x, y; } Point; typedef struct Priorit...
// hash_table.c #include <stdlib.h> #include <string.h> #include "hash_table.h" static ht_item HT_DELETED_ITEM = { NULL, NULL }; static ht_item* ht_new_item(const char* k, const char* v) { ht_item* i = malloc(sizeof(ht_item)); i->key = strdup(k); i->value = strdup(v); return i; } static void ht_del...
/* * Samba Unix/Linux SMB client library * * Copyright (C) <NAME> 2011 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later ...
// This file is part of peakAnalysis, http://github.com/alexjgriffith/peaks/, // and is Copyright (C) University of Ottawa, 2014. It is Licensed under // the three-clause BSD License; see doc/LICENSE.txt. // Contact: <EMAIL> // Generate Heights Writen in C // <NAME> // June 6 // Removes chrY chrX and chrM #ifndef _...
/* * Copyright (C) 2017 XRADIO TECHNOLOGY 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. Redistributions of source code must retain the above copyright * notice,...
#include <univLib.h> #include <init.h> const char* COLOR[16] = { "White", "Yellow","Blue","Red","Violet","Orange","Black Green","Dark Ochre", "Black", "Yellow","Blue","Red","Violet","Orange","Black Green","Dark Ochre" }; const char* SnooCOLOR[8] = { "White","Yellow" , "Black Green" , "Brown" ,"Blue" ,"Violet"...
/* File: wrkspace.c COPYING: Full text of the copyrights statement at the bottom of the file Project: WW Started: 20th November, 1998 Descrition: Organises work space files storage. This includes file-in-memory storage and MRU list storage. */ #include "global.h" #include "wrkspace.h" #include "memory.h" #includ...
/* Title: clique driven graph generator file: clique.c Does: inputs the user for an amount of variously-sized cliques and places those cliques randomly in the graph. A fair number of cliques is required since multiple cliques may share multiple vertices and there is no guarantee all vertices will be chosen ...
#define NULL ((void*)0) typedef unsigned long size_t; // Customize by platform. typedef long intptr_t; typedef unsigned long uintptr_t; typedef long scalar_t__; // Either arithmetic or pointer type. /* By default, we understand bool (as a convenience). */ typedef int bool; #define false 0 #define true 1 /* Forward d...
#include "interfaces/List.h" #include "interfaces/Notifier.h" #include "interfaces/View.h" #include <assert.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // The Multiton View instanceMap. static Map *instanceMap; // mutex for instanceMap static pthread_rwlock_t view_mutex; // mut...
/* * 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...
/* * 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...
#include <io/enc28j60.h> #include <io/gpio.h> #include <io/spi.h> #include <kernel/sched.h> #include <kernel/time.h> #include <malloc.h> #include <memory.h> #include <stdbool.h> #define SIZEOF_ARR(x) (sizeof(x) / sizeof(*(x))) #define SHORT_DELAY 1 #define LONG_DELAY 10 #define DELAY_PORTION 0.99 #define GREEN_L...
/* * MipsCo register stuff */ #include "defs.h" #include "fns.h" #define STARTSYM "_main" #define FRAMENAME ".frame" extern ulong mipsfindframe(ulong); extern void mipsctrace(int); extern void mipsfpprint(int); extern void mipsexcep(void); extern int mipsfoll(ulong, ulong*); extern void mipsprintins(Map*, char, i...
/* * fs/supper.c * * This file is part of JunOS Operating System. * * Copyright (C) 2016, <NAME> <<EMAIL>> * Licensed under MIT, http://opensource.org/licenses/MIT. */ #include <junos/junos.h> extern struct fs_operation minix_fs_operation; static struct super super_table[NR_SUPER]; stati...
#define _POSIX_C_SOURCE 200809L #include <assert.h> #include <errno.h> #include <mrsh/hashtable.h> #include <mrsh/parser.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "shell/job.h" #include "shell/shell.h" #include "shell/process.h" void mrsh_function_destroy(struct mrsh_function *fn) { if (...
/* * Copyright (c) 2013 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed...
#include <stdio.h> #include <stdlib.h> #include <string.h> struct shoes{ char brand[10]; int stock; int size; int price; int sold; struct shoes* next; }; typedef struct shoes SHOES; int search_shoes(SHOES* abc) { SHOES* tmp=abc; char brand[10]; in...
/* * Vestigial Segmented Virtual Memory. * To do: * dynamic allocation and free of descriptors; * IST should perhaps point to a different handler; * user-level descriptors (if not dynamic). */ #include "u.h" #include "../port/lib.h" #include "mem.h" #include "dat.h" #include "fns.h" #include "amd64.h" #include "...
/* Part of SWI-Prolog Author: <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (c) 1998-2014, University of Amsterdam All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that t...
#include "bitmaps.h" #include <sys/stat.h> #include <errno.h> #include "fileutils.h" #include "logging.h" typedef struct __attribute__((packed)) { char header_field[2]; uint32_t file_size; char reserved1[2]; char reserved2[2]; uint32_t data_offset; } bitmap_file_header; typedef struct { char file_header[...
/* Copyright (c) 2020 <NAME> */ #include "BSP_SPI.h" #include "config.h" #include "common.h" #include "simulator_conf.h" #include <unistd.h> #include <sys/file.h> #define CSV_SPI_BUFFER_SIZE 256 // Path relative to the executable static const char* read_file = GET_CSV_PATH(SPI_R_CSV_FILE); static const char* wri...
/* grTOGL5.c - * * Copyright 2003 Open Circuit Design, Inc., for MultiGiG Ltd. * * Manipulate the programable cursor on the graphics display. * */ #include <stdio.h> #include <X11/Xlib.h> #include <GL/gl.h> #include <GL/glx.h> #include "tcltk/tclmagic.h" #include "utils/magic.h" #include "utils/styles.h" #incl...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <sys/un.h> #include <unistd.h> #include "color.h" #define SOCKET_NAME "/tmp/DemoSocket" #define BUFFER_SIZE 128 #define MAX_CLIENT_SUPPORTED 32 int monitored_fd_set[MAX_CLIENT_SUPPORTED]; int client_result[MAX_CLIENT_SUPPORT...
/* ------------------------------------------ * Copyright (c) 2017, Synopsys, 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 copyr...
/* Author: <NAME> Project 4: Amazing Sort Assignment Date: 2/27/18 Filename: list.c */ #include <stdio.h> #include <stdlib.h> #include <assert.h> #include "list.h" typedef struct node { int data; // the info in each node struct list* next; // the next node struct list* prev; //...
/* Simpleaudio Python Extension Copyright (C) 2015, <NAME> MIT License (see LICENSE.txt) */ #include "simpleaudio.h" #include <AudioToolbox/AudioToolbox.h> /* this should be replaced by whatever constant Apple has designated */ #define SUCCESS (0) #define NUM_BUFS (2) #define MAC_EXCEPTION(my_msg, code, str_ptr) \ ...
#include "snapconfig.h" /* crdsysr5.c: Reference frame function definition for 2d lat/lon conversion - still uses 7 param transformation for height conversion. Uses the griddata functions for handling the grid based conversion. $Log: crdsysr5.c,v $ Revision 1.3 2004/04/22 02:34:21 ccrook Setting up...
/* ** wall.c for view in /home/arbona/tek1/MUL/wolf3d ** ** Made by <NAME> ** Login <<EMAIL>> ** ** Started on Thu Jan 5 21:11:34 2017 <NAME> ** Last update Wed Jan 18 15:23:08 2017 <NAME> */ #include <SFML/System/Vector2.h> #include "view/view.h" #include "view/framebuffer.h" #include "view/texture/texture.h" #inc...
/* ode-initval/gear2.c * * Copyright (C) 1996, 1997, 1998, 1999, 2000 <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 Foundation; either version 2 of the License, or (at * your option) any...
/* * Copyright (c) 2016-2017 Nordic Semiconductor ASA * Copyright (c) 2018 Intel Corporation * Copyright (c) 2019 <NAME>, LLC * * SPDX-License-Identifier: Apache-2.0 */ #include <soc.h> #include <clock_control.h> #include <drivers/clock_control/nrf_clock_control.h> #include <system_timer.h> #include <sys_clock.h...
/* * Copyright (c) 2016 Linaro Limited * * SPDX-License-Identifier: Apache-2.0 */ #include <device.h> #include <init.h> #include <kernel.h> #include <pinmux.h> #include <soc.h> #include <sys_io.h> #include <gpio/gpio_cmsdk_ahb.h> #include "pinmux/pinmux.h" /** * @brief Pinmux driver for ARM V2M Beetle Board * ...
/* * join.c * * Created on: 7-Oct-2014 * Author: Dheeraj */ #include "../include/join.h" /* * Function: Join() * ------------------------ * implements natural join * * argv[0] = “join” * argv[1] = result relation * argv[2] = source relation 1 * argv[3] = attribute name 1 * argv[4] = source relat...
/*@ begin PerfTuning ( def build { arg build_command = 'gcc -O1 -fopenmp '; arg libs = '-lm -lrt'; } def performance_counter { arg repetitions = 10; } def performance_params { param T1_I[] = [1,16,32,64,128,256,512]; param T1_J[] = [1,16,32,64,128,256,512]; param T1_Ia[] =...
/* Module: get_files.c Version Developer Date Change ------- --------------- ------- ----------------------- 1.7 <NAME> 17Jul04 Use unique temporary file for unzipping 1.6 <NAME> 01Jul04 Add path to name if using "./" construct. 1.5 <NAME> 25Aug03 Added stat...
/* Copyright 2018 osMUD * * 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...
/** * \file * * \brief SAM Frequency Meter (FREQM) Driver * * Copyright (C) 2015 Atmel Corporation. All rights reserved. * * \asf_license_start * * \page License * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are me...
#include "io.h" #include "irq.h" #include "mm.h" #include "sched.h" #include "task.h" #include "util.h" #include "string.h" #include "syscall.h" char sys_read(){ uart_read_enqueue(current_task); unsigned long elr, sp_el0, spsr_el1; __asm__ volatile("mrs %0, elr_el1" : "=r"(elr)); __asm__ volatile("mrs %0, sp_e...
/* $RCSfile$ Copyright (C) 1996-1997 Id Software, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program i...
/* * Copyright 2018-present MongoDB, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
/*D********************************************************* * Modul: GRAPHIC gwgstat.c * * Create graphic status line containing: * -active-region, coordinates * Clear status line function * * Copyright: yafra.org, Basel, Switzerland *************************...
/* * Copyright (C) 2005-2015 <NAME> * http://kodi.tv * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later ver...
#include <pocketsphinx.h> #include <stdio.h> #include <string.h> #include "pocketsphinx_internal.h" #include "test_macros.h" static const mfcc_t prior[13] = { FLOAT2MFCC(37.03), FLOAT2MFCC(-1.01), FLOAT2MFCC(0.53), FLOAT2MFCC(0.49), FLOAT2MFCC(-0.60), FLOAT2MFCC(0.14), FLOAT2MFCC(-0.05), FLOAT2MFCC(0.25), F...
/* * VICE -- Video Instructions Chess Engine * (C) 2013 <NAME> * * This program is free software. It comes without any warranty, to * the extent permitted by applicable law. You can redistribute it * and/or modify it under the terms of the Do What The Fuck You Want * To Public License, Version 2, as published by...
#include <stdint.h> #include "bp_utils.h" #define QUEUE_LENGTH 32 #ifndef NUM_CORES #define NUM_CORES 8 #endif #define NUM_READERS (NUM_CORES/2) #define NUM_WRITERS (NUM_CORES/2) #define NUM_OPS 10 // this is just a circular queue // we dequeue at the head index and enqueue from the tail index typedef struct { ...
/* * Copyright (c) 2015 Kaprica Security, 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, mer...
#include "demo.h" // assign to r/g/b the minimum permutation summing to total, inc total by step static void minimize(unsigned *total, unsigned *r, unsigned *g, unsigned *b, unsigned step){ *b = *r >= 256 ? 256 : *r + step; *r = (*total += step) - (*b + *g); } // derive the next color based on current state. *'to...
/* * Copyright 2019 University of Washington, Max Planck Institute for * Software Systems, and The University of Texas at Austin * * 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 withou...
// File: crn_core.h // See Copyright Notice and license at the end of inc/crnlib.h #pragma once #if defined(WIN32) && defined(_MSC_VER) #pragma warning (disable: 4201) // nonstandard extension used : nameless struct/union #pragma warning (disable: 4127) // conditional expression is constant #pragma warning (d...
/* $Id$ */ /* * Copyright (c) 2004-2011 <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, th...
/* * Copyright 2019 Advanced Micro Devices, 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, m...
#include "global.h" #include "infer_edges.h" #include "db_node.h" #include "db_graph.h" static inline void _add_edge_to_colours(hkey_t next_hkey, const Covg *covgs, Edges *edges, Edges new_edge, cons...
/* * Copyright (c) 1996-2001 <NAME>. * See README file for details. * * * Multivariate integration of a vector-valued function * using Simpson's rule. */ #include <math.h> #include <stdio.h> #include "mutil.h" extern void setzero(); static double M[(1+MXIDIM)*MXIDIM*MXIDIM]; /* third order corners */ vo...
#include "Texture.h" #include <stdlib.h> #include <memory.h> #include <math.h> #include <libpng/png.h> #include <MathUtils.h> int TTexture_LoadFromFile(struct TTexture* texture, const char* filePath, int convertToLinear) { int ret_val = 1; char* buffer = NULL; size_t buffer_size = 0; FILE* file_in = fop...
#include "tinyfx.h" #include "demo_util.h" #include <math.h> struct { tfx_program prog; tfx_program sky; tfx_uniform world_from_local; // inverse(p*v) tfx_uniform screen_from_view; tfx_uniform view_from_world; tfx_uniform world_from_screen; tfx_uniform sun_params; tfx_buffer grid; int grid_vertices; float as...
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <unistd.h> char* uuidtostr(uint8_t uuid[16], char* buf) { // Reorder uint8_t tmp[16]; memcpy(tmp, uuid, 10); // From big-endian to little-endian tmp[8] = uuid[9]; tmp[9] = uuid[8]; t...
/* * DMX512Receiver.c * * Created: 25/01/2018 14:59:55 * Author : marionse */ #include <string.h> // include micro abstraction layer #include "Mic/mic_micro.h" #include "Drv/drv_timer.h" #include "Drv/drv_event.h" #include "Drv/drv_led.h" #include "Srv/srv_zb_mfg.h" #include "Drv/drv_em260.h" #include "app_pro...
/* $Id: etchosts.c,v 1.14 2005/08/03 16:14:53 kamada Exp $ */ /* * Copyright (C) 2003-2005 WIDE Project. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source cod...
// SPDX-License-Identifier: GPL-2.0 /* * Test that KVM_SET_BOOT_CPU_ID works as intended * * Copyright (C) 2020, Red Hat, Inc. */ #define _GNU_SOURCE /* for program_invocation_name */ #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/ioctl.h> #include "test_util.h" #includ...
//------------------------------------------------------------------------------ // GB_stringify_identity: return string or enum for identity value //------------------------------------------------------------------------------ // SuiteSparse:GraphBLAS, <NAME>, (c) 2021, All Rights Reserved. // SPDX-License-Identifie...
/* * Copyright (C) 2018 Intel Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include <types.h> #include <acrn_hv_defs.h> #include <page.h> #include <e820.h> #include <mmu.h> #include <multiboot.h> #include <logmsg.h> /* * e820.c contains the related e820 operations; like HV to ge...
/* * MikroSDK - MikroE Software Development Kit * Copyright© 2020 MikroElektronika d.o.o. * * 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...
/*===================================================================*/ /* */ /* Mapper 33 (Taito TC0190/TC0350) */ /* */ /*==============================...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <unistd.h> // select #include <sys/time.h> // gettimeofday #include "lssdp.h" /* ssdp-notify * * 1. create SSDP socket with port 1900 * 2. select SSDP socket with timeout 0.5 seconds * - when select return value > 0, in...
/* * spu_save.c * * (C) Copyright IBM Corp. 2005 * * SPU-side context save sequence outlined in * Synergistic Processor Element Book IV * * 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 ...
/*- * BSD LICENSE * * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source cod...
// SPDX-License-Identifier: GPL-2.0-or-later /* * Scatter-Gather buffer * * Copyright (c) by <NAME> <<EMAIL>> */ #include <linux/slab.h> #include <linux/mm.h> #include <linux/vmalloc.h> #include <linux/export.h> #include <sound/memalloc.h> #include "memalloc_local.h" struct snd_sg_page { void *buf; dma_addr_t ...
/* The MIT License (MIT) Copyright (c) 2014 UnicornRaceEngineering 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, modif...
/* Copyright (c) 2015, 2015, Oracle and/or its affiliates. All rights reserved. The Universal Permissive License (UPL), Version 1.0 Subject to the condition set forth below, permission is hereby granted to any person obtaining a copy of this software, associated documentation and/or data (collectively the "Software")...
/* Copyright (C) 2013-2016, The Regents of The University of Michigan. All rights reserved. This software was developed in the APRIL Robotics Lab under the direction of <NAME>, <EMAIL>. This software may be available under alternative licensing terms; contact the address above. Redistribution and use i...
/* * Copyright 2010-2016, Tarantool AUTHORS, please see AUTHORS file. * * 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 lis...
#include "sorted_int_list.h" #include "pp_variable.h" #include "variable.h" #include "config.h" #include "scotty.h" #include "fprint.h" #include "strdup.h" #include "util.h" #include "defs.h" #include "hash.h" #include "obs.h" #include "io.h" #include <ctype.h> #include <stdio.h> #include <string.h> #include <assert.h...
#include <linux/skbuff.h> #include <linux/netdevice.h> #include <linux/if_vlan.h> #include <linux/netpoll.h> #include "vlan.h" bool vlan_do_receive(struct sk_buff **skbp) { struct sk_buff *skb = *skbp; u16 vlan_id = skb->vlan_tci & VLAN_VID_MASK; struct net_device *vlan_dev; struct vlan_pcpu_stats *rx_stats; vla...
#include "create_tasks.h" #include <stdio.h> //FreeRTOS Includes #include "FreeRTOS.h" #include "task.h" //Helper Includes #include "oled_helpers.h" #include "stationary_tasks.h" #include "launch_tasks.h" #include "return_tasks.h" #include "my_uart.h" #include "init_interfaces.h" #define STACK_SIZE 200 // List of t...
/****************************************************************************** Copyright (c) 1992, 1995, 1996 Xerox Corporation. All rights reserved. Portions of this code were written by <NAME>, aka ghond. Use and copying of this software and preparation of derivative works based upon this software are permi...
/* * Copyright © 2009 Intel 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, merge, pub...
/* The MIT License (MIT) * * Copyright (c) 2012, <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, m...
/* * blogc: A blog compiler. * Copyright (c) 2008-2010 <NAME> <<EMAIL>> * Copyright (c) 2014-2019 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction...
/* ======================================================================== * Copyright 2008 University of Washington * * 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...
#include "uart.h" void UART_Init(uint32_t baudrate) { GPIO_InitTypeDef PORT; // U(S)ART init #if _UART_PORT == 1 RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA | RCC_APB2Periph_USART1,ENABLE); #elif _UART_PORT == 2 RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA,ENABLE); RCC_APB1PeriphClockCmd(RCC_APB1Perip...
/* * enno_api_mqtt_wrapper.c * * Created on: 2015年11月20日 * Author: v-chawei */ #include "pb_decode.h" #include "sitewhere.h" #include "sitewhere.pb.h" #include "enno_api.h" //static iot_disconnect_handler clientDisconnectHandler; //warning defined but not used /** * @brief Communication Protocol Type ...
#include <stdio.h> #include <math.h> #ifndef M_PI #define M_PI 3.14159265358979323846 /* pi */ #endif void newton_array(const int n_elements, const double manom[], const double ecc[], const double tol, const int max_iter, ...
#include "sds.h" #include <malloc.h> #include <stdio.h> sds *newSds(void) { sds *s = (sds *)malloc(sizeof(sds)); s->length = SDS_INIT_SIZE; s->used = 0; s->str = (char *)malloc(SDS_INIT_SIZE * sizeof(char)); s->str[0] = '\0'; return s; } sds *newCopySds(char *str) { sds *s = (sds *)malloc(...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <stdbool.h> #include "apu.h" #include "snes.h" #include "spc.h" #include "dsp.h" static const uint8_t bootRom[0x40] = { 0xcd, 0xef, 0xbd, 0xe8, 0x00, 0xc6, 0x1d, 0xd0, 0xfc, 0x8f, 0xaa, 0xf4, 0x8f, 0xbb, 0xf5, 0x78, 0xcc, 0xf...
/* GIO - GLib Input, Output and Streaming Library * * Copyright (C) 2006-2007 Red Hat, Inc. * Copyright (C) 2008 Novell, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; eith...