text
stringlengths
5.8k
28.2k
/* Copyright (C) 2008 <NAME> */ /* All rights reserved. */ /* This file was originally part of spglib. */ /* 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 th...
/***************************************************************************** * md5.c: not so strong MD5 hashing ***************************************************************************** * Copyright (C) 2004-2005 the VideoLAN team * $Id: cb57f7b6522df0960a924193cfca438c03a92521 $ * * Authors: <NAME> <<EMAIL>...
// Meridian 59, Copyright 1994-2012 <NAME> and <NAME>. // All rights reserved. // // This software is distributed under a license that is described in // the LICENSE file that accompanies it. // // Meridian is a registered trademark. /* Blakston .bof (blakod object format) dump utility */ #include <stdio.h> #include <...
/************************************************************************* * * registry.c * * WinStation Registry Routines * * Copyright Microsoft Corporation, 1998 * * *************************************************************************/ /* * Includes */ #include "precomp.h" #pragma hdrstop ...
/************************************************************************** * * Copyright (C) 2016 <NAME> <<EMAIL>> * * 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 S...
#include "config.h" #include "libopenbios/bindings.h" #include "libc/byteorder.h" #include "libc/vsprintf.h" #include "drivers/drivers.h" #include "libopenbios/ofmem.h" #include "escc.h" /* ****************************************************************** * serial console functions * ********...
/* This project is based on the MIPS Assembler of CS61C in UC Berkeley. The framework of this project is been modified to be suitable for RISC-V in CS110 course in ShanghaiTech University by <NAME> in March 2019. Updated by <NAME> and <NAME> in March 2021. */ #include <stdio.h> #include <stdlib.h> #include <s...
/* * @Author: muggle * @Date: 2022-02-26 14:36:12 * @LastEditors: muggle * @LastEditTime: 2022-03-06 16:15:17 * @Description: SPI驱动 */ #include <string.h> #include "oled.h" #include "oled_font.h" #include "delay.h" #include <stdlib.h> #include <stdarg.h> #include <stdio.h> #include <string.h> #define OLED_CMD 0...
/* filename: azlan.c This file implements a driver for simple eigenvalue problem using pLANSO and Aztec. */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include "mpi.h" #include "az_aztec.h" /* a macro function to convert between Fortran and C function name */ #if defined(append_) #define F77_PLA...
/* RTP Retransmission queue element for GStreamer * * gstrtprtxqueue.c: * * Copyright (C) 2013 <NAME> <<EMAIL>> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * versio...
#include <string.h> #include <stdint.h> #include "SABER_indcpa.h" #include "poly.h" #include "pack_unpack.h" #include "randombytes.h" #include "fips202.h" #include "SABER_params.h" #include "NTT.h" const int mul_table[64] = {9259893, -9259893, 7725652, -7725652, -741305, 741305, 5430861, -5430861, 8941483, -8941483, ...
/* * This file is part of the coreboot project. * * Copyright (C) 2008-2009 coresystems GmbH * 2012 secunet Security Networks AG * * 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 Found...
// This file is free software, distributed under the BSD license. #include "advent.h" //{{{ Adventure vocabulary --------------------------------------------- struct wac { char aword [14]; uint16_t acode; }; enum { MOTION_WORD, OBJECT_WORD, ACTION_WORD, MAGIC_WORD }; #define WORD_BASE(t) (t*1000) #...
/** Mouse Game Copyright 2021 <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...
#pragma lib "libhtml.a" #pragma src "/sys/src/libhtml" /* UTILS */ extern uchar* fromStr(Rune* buf, int n, int chset); extern Rune* toStr(uchar* buf, int n, int chset); /* Common LEX and BUILD enums */ /* Media types */ enum { ApplMsword, ApplOctets, ApplPdf, ApplPostscript, ApplRtf, ApplFramemaker, ApplMsexc...
/* Copyright (c) 2008, 2009 The Board of Trustees of The Leland Stanford * Junior University * * We are making the OpenFlow specification and associated documentation * (Software) available for public use and benefit with the expectation * that others will use, modify and enhance the Software and contribute * th...
/* dsa.c - DSA signature algorithm * Copyright (C) 1998, 1999, 2000, 2003, 2006 Free Software Foundation, Inc. * * This file is part of GnuPG. * * GnuPG 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;...
/* lzopio.c - decompression support for lzop */ /* * GRUB -- GRand Unified Bootloader * Copyright (C) 2011 Free Software Foundation, Inc. * * GRUB 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 Found...
/* Bacula(R) - The Network Backup Solution Copyright (C) 2000-2018 <NAME> The original author of Bacula is <NAME>, with contributions from many others, a complete list can be found in the file AUTHORS. You may use this file and others of this release according to the license defined in the LICENSE ...
// // Copyright(C) 2005-2014 <NAME> // Copyright(C) 2014 <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 later version. /...
/** ****************************************************************************** * File Name : USART.c * Description : This file provides code for the configuration * of the USART instances. ****************************************************************************** ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/stat.h> #include "debug.h" #include "domains.h" #include "net.h" #include "objects.h" #include "params.h" // verbose, do_specific_domain #inc...
// // LISPu : micro LISP // // 2021-02-07 NAKAUE,T // CP/M with z88dk用 // #include <ctype.h> #include <malloc.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // atom領域の探索 // 引数: // atom_pool : atom領域 // str : 探す文字列 // // 見つかればatomを示すポインタを返す // 見つからなければNULLを返す // 空文字列("")を渡すと領域の末尾...
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include <aws/iotdevice/private/network.h> #include <aws/common/hash_table.h> #include <aws/common/string.h> #include <arpa/inet.h> #include <errno.h> #include <ifaddrs.h> #include <linux/if_link.h> ...
#include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <unistd.h> #include <dirent.h> #include <string.h> #include <sys/stat.h> #include <ctype.h> #define VERSION "1.1.0" // current version of the project #define LEN_FLAG_ARR 3 // number of flags #define LEN_ARGS_ARR LEN_FLAG_ARR...
#include "postgres.h" #include <float.h> #include "ivfflat.h" #include "miscadmin.h" /* * Initialize with kmeans++ * * https://theory.stanford.edu/~sergei/papers/kMeansPP-soda.pdf */ static void InitCenters(Relation index, VectorArray samples, VectorArray centers, float *lowerBound) { FmgrInfo *procinfo; Oid...
static char help[] = "Structured-grid minimal surface equation (MSE) in 2D. Option prefix mse_.\n" "Equation is\n" " - div ( (1 + |grad u|^2)^q grad u ) = 0\n" "on the unit square [0,1]x[0,1] subject to Dirichlet boundary\n" "conditions u = g(x,y). Power q defaults to -1/2 (i.e. MSE) but is adjustable.\n" "Catenoid ...
#ifndef VIOLET_COLOR_H #define VIOLET_COLOR_H typedef union { struct { u8 r, g, b, a; }; struct { u8 d[4]; }; struct { u32 val; }; } color_t; typedef union { struct { r32 r, g, b, a; }; struct { r32 d[4]; }; } colorf_t; /* Unfortunately, for MSVC compliance, we need 2 variants for color constants. * 'gi_' stan...
/** * @file main.c * * @author * <NAME> (<EMAIL>) * <NAME> (<EMAIL>) * GEPID - Grupo de Pesquisa em Cultura Digital (http://gepid.upf.br/) * Universidade de Passo Fundo (http://www.upf.br/) * * @copyright 2018-2019 <NAME>, <NAME> * * @brief Main file for the MYB project for the ESP-IDF. */ #include <stdio...
#include "license_pbs.h" /* See here for the software license */ #include <netinet/in.h> /* in_addr_t */ #include "attribute.h" /* attropl, attrl */ #include "libpbs.h" /* job_file */ #include "batch_request.h" /* batch_request */ #include "tm_.h" /* tm_task_id, tm_node_id, tm_event_t */ #include "tm.h" /* tm_roots */...
/* include/f/qjet.h ** ** This file is in the public domain. */ /** Tier 1. **/ u3_noun u3ya_add(u3_noun); u3_noun u3ya_dec(u3_noun); u3_noun u3ya_div(u3_noun); u3_noun u3ya_gte(u3_noun); u3_noun u3ya_gth(u3_noun); u3_noun u3ya_lte(u3_noun); u3_noun u3ya_lth(u3_noun); u3_noun u3ya_mo...
#include "config.h" #include <memory.h> #include "hash.h" #include "util.h" #define ALLOW_UNALIGNED_READS 1 #define SPOOKY_CONST 0xdeadbeefdeadbeefLL #define SPOOKY_NUMVARS 12 #define SPOOKY_BLOCKSIZE (8 * SPOOKY_NUMVARS) #define SPOOKY_BUFSIZE (2 * SPOOKY_BLOCKSIZE) static inline void mix (const uint64_...
#include <lib9.h> #include <styx.h> #include "dat.h" #include "fns.h" #include "flash.h" #include "flashptab.h" #include "flashstream.h" #include "bpi.h" #include "screen.h" #include "error.h" extern FlashMap flashmap[]; extern int nflash; static FlashInfo *flashinfo; static void flash_flush(FlashInfo *f) { if(f-...
/* http://www.digitalmunition.com Moded by KF (kf_lists[at]digitalmunition[dot]com) to exploit the Widcomm Overflows from PenTest. http://www.pentest.co.uk/documents/ptl-2004-03.html */ /* * UNrooted.net example code * * Most of these functions are just rips from the Affix Bluetooth project OBEX * progra...
#include <stdlib.h> #include <stdint.h> #include <string.h> static inline void *OPENSSL_memcpy(void *dst, const void *src, size_t n) { if (n == 0) { return dst; } return memcpy(dst, src, n); } static inline uint32_t CRYPTO_bswap4(uint32_t x) { x = (x >> 16) | (x << 16); x = ((x & 0xff00ff00) >> 8) | ((...
/* * Open Surge Engine * nanocalcext.c - nanocalc extensions * Copyright (C) 2010-2012 <NAME> <alemartf(at)gmail(dot)com> * http://opensnc.sourceforge.net * * 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 S...
// asteroids.c #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <time.h> #include <string.h> #include <assert.h> #include <stdbool.h> #include <math.h> #define SDL_MAIN_HANDLED #include <SDL2/SDL.h> #include "libvecdisp.h" #define MS_PER_UPDATE 16 // ses the time resolution of the game logic #def...
/* * This file is part of the optimized implementation of the Picnic signature scheme. * See the accompanying documentation for complete details. * * The code is provided under the MIT license, see LICENSE for * more details. * SPDX-License-Identifier: MIT */ #ifdef HAVE_CONFIG_H #include <config.h> #endif...
/**************************************************************************** Copyright (C) 2014 Telechips, Inc. ****************************************************************************/ #include <debug.h> #include <stdlib.h> #include <string.h> #include <reg.h> #include <platform/iomap.h> #include <dev/fbcon.h...
/*$Header: /data/petsun4/data1/src_solaris/actmapf_4dfp/RCS/conc.c,v 1.10 2011/04/12 22:21:08 avi Exp $*/ /*$Log: conc.c,v $ * Revision 1.10 2011/04/12 22:21:08 avi * conc_seek() and better modularization of conc_open() * * Revision 1.9 2007/05/04 01:19:39 avi * picky fixes to keep gcc -Wall quiet * * Revi...
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2000-2001 Silicon Graphics, Inc. All rights reserved * * This implemenation of synchronization variables is heavily based...
/**************************** Module Header ********************************\ * Module Name: syscmd.c * * Copyright (c) 1985 - 1999, Microsoft Corporation * * System Command Routines * * History: * 01-25-91 IanJa Added handle revalidation \*********************************************************************...
#include "reservation_station.h" #include "inst_list.h" #include "graph.h" #include "hashset.h" #include "xmlParser.h" bool *compute_needed_instructions(graph_t *cfg, int branch, single_list_t *list) { bool *needed = calloc(cfg->size, sizeof(bool)); if (branch == -1) { for (int i = 0; i < cfg->size; +...
/* Copyright (C) 2003, 2004, 2005, 2006, 2008, 2011 <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 Foundation, either version 3 of the License, or (at your option) any later version...
/*- * Copyright (c) 2016 <NAME> <<EMAIL>> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of co...
/*Copyright (c) 2015, EmbeddedCentric.com All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the follo...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
#include <stdint.h> #include <errno.h> #include <osmocom/gsm/gsm_utils.h> #include <osmo-bts/gsm_data.h> #include <osmo-bts/logging.h> #include <osmo-bts/measurement.h> #include <osmo-bts/scheduler.h> /* Tables as per TS 45.008 Section 8.3 */ static const uint8_t ts45008_83_tch_f[] = { 52, 53, 54, 55, 56, 57, 58, 5...
#include "collision.h" #include <math.h> #include <string.h> #include <inttypes.h> #include <stdio.h> ex_plane_t ex_plane_new(const vec3 a, const vec3 b) { ex_plane_t plane; memcpy(plane.origin, a, sizeof(vec3)); memcpy(plane.normal, b, sizeof(vec3)); plane.equation[0] = b[0]; plane.equation[1] = b[1]; pla...
/*! \file bcmltcmd.c * * Common functions for physical and logical table access commands in CLI. */ /* * Copyright: (c) 2018 Broadcom. All Rights Reserved. "Broadcom" refers to * Broadcom Limited and/or its subsidiaries. * * Broadcom Switch Software License * * This license governs the use of the accompanyi...
/* * Copyright (c) 2014-2018 Cesanta Software Limited * All rights reserved * * Licensed under the Apache License, Version 2.0 (the ""License""); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
#include <yajl/yajl_parse.h> #include "ajv_state.h" #include "yajl_interface.h" #include "api/ajv_parse.h" #include "orderly_json.h" #include "ajv_schema.h" #include <string.h> #include <stdio.h> #include <assert.h> void ajv_state_push(ajv_state state, const ajv_node *n) { ajv_node_state s = ajv_alloc_node_state(sta...
#include "MSPd.h" #include "fftease.h" #if MSP void *pvoc_class; #endif #if PD static t_class *pvoc_class; #endif #define OBJECT_NAME "pvoc~" typedef struct _pvoc { #if MSP t_pxobject x_obj; #endif #if PD t_object x_obj; float x_f; #endif int R; int N; int N2; int Nw; int Nw2; ...
/***************************************************************************/ /* */ /* Copyright (C) 1991-1998 <NAME> and <NAME> */ /* See file "README" for information about commercial use of this system */ /* ...
/* * Author: <NAME> * Modified from: Tasanakorn's code at * https://github.com/tasanakorn/rpi-mmal-demo * * Created on 19/08/2013 */ #include <stdio.h> #include <stdlib.h> // #include <opencv2/core/core_c.h> // #include <opencv2/highgui/highgui.hpp> // #include <opencv2/imgproc/imgproc.hpp> #include <cv.h> ...
#define _POSIX_C_SOURCE 200809L #include <string.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> typedef int (*avl_comparar_clave_t) (const char *, const char *); typedef void (*avl_destruir_dato_t) (void *); typedef struct nodo nodo_t; /* -------------------------------- ESTRUCTURAS --------------...
/* mkfclk.f -- translated by f2c (version 19980913). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static integer c__1 = 1; static integer c__33 = 33; /* $Procedure MKFCLK ( MaKe a Fake sCLK kernel ) */ /* Subrouti...
#include "stdio.h" #include "inv_mpu.h" #include "inv_mpu_dmp_motion_driver.h" #include "mpuI2C.h" #include "mpu6050.h" #include "string.h" //for reset buffer #define PRINT_ACCEL (0x01) #define PRINT_GYRO (0x02) #define PRINT_QUAT (0x04) #define ACCEL_ON (0x01) #define GYRO_ON (0x02) #define MOTION (0) #define NO_MOTI...
#include <curses.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include "graph.h" #define mod(a, b) (((a)%(b) < 0) ? (((a)%(b)) + (b)) : ((a)%(b))) // Game size #define WIDTH 30 #define HEIGHT 15 // Game over size #define WIDTH_GAME_OVER 50 #define HEIGHT_GAME_OVER 6 // Help size #define WIDTH_HELP...
// SPDX-License-Identifier: GPL-2.0+ /* * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc. * All rights reserved. * * Purpose: Handle USB control endpoint * * Author: <NAME> * * Date: Mar. 29, 2005 * * Functions: * vnt_control_out - Write variable length bytes to MEM/BB/MAC/EEPROM * vnt_control_in...
/* * ----------------------------------------------------------------- * $Revision: 4272 $ * $Date: 2014-12-02 11:19:41 -0800 (Tue, 02 Dec 2014) $ * ----------------------------------------------------------------- * Programmer(s): <NAME> and <NAME> @ LLNL * -------------------------------------------------------...
/* sim_elf.c Loads a .elf file, extract the code, the data, the eeprom and the "mcu" specification section, also load usable code symbols to be able to print meaningful trace information. Copyright 2008, 2009 <NAME> <<EMAIL>> This file is part of simavr. simavr is free software: you can redistribute it and/...
#include "elephant_200.h" inline static void __attribute__((always_inline)) memset4(uint32_t *arr, const uint32_t value, const uint32_t size) { for (uint32_t i = 0; i < size; ++i) { arr[i] = value; } } inline static uint8_t __attribute__((always_inline)) rotl(const uint8_t b) { return (b << 1) | (...
/* * Copyright 2019 International Business Machines * * 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 applicab...
#include "rtree.h" // // struct $rtree 结构辅助操作宏 // r : 当前结点 // p : 父结点 // c : 当前结点颜色, 1 is black, 0 is red // #define rtree_parent(r) ((struct $rtree *)((r)->parentc & ~1)) #define rtree_color(r) ((r)->parentc & 1) #define rtree_is_red(r) (!rtree_color(r)) #define rtree_is_black(r) rtree_co...
/* zzfrmgt1.f -- translated by f2c (version 19980913). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static integer c__1 = 1; /* $Procedure ZZFRMGT1 (Frame get transformation) */ /* Subroutine */ int zzfrmgt1_(inte...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "ucvm_utils.h" #include "ucvm_config.h" #include "ucvm_meta_patch.h" #include "ucvm_model_patch.h" #include "ucvm_proj_ucvm.h" /* Constants */ #define UCVM_PATCH_POWER_FACTOR 2.0 /* Data bucket */ typedef struct ucvm_bucket_t { ...
/* gffOut - output GFF (from bed data structures). */ /* Copyright (C) 2014 The Regents of the University of California * See README in this or parent directory for licensing information. */ #include "common.h" #include "hash.h" #include "linefile.h" #include "dystring.h" #include "obscure.h" #include "jksql.h" #in...
/************************************************************************** * * Copyright 2009, VMware, 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 wi...
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */ /* * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana * University Research and Technology * Corporation. All rights reserved. * Copyright (c) 2004-2013 The University of Tennessee a...
/* * canbus_task.c * * Created on: Jan 4, 2021 * Author: jake */ #include <stdint.h> #include <string.h> #include "../../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h" #include "../../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h" #include "../../lib/can_messages.h" #include "../../l...
/*****************************************************************************/ /* */ /* stmt.c */ /* */ ...
/* (c) Copyright 2001-2009 The world wide DirectFB Open Source Community (directfb.org) (c) Copyright 2000-2004 Convergence (integrated media) GmbH All rights reserved. Written by <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME> <<EMAIL>>, <NAME> <<EMAIL>> and ...
/* * Copyright (C) the libgit2 contributors. All rights reserved. * * This file is part of libgit2, distributed under the GNU GPL v2 with * a Linking Exception. For full terms see the included COPYING file. */ #include <assert.h> #include "git2/clone.h" #include "git2/remote.h" #include "git2/revparse.h" #include...
/***** spin: ps_msc.c *****/ /* Copyright (c) 1997-2003 by Lucent Technologies, Bell Laboratories. */ /* All Rights Reserved. This software is for educational purposes only. */ /* No guarantee whatsoever is expressed or implied by the distribution of */ /* this code. Permission is given to distribute this code ...
/* tests/hammer/kdc5_hammer.c */ /* * Copyright 1990,1991 by the Massachusetts Institute of Technology. * All Rights Reserved. * * Export of this software from the United States of America may * require a specific license from the United States Government. * It is the responsibility of any person or organizat...
#include <assert.h> #include "benchmark_list.h" #include "qsbr.h" #include "util.h" typedef struct vtree_slot { unsigned long epoch; struct node *child[2]; struct vtree_slot *slot_next; struct vtree_record *rec; char padding[216]; } vtree_slot_t; #define VTREE_ENTRIES_PER_TASK 4 typedef struct vtree_record { ...
/* * SPDX-License-Identifier: BSD-3-Clause * * Copyright 2019-2021, <NAME> <<EMAIL>> */ #include <curses.h> #include <fcntl.h> #include <limits.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "ht.h" #include "show.h" #include ...
/* DBus device reservation API * * Copyright © 2019 <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...
/* * Copyright (C) 2016 "IoT.bzh" * Author: <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.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
/******************************************************************* * * Copyright 2016 Samsung Electronics All Rights Reserved. * * File Name : dump_tool.c * Description: Receive RAM and/or Userfs dump using UART * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in ...
/* $NetBSD: vm_kern.c,v 1.22 1997/09/22 15:22:12 chuck Exp $ */ /* * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * The Mach Operating System project at Carnegie-Mellon University. * * Redistribut...
/* * Copyright 2019-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...
/* * @HEADER * * *********************************************************************** * * Zoltan Toolkit for Load-balancing, Partitioning, Ordering and Coloring * Copyright 2012 Sandia Corporation * * Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, * the U.S. Govern...
#include "Msr.h" #include "Vmx.h" #include "Common.h" #include "Ept.h" #include "InlineAsm.h" #include "GlobalVariables.h" #include "Vmcall.h" #include "HypervisorRoutines.h" #include "Dpc.h" /* Initialize VMX Operation */ BOOLEAN VmxInitializer() { int ProcessorCount; KAFFINITY AffinityMask; if ...
/* * Copyright (c) 2005 Topspin Communications. All rights reserved. * * This software is available to you under a choice of one of two * licenses. You may choose to be licensed under the terms of the GNU * General Public License (GPL) Version 2, available from the file * COPYING in the main directory of this s...
/* Start user code for include. Do not edit comment generated here */ #include "platform.h" #include "r_flash_rx_if.h" #include "r_flash_rx_config.h" /* End user code. Do not edit comment generated here */ #include "flash.h" #include <aos/log.h> static uint8_t DF_Program_buf[2048]; static void R_FLASH_Read(uint32_t a...
void alpha_measure ( int n, double z[], int triangle_order, int triangle_num, int triangle_node[], double *alpha_min, double *alpha_ave, double *alpha_area ); double angle_rad_2d ( double p1[2], double p2[2], double p3[2] ); void area_measure ( int n, double z[], int triangle_order, int triangle_num, int triangle...
#include <X11/keysym.h> #include <X11/XKBlib.h> #include "normalMode.h" #include "utils.h" extern Glyph const styleSearch, style[]; extern char const wDelS[], wDelL[], *nmKeys[]; extern unsigned int bg[], fg, currentBg, highlightBg, highlightFg, amountNmKeys; typedef struct { int p[3]; } Pos; typedef enum {visual='...
/* $Source: /var/local/cvs/gasnet/tests/testvisperf.c,v $ * $Date: 2010/04/24 02:20:50 $ * $Revision: 1.6 $ * Description: GASNet VIS performance test * Copyright 2006 <NAME> <<EMAIL>> * Terms of use are as specified in license.txt */ #include "gasnet.h" #include "gasnet_vis.h" uintptr_t maxsz = 0; #ifnde...
/* * Copyright (c) 1980, 1993 * 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 the above copyr...
/** * * @copyright &copy; 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V. * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following condition...
/*=========================================================================== modem_sensor_qmi.c DESCRIPTION Modem sensor action over QMI. INITIALIZATION AND SEQUENCING REQUIREMENTS modem_ts_qmi_init() should be called before the modem_ts_temp_request(). Copyright (c) 2012 Qualcomm Technologies, Inc. A...
#include "la_includes.h" #include "la_geometry_undo.h" #include <math.h> uint *la_compute_neighbor(uint *ref, uint ref_count, uint vertex_count, egreal *vertex) { uint i, j, cor, clear = 0, *n, *v, a, b; uint laps = 0, tq1, tq2; n = malloc((sizeof *n) * ref_count * 4); for(i = 0; i < ref_count * 4; i++) n[i] =...
/** * @file target.c * @desc Target specific functions for SAME54 * @author <NAME> * @date 2021-03-08 * Last Author: * Last Edited On: */ #include "target.h" #include "board.h" #include "dma.h" /* Initialization functions */ static void init_clocks (void) { /* Ensure that interface clocks for GLCK, OSCCT...
/****************************************************************************** * * Timer based on Software - Polling * * Author: <NAME> * Email: <EMAIL> * Email: <EMAIL> * * Version 1.0 * ******************************************************************************/ #include <stdio.h> #include "xil_printf.h" #includ...
#include <libdragon.h> #include <stdio.h> // We need to show lots of internal details of the module which are not // exposed via public API, so include the internal header file. #include "../../src/audio/libxm/xm_internal.h" #define CLAMP(x, min, max) ((x) < (min) ? (min) : ((x) > (max) ? (max) : (x))) enum Page { ...
/** * \file * * \brief Unit tests for WDT-SAM4L driver. * * Copyright (c) 2012-2014 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...
/*- * Copyright 2004 <NAME> <<EMAIL>>. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditi...
/* cw2mp3.c Make an .MP3/.WAV audio file with morse code, for practicing Requires GCC and the LAME MP3 encoding library (tested with 3.98.2). Encoding timing rules (From http://en.wikipedia.org/wiki/Morse_code): short mark, dot or 'dit' 1 longer mark, dash or 'dah' 111 intra-character gap ...