text
stringlengths
3.12k
18.7k
#include "AI.h" #include <stdio.h> // debugging #include <math.h> // to have other options in eval /* The tuning knobs for the eval function are defined here as constants */ /* Above this score the depth takes on a minumum of 1. */ static uint32_t DEPTH_1_SCORE = 6500; /* Above this score the depth takes on a minim...
/* Copyright (c) 2011, Network RADIUS SARL 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 t...
/* CSci4061 S2017 Assignment 1 * login: huhnx025 * date: 02/15/17 * name: <NAME>, <NAME>, <NAME> * id: kormi001, lexxx600, huhnx025 */ #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include "util.h...
/** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** ** This notice applies to any and all portions of this file * that are not between com...
/* * This file is part of the Tensorflow Micropython Examples Project. * * The MIT License (MIT) * * Copyright (c) 2021 <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 Softw...
/* *---------------------------------------------------------------------------- * File: bin2hex.c * * Author: <NAME> * * Date created: 3/8/2016 * * Purpose: Convert binary file to memory image definition (plain text) file. *---------------------------------------------------------------------------- */ #in...
// in general/xyz_struct.h: // xy_t, xyi_t, xyz_t, xyq_t, matrix_t #define XY0 xy(0.,0.) #define XY1 xy(1.,1.) #define XYI0 xyi(0,0) #define XYI1 xyi(1,1) #define XYZ0 xyz(0.,0.,0.) #define XYQ0 set_xyq(ddouble(0.)) #define XYNAN xy(NAN,NAN) #define zyx(z, y, x) xyz(x, y, z) extern xy_t xy(const double x, const doubl...
/* ilaenv.f -- translated by f2c (version 20041007). You must link the resulting object file with libf2c: on Microsoft Windows system, link with libf2c.lib; on Linux or Unix systems, link with .../path/to/libf2c.a -lm or, if you install libf2c.a in a standard place, with -lf2c -lm -- in that order, at the e...
/*- * Copyright (c) 2013-2014 The University of Oslo * Copyright (c) 2018 <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...
#include<string.h> #include<stdio.h> #include <R.h> /*This is a weighted levenshtein distance, whereby the costs of symbol-symbol matches are provided */ /* here, subst_cost is a (m+1)x(n+1) length vector specifying the relative distances between symbols. the last row and column indicate the insertion costs--w...
/*************************************************************************\ * Copyright (c) 2002 The University of Chicago, as Operator of Argonne * National Laboratory. * Copyright (c) 2002 The Regents of the University of California, as * Operator of Los Alamos National Laboratory. * EPICS BASE is distributed...
/* ************************************************************************* */ /* Organizacion del Computador II */ /* */ /* Biblioteca de funciones para operar imagenes BMP */ ...
/* Notes */ /*{{{C}}}*//*{{{*/ /* This program is GNU software, copyright 1997-2007 <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 opt...
/************************************************************************ * Lua readline completion for the Lua standalone interpreter * * (c) 2012 <NAME> <anthony[at]adsorbtion.org> * (c) 2011 <NAME> <<EMAIL>> * (c) 2007 <NAME> * (c) 2004 <NAME> * * Permission is hereby granted, free of charge, to any person obtaining...
#include "vpx_config.h" #include "vp8_rtcd.h" #include "vpx_scale_rtcd.h" /*x86 Directory: x86/postproc_mmx.asm *common Directory: postproc.c * *function: * vp8_post_proc_down_and_across_mb_row_simd * vp8_mbpost_proc_down_simd * vp8_plane_add_noise_simd * * */ #include <limits.h> #include <math.h> #include <std...
#include "spl.h" #include "ddr.h" int jiaxing_dwmci_add_port(int, u32, int); static int spl_mmc_init(void) { int ret = 0; /* TODO: MMC PLL/Clock/Reset/Pinmux/Pad initialization. */ ret = jiaxing_dwmci_add_port(0, SD0_BASE, 4); if(ret) { puts("[SPL_BOARD_INIT] SPL mmc init failed.\n"); return -1; } return...
/////////////////////////////////////////////////////////////////////////////////////////////// // SENSORAY MODEL 826 PROGRAMMING EXAMPLES // This file contains simple functions that demonstrate how to program the 826. // For clarity, error checking is not as robust as it might be in a real-world application. /////...
/* * Copyright (c) 2012-2014 Apple Inc. All Rights Reserved. * * @APPLE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file except in * c...
#include <stdio.h> #include <stdarg.h> #include <string.h> #include "db_loader.h" #include "db_packet.h" #include "PLoadLib.h" #include "osint.h" /* default baud rate */ #define BAUD_RATE 115200 /* maximum cog image size */ #define COG_IMAGE_MAX (496 * 4) /* spin object file header */ typedef...
#include <stdio.h> #include <stdbool.h> #include <time.h> #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #include <RND_Game.h> #include <RND_ErrMsg.h> #include <RND_BitArray.h> #include <RND_HashMap.h> #include <RND_Utils.h> #include "space-etcher.h" #include "objects/include.h" #include "input.h" #include "sprite....
#pragma once /* * copyright 2021-.... github.com/apfeltee * * 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, modi...
#include <malloc.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <3ds.h> #include "task.h" #include "../../list.h" #include "../../error.h" #include "../../../core/linkedlist.h" #include "../../../core/screen.h" #include "../../../core/util.h" #include "../../../json/json.h" #include "../../../...
#include <stdio.h> #include <fcntl.h> #include <string.h> #include <stdlib.h> #define MAX_LINE_CONT 0X100 #define MAX_RAND_CONT(oprand_list,num) if (i > num){\ err_msg(*line,"oprand cont not matched\n");\ } void err_msg(int line,char* msg){ printf("error at line %d: %s\n",line+1,msg); exit(0); } char* get_line(vo...
/** * \file quat.c Implements Quaternion functions * * $Id: quat.c 395 2007-11-13 03:27:02Z n2523710 $ */ #include <math.h> #include "quat.h" /** * This will construct a direction cosine matrix from * euler angles in the standard rotation sequence * [phi][theta][psi] from NED to body frame * * body ...
// mutex.c // POSIX-like mutex implementation #include "mutex.h" #include "kernel.h" #define MUTEX_LOCKED 0 #define MUTEX_UNLOCKED 1 // Intialize mutex to unlocked state. // This must be the first operation on mutex. atomic_t mutex_init(mutex_t *mp) { klist_init(&mp->pend_queue); mp->value = MUTEX_UNLOCKED;...
//{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Generated by <NAME> 3-10-99 // Used by lanui.rc // #define IDH_CB_PrivateLan 40000051 #define IDH_CHK_Shared 40000050 #define IDH_CHK_ShowIcon 40000031 #define IDH_EDT_Adapter_Border 40000025 #define IDH_LVW...
/*+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +- c-deltaparser, copyright (c) 2021 houz -+ +- A parser for growtopia items.dat, written fully in C. Optimized to maximize efficiency. ...
/* * COPYRIGHT * * rffr - calculates the frequency response of a recursive filter. * Copyright (C) 2003, 2004, 2005 Exstrom Laboratories LLC * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published ...
#include "CL/cl.h" #include "rans_opencl.h" #include "rans_opencl_kernel.h" #define NX 32 #define TF_SHIFT 12 #define TOTFREQ (1 << TF_SHIFT) #define RANS_BYTE_L (1u << 15) typedef uint32_t RansState; bool initialized = false; cl_context context = NULL; cl_platform_id *pPlatforms = NULL; cl_device_id deviceID = N...
/* LUFA Library Copyright (C) <NAME>, 2019. dean [at] fourwalledcubicle [dot] com www.lufa-lib.org */ /* Copyright 2019 <NAME> (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is her...
#include "doom.h" #include "bench.h" #include "stdio.h" #include <Init3do.h> #define FONT_WIDTH 8 #define FONT_HEIGHT 8 #define FONT_SIZE (FONT_WIDTH * FONT_HEIGHT) #define MAX_STRING_LENGTH 20 #define NUM_FONTS 59 static unsigned char bitfonts[] = {0,0,0,0,0,0,0,0, 4,12,8,24,16,0,32,0, 10,18,20,0,0,0,0,0, 0,20,1...
/* * drivers/misc/tegra-profiler/mmap.c * * Copyright (c) 2015-2019, NVIDIA CORPORATION. All rights reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation....
#ifndef STDINT #include <stdint.h> #define STDINT #endif /*=================== START OF DEMO SELECTION ======================*/ /* The demos available. Please only define one of these to be 1, the rest should be 0. They are given in increasing complexity as you go down the list. */ #define SPINNING_SQU...
/* * Copyright (C) 2009 The Android Open Source Project * * 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 app...
/* * Copyright (c) 2017, Lawrence Livermore National Security, LLC. * Produced at the Lawrence Livermore National Laboratory. * * Copyright 2017, UT-Battelle, LLC. * * LLNL-CODE-741539 * All rights reserved. * * This is the license for UnifyFS. * For details, see https://github.com/LLNL/UnifyFS. * Please rea...
/************ Copyright Krono-Safe S.A. 2020, All rights reserved ************/ #include <t32.h> /* <--- this require the T32 C API */ #include <stdio.h> #include <assert.h> #include <stdlib.h> #include <stdint.h> #include <limits.h> #include <signal.h> #include <errno.h> #include <string.h> #include <unistd.h> #incl...
#include <stdio.h> #include <string.h> #include <malloc.h> #include "BlueWorld.h" uint8_t Parity(uint8_t num) { return 0; } void addInstr(State8080 *state, uint8_t registerVal, uint8_t carry) { uint16_t answer = (uint16_t) state->a + (uint16_t) registerVal; state->cc.z = ((answer & 0xff) == 0); state...
/* savedirinfo.c -- Save the list of files in a directory, with additional information. Copyright 1990, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as...
/* * 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 ...
#include <sys/time.h> #include <gtk/gtk.h> #include <stdint.h> #include "vosu-view.h" #include "vosu-render.h" #include "osux/hitobject.h" #include "osux/hit.h" #include "osux/error.h" G_DEFINE_TYPE(VosuView, vosu_view, GTK_TYPE_BOX); static gint get_object_end_offset(gconstpointer _a, gconstpointer _b, gpointer use...
/* Copyright 2012-2015 <NAME> * * This program 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 3 of the License, or * (at your option) any later version. * * This program is distri...
/****************************************************************************** *** <NAME> Numero USP: 3135701 *** *** <NAME> Numero USP: 3151151 *** *** Exercicio-Programa 1 *** *** Descricao: Recebe uma ma...
/* * The MIT License (MIT) * Copyright (c) 2015 <NAME> <<EMAIL>> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to use,...
/* Copyright (c) 2015 <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, distri...
/* Configuration file for a mips64 OpenBSD target. Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GCC. GCC 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...
/** * fifteen.c * * Implements Game of Fifteen (generalized to d x d). * * Usage: fifteen d * * whereby the board's dimensions are to be d x d, * where d must be in [DIM_MIN,DIM_MAX] * * Note that usleep is obsolete, but it offers more granularity than * sleep and is simpler to use than nanosleep; `man uslee...
// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. #include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define QUANTUM_ARRAY_RESERVED (4 * sizeof(int64_t)) #define QUANTUM_ARRAY_ALIAS_POS (3 * sizeof(int64_t)) #define QUANTUM_ARRAY_REF_POS (2 * s...
/** * 协议层 * 封装所有数据格式相关代码 **/ #include "protocol.h" #include "ComService.h" #include "Configuration.h" #include "MainFrame.h" #include "DataBase.h" #include "main.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define BATTRY_VMIN 9.0f #define BATTRY_VMAX 12.0f extern vola...
#pragma config(I2C_Usage, I2C1, i2cSensors) #pragma config(Sensor, in1, gyro, sensorGyro) #pragma config(Sensor, in2, LeftLiftPot, sensorPotentiometer) #pragma config(Sensor, in3, RightLiftPot, sensorPotentiometer) #pragma config(Sensor, in4, Expander, sensorAnalog) #pragma config(...
/* * Copyright (c) 2014 Qualcomm Atheros, Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUT...
#include <stdlib.h> #include <stdio.h> #include <string.h> #define SEED 0 #define MIN_BLOCK_SIZE 30 //SIZE 1 --> R - L = 1 --> 2 array positions inline void swapValues(int* a, int* b) { int c=*a; *a=*b; *b=c;} inline void swapPointers(int** a, int** b) { int* c=*a; *a=*b; *b=c;} /*inline void manualCopy(int* a, ...
/*! * Copyright (C) 2015 - 2016 Bosch Sensortec GmbH * * 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 a...
#include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <assert.h> #include <sys/mman.h> #include <fcntl.h> // https://xz.aliyun.com/t/6562 // https://gist.github.com/ccbrown/9722406 void dumphex(const void* data, size_t size) { char ascii[17]; size_t i, j; asci...
/* * rexec 1.2 * noexec mechanism and execve() logging * * (c) 2000-2011 <NAME> <<EMAIL>> * Based on work by: * (c) 2000 <NAME> <<EMAIL>> * (c) 2002-2003 <NAME> <<EMAIL>> * * Version 1.2 Sponsored by INTEN <NAME> <http://www.inten.pl/> */ #include <sys/types.h> #include <sys/param.h> #include <sys/systm.h...
#include "wiz_gp2x.h" // This is not a functioning source file yet, a lot needs to be updated to the more modern GCW-era port. static const char *base_settings_path = "./"; // Each platform must provide a version of this to set the location of the port-specific configuration settings filename int set_portcfg_filename...
#include "server_utility.h" //GLOBAL VARIABLES int sdAgent; int sdClient; BSTHostInfo * bstHostInfo; node * tidContainer; bool serverKilled = false; void handleSigInt(int code){ serverKilled = true; } void killServer(void){ node * root = tidContainer->next; while(root != NULL){ ...
//------------------------------------------------------------------- // // File: id-gen.c // // @author <NAME> <<EMAIL>> // // @copyright 2016-2017 <NAME> // // This file is provided to you under the Apache License, // Version 2.0 (the "License"); you may not use this file // except in compliance with the Lice...
/* * Copyright (c) 1982, 1986, 1988 Regents of the University of California. * All rights reserved. * * %sccs.include.redist.c% * * @(#)if_imp.h 7.7 (Berkeley) 06/28/90 */ /* * Structure of IMP 1822 long leader. */ struct control_leader { u_char dl_format; /* 1-8 leader format */ u_char dl_network; /* 9-1...
/* * Copyright © 2004 <NAME> * * Permission to use, copy, modify, distribute, and sell this software * and its documentation for any purpose is hereby granted without * fee, provided that the above copyright notice appear in all copies * and that both that copyright notice and this permission notice * appear in ...
#include "io_binary_mpi_io.h" #include <math.h> #include <stdio.h> #include <stdlib.h> #include <mpi.h> #define epsilon 0.005 static inline void compute_row(int i, int n, float ** uo, float ** u, float ** f, float * l2, float h) { int j; for (j = 1; j < n; j++) { // computation of the new step ...
/* gzip.c - gzip/gunzip/zcat tools for gzip data * * Copyright 2017 The Android Open Source Project * * GZIP RFC: http://www.ietf.org/rfc/rfc1952.txt TODO: port to toybox. */ #define _GNU_SOURCE #include <errno.h> #include <error.h> #include <fcntl.h> #include <getopt.h> #include <stdio.h> #include <stdlib.h> #...
#include "pin_io.h" void pinSetup(uint16_t port, char portName, uint32_t moder, uint32_t puder) { if (portName == 'A') { GPIOA->MODER &= ~(0x00000003 << (port * 2)); GPIOA->MODER |= (moder << (port * 2)); GPIOA->PUPDR &= ~(0x00000003 << (port * 2)); GPIOA->PUPDR |= (puder << (po...
// Copyright 2013 <NAME> <<EMAIL>> #include <string.h> #include "jsonx.h" static void enc_rt_dtor(ErlNifEnv* env, void* obj){ EncEntry *entry = (EncEntry*)obj; enif_release_binary(&entry->bin); entry->bin.data = NULL; if(entry->ignored){ enif_free(entry->ignored); entry->ignored = NULL; } entry = ...
/*! * @file * @brief This file contains implemenation of phong vertex and fragment shader. * * @author <NAME>, <EMAIL> */ #include <assert.h> #include <math.h> #include <student/gpu.h> #include <student/student_shader.h> #include <student/uniforms.h> /// \addtogroup shader_side Úkoly v shaderech /// @{ void ph...
/*-***************************************************************************** MMBasic for Linux (MMB4L) fun_rgb.c Copyright 2021-2022 <NAME>, <NAME> and <NAME>. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redis...
/* * Copyright (c) 2007-2014, <NAME> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice, this list of condit...
#include <stdio.h> #include <math.h> /* The Purdy point system is calculated from a table of running performances compiled in 1936 called the Portuguese scoring Tables. The table lists distance and velocity from 40 meters to 100,000 meters. These velocity measures are assumed to be maximum possible velocity in a strai...
/****************************************************** * OpenRTVC.c * * $Id: OpenRTVC.c 04/04/2020 12:45 t.borensztejn $ * * $Id: OpenRTVC.c 03/04/2020 20:55 d.perinetti $ * *******************************************************/ #include <math.h> #include <Ser...
#include "hash.h" #include "../../utils.h" #include <string.h> #include <strings.h> /* ==================================================================================================== */ const char *extcss3_hash_colors[29][2] = { {"f0ffff", "azure"}, {"f5f5dc", "beige"}, {"ffe4c4", "bisque"}, {"a52a2a", "...
// 测试厂商平台上移植的opus,例子里面调用opus接口进行opus编码; // 需要关注编码的耗时来评估CPU是否满足opus编码的实时性 /* ------ Encode buffer 640 bytes ------ ------ encode ret 67 ------ ------ encode success ------ ------ time consumed 301 microsecond ------ //编码640字节耗时301 microsecond */ // #include <stdio.h> #include <stdlib.h> #include <string.h> #include...
/** ****************************************************************************** * @file STemWin/STemWin_HelloWorld/Src/main.c * @author MCD Application Team * @version V1.3.0 * @date 14-August-2015 * @brief This file provides main program functions *********************************************...
/* <NAME> R@M 2017 <EMAIL> */ //QSCU #include "include/configure.h" #include "include/task_constants.h" #include "tasks/include/read_uart0.h" #include "tasks/include/read_uart1.h" #include "tasks/include/example_blink.h" #include "tasks/include/example_uart.h" #include "tasks/include/i2c_test.h" #include "tasks/...
/* Copyright (c) <NAME>. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in a...
/* chordSet3D.c * Functions related to decomposing a flat 3D image into a set of chords. * A chord is a run of non-zero pixels in a structuring element. */ #include <limits.h> #include <stdlib.h> #include "chordSet3D.h" #include "safeMalloc.h" chordSet3D initChordSet3D(){ chordSet3D chords; chords.size = 0; cho...
/* Copyright (c) <NAME> 2019, see LICENSE */ #include <stdio.h> //printf, puts, fprintf #include <stdlib.h> //calloc #include <string.h> // #include <unistd.h> #include <termios.h> #include "../lib/ansi_esc.h" //colors #include "bf.h" #include "bf_vars.h" #include "intern_errors.h" #include "error_handler.h" //stat...
/***************************************************************** ** ** vm/c3.c ** ** Implementation of the C3 property resolution order used in ** September objects. ** *************** ** September ** *****************************************************************/ // ==========================...
// https://github.com/joelangeway/CumulativeSum/blob/master/cumsum.c #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <math.h> #if _WIN32 #include <immintrin.h> #else #include <x86intrin.h> #endif /* The palignr instruction works just fine on vectors of floats, but the instrinsics available...
/* Name: hw3b-17.c * Description: Chinese Railroad System with Depth First Search, Breadth First Search , * Depth First Search with Origin to Destination and Minimum Spanning Tree * * Author: <NAME> (11/28/2009) * * Modified by: <NAME> (11/29/2009) * * Version: ALPHA */ #include<stdio.h> #include<stdlib....
//********************************************************************************* // These settings have been generated for use with TI-RTOS and cc26xxware // // Generated by SmartRF Studio version 2.3.0 // Tested with TI-RTOS version tirtos_simplelink_2_16_xx_xx // //***********************************************...
/* confdefs.h */ #define PACKAGE_NAME "MPICH" #define PACKAGE_TARNAME "mpich" #define PACKAGE_VERSION "3.3.2" #define PACKAGE_STRING "MPICH 3.3.2" #define PACKAGE_BUGREPORT "<EMAIL>" #define PACKAGE_URL "http://www.mpich.org/" #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDL...
//Squared exponential kernel function double kernel(double *x1, double *x2, double *loglambdas, int ndim){ double k=0.0; int i; for(i=0; i<ndim; ++i){ k += pow(x1[i]- x2[i], 2)/(2*exp(loglambdas[i])); } return exp(-1.0*k); } void create_invese_covariance_matrix(double ** sigma_x_x_inv, int...
/* kiss_sdl widget toolkit Copyright (c) 2016 <NAME> <<EMAIL>> 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...
// // Book: OpenGL(R) ES 2.0 Programming Guide // Authors: <NAME>, <NAME>, <NAME> // ISBN-10: 0321502795 // ISBN-13: 9780321502797 // Publisher: Addison-Wesley Professional // URLs: http://safari.informit.com/9780321563835 // http://www.opengles-book.com // // Simple_Texture2D.c // // Thi...
/* ** Copyright (C) 1999-2003 <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 2 of the License, or ** (at your option) any later version. ** ** This program...
// elf_add.c -- Implementation of adding instructions and symbols // to the ELF sections and headers #include <stdlib.h> #include <string.h> #include "elf.h" #include "elf_int.h" // Section names in the order they appear in the section header table static char *snames[NUM_SECTIONS] = { "", // The nu...
// Copyright (c) 2012 The Merit Foundation developers /* Copyright (c) 2011 The LevelDB Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. See the AUTHORS file for names of contributors. */ #include "leveldb/c.h" #include <stddef.h> #i...
/**************************************************************************** ** *A echelon.c ANUPQ source <NAME> ** *Y Copyright 1995-2001, <NAME> fuer Mathematik, RWTH Aachen, Germany *Y Copyright 1995-2001, School of Mathematical Sciences, ANU, Australia ** */ #include...
#include <kernel/kbd.h> #include <kernel/ps2.h> #include <kernel/irq.h> #include <kernel/sys.h> #include <stdio.h> #include <ctype.h> // Contains keycode mappings for one-byte scancodes // A zero means the index isn't a valid scancode uint32_t simple_sc_to_kc[] = { 0, KBD_F9, 0, KBD_F5, KBD_F4, KBD_F1, KBD_F2...
typedef unsigned char undefined; typedef unsigned char byte; typedef unsigned char dwfenc; typedef unsigned int dword; typedef unsigned long qword; typedef unsigned int uint; typedef unsigned long ulong; typedef unsigned int undefined4; typedef unsigned long undefined8; typedef unsigned short...
// // Created by ncbradley on 27/02/19. // Much of the code was taken from https://github.com/dancor/wmctrl/blob/0181e8e4a7ed98255f6ef930875e56560f19aa95/main.c // #include <stdio.h> #include <X11/Xlib.h> #include <X11/Xatom.h> #include <X11/cursorfont.h> #include <X11/Xmu/WinUtil.h> #include <glib/gi18n.h> #include <...
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This code is an adaptation of the Lee algorithm's implementation originally included in the STAMP Benchmark * by Stanford University. * * The original copyri...
/*************************************************************************** * _ _ ____ _ * Project ___| | | | _ \| | * / __| | | | |_) | | * | (__| |_| | _ <| |___ * \...
// SPDX-License-Identifier: GPL-2.0-only /* * UBSAN error reporting functions * * Copyright (c) 2014 Samsung Electronics Co., Ltd. * Author: <NAME> <<EMAIL>> */ #include <linux/bitops.h> #include <linux/bug.h> #include <linux/ctype.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/types.h> #inc...
/* common.c */ /* See Copyright Notice in the file LICENSE */ #include <stdlib.h> #include <ctype.h> #include <string.h> #include "lua.h" #include "lauxlib.h" #include "common.h" #define N_ALIGN sizeof(int) /* the table must be on Lua stack top */ int get_int_field (lua_State *L, const char* field) { int val; lu...
//BCRect.c: BCRect functions // ©2020 DrewCrawfordApps LLC #include "BCRect.h" bc_float2_t BCRectMax(BCRect b) { BC4Points points = BCRectGet4Points(b); bc_float_t x_a = bc_reduce_max(points.a_b.even); bc_float_t x_b = bc_reduce_max(points.c_d.even); bc_float_t x_f = bc_max(x_a,x_b); bc_float_t y...
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) // Copyright (c) 2021 <NAME> // // Based on tcprtt(8) from BCC by zhenwei pi. // 06-Aug-2021 <NAME> Created this. #define _DEFAULT_SOURCE #include <arpa/inet.h> #include <argp.h> #include <stdio.h> #include <signal.h> #include <unistd.h> #include <time.h> #incl...
/*- * Copyright (c) 2011 Varnish Software AS * All rights reserved. * * Author: <NAME> <<EMAIL>> * * 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...
/* * test.c -- test code for FEC library * * (C) 1997-98 <NAME> (<EMAIL>) */ #include <stdio.h> #include <stdlib.h> #include <stddef.h> #include <stdint.h> #include <string.h> #include "fec.h" /* * compatibility stuff */ #ifdef MSDOS /* but also for others, e.g. sun... */ #define NEED_BCOPY #define bcmp(a, b...
/** @file HL_emif.c * @brief emif Driver Implementation File * @date 11-Dec-2018 * @version 04.07.01 * */ /* * Copyright (C) 2009-2018 Texas Instruments Incorporated - www.ti.com * * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following c...
/* * 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 ...