text stringlengths 3.12k 18.7k |
|---|
/*
* Copyright (C) 2001 <NAME> and <NAME>
* Copyright (C) 2001 O'Reilly & Associates
*
* The source code in this file can be freely used, adapted,
* and redistributed in source or binary form, so long as an
* acknowledgment appears in derived source files. The citation
* should list that the code comes from th... |
#define BYTE_TO_BINARY_PATTERN "%c%c%c%c%c%c%c%c"
#define BYTE_TO_BINARY(byte) \
(byte & 0x80 ? '1' : '0'), \
(byte & 0x40 ? '1' : '0'), \
(byte & 0x20 ? '1' : '0'), \
(byte & 0x10 ? '1' : '0'), \
(byte & 0x08 ? '1' : '0'), \
(byte & 0x04 ? '1' : '0'), \
(byte & 0x02 ? '1' : '0'), \
(byte & 0x01 ? '1' ... |
#include "utils.h"
#include "../../glfw/deps/GL/glext.h"
#include "filemapping.h"
#include <stdio.h>
#include <stdlib.h>
#define DDS_HEADER_SIZE 128
#define DDS_SIGNATURE 0x20534444 // "DDS "
#define FORMAT_CODE_DXT1 0x31545844 // "DXT1"
#define FORMAT_CODE_DXT3 0x33545844 // "DXT3"
#define FORMAT_CODE_DXT5 0x35... |
#include <stdbool.h>
#include "common/types.h"
#include "common/ringbuff.h"
#include "bug/panic.h"
#include "mm/mm.h"
#include "sched/sched.h"
#include "log/log.h"
#include "fs/type/devfs.h"
#include "driver/console/console.h"
#define BUFFLEN 2048
static const char KEYMAP[] = {
// 0x00
0, 0,
... |
#pragma once
#include "pool.h"
#include "error.h"
#include "zero.h"
#include "math_utils.h"
#include <assert.h>
// a small size optimized linked list for storing void* 's
// we use the lower LIST_SSO_BITS of list->head_node
// to store (LIST_SSO_CAPACITY - used sso slots)
// this way when all sso slots are used the h... |
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> ... |
#include "driver/rmt.h"
#include "esp_event.h"
#include "esp_log.h"
#include "esp_netif.h"
#include "esp_smartconfig.h"
#include "esp_system.h"
#include "esp_wifi.h"
#include "esp_wpa2.h"
#include "freertos/FreeRTOS.h"
#include "freertos/event_groups.h"
#include "freertos/queue.h"
#include "freertos/semphr.h"
#include ... |
/*** coff information for Intel 386/486. */
/********************** FILE HEADER **********************/
struct external_filehdr {
unsigned short f_magic; /* magic number */
unsigned short f_nscns; /* number of sections */
unsigned long f_timdat; /* time & date stamp */
unsigned long f_symptr; /* file point... |
/*
* Copyright (c) 2008-2010 <NAME> and the contributors. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice,
* this ... |
/********************************************************************
* BenchIT - Performance Measurement for Scientific Applications
* Contact: <EMAIL>
*
* $Id: patricia_funcs.c 1 2009-09-11 12:26:19Z william $
* $URL: svn+ssh://william@rupert.zih.tu-dresden.de/svn-base/benchit-root/BenchITv6/kernel/search/patric... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define SGN(x) ( ((x)==0) ? 0 : ( ((x)>0) ? 1 : -1 ) )
#define MAX(x,y) ( ((x)>(y)) ? (x) : (y) )
#define MIN(x,y) ( ((x)<(y)) ? (x) : (y) )
/*
* take an upwind step to solving
* ut - Vf.Vu = 0
* ("V" is grad operator, "." is dot-product)
*
*/
voi... |
#include "hi_jpeg.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <pthread.h>
#include <unistd.h>
#include <signal.h>
#include <mpi_sys.h>
#include <mpi_vb.h>
#include <mpi_vi.h>
#include <mpi_venc.h>
#include <mpi_vpss.h>
#include <mpi_isp.h>
#include <... |
/* $Id$
Part of SWI-Prolog
Author: <NAME>
E-mail: <EMAIL>
WWW: http://www.swi-prolog.org
Copyright (C): 1985-2004, University of Amsterdam
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
... |
/*
* verify_model.c
*
* <NAME>, December 2008
*
*/
#include <inttypes.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef int32_t literal_t;
typedef uint32_t variable_t;
typedef enum { POS = 1, NEG = 2, UNDEF = 0 } polarity_t;
static inline literal_t variable_to_literal(va... |
#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 <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <gsl/gsl_integration.h>
#include <gsl/gsl_spline.h>
#include <gsl/gsl_errno.h>
#include "ccl.h"
#include "ccl_params.h"
#include "ccl_redshifts.h"
// ---- LSST redshift distributions & current specs -----
// ---- Consider spline for input dN/dz - pend... |
/* DB2 IBM database server vulnerability scanner. :: */
#include <pcap.h>
#include <stdio.h>
#include <stdlib.h> // for exit()
#include <string.h> //for memset
#include <sys/ioctl.h>
#include <net/if.h>
#include <sys/socket.h>
#include <arpa/inet.h> // for inet_ntoa()
#include <net/ethernet.h>
#include <netinet/udp.h>... |
/**
* @brief openspblas mm csc test
* @author <NAME> <<EMAIL>>
*/
#include <alphasparse.h>
#include <stdio.h>
#include <mkl.h>
static sparse_status_t alpha_convert_mkl_csc_s(alphasparse_matrix_t src, sparse_matrix_t *dst, sparse_index_base_t base, ALPHA_INT nnz)
{
spmat_csc_s_t * mat = (spmat_csc_s_t *)src->ma... |
/* ode-initval/gear1.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 3 of the License, or (at
* your option) any... |
/*
Copyright (c) 2017 Miouyouyou <Myy>
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, dist... |
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "fontconv.h"
#define SHORT_HEADER 13
typedef unsigned char byte;
#ifdef __GNUCC__
#define STRICMP strcasecmp
#else
#define STRICMP stricmp
#endif
#define resourceAttribute 0x0001
int prc;
unsigned long r... |
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <limits.h>
#include <exos/nameserv.h>
#include <exos/sls.h>
#include <exos/mallocs.h>
#include <exos/conf.h>
#include <exos/vm-layout.h>
#include <aouthdr.h>
#include <filehdr.h>
#include <scnhdr.h>
#include <stdio.h>
#include <string.h>
#include <xok/... |
/* Copyright (c) 2014 Cryptography Research, Inc.
* Released under the MIT License. See LICENSE.txt for license information.
*/
#include "f_field.h"
void gf_mul (gf_s *__restrict__ cs, const gf as, const gf bs) {
const uint64_t *a = as->limb, *b = bs->limb;
uint64_t *c = cs->limb;
__uint128_t accum0 =... |
/*
* Copyright (C) 2021 <NAME>7js
*
* 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 disclaimer.... |
/*
* Copyright (c) 2015, Texas Instruments Incorporated
* 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... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <unistd.h>
#include <string.h>
#include "config.h"
#include "cod.h"
#include "ev_dfg.h"
#include "test_support.h"
static int status;
static EVclient test_client;
static int base=2;
static int node_count = 0;
static
int
simple_handler(CManager cm, voi... |
/*-------------------------------------------------------------------------*/
/**
Copyright 2021 <NAME>, <NAME>, <NAME> and <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without res... |
/******************************************************************************/
/* RBJ.4 : exact p(k, 1) values for 2 <= k <= 24 (Monier's result) : */
/* Copyright (c) 2020 <NAME>.
* distributed under BSD-2-Clause license terms. see: mrtab.c */
/********************************************************************... |
/**
Copyright 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, including
without limitation the rights to use, copy, modify, merge, publish,
distribute... |
//
// Created by Derrick on 2016-03-18.
//
#include <stdio.h>
#include <stdlib.h>
#include <syslog.h>
#include <limits.h>
#include "plugin.h"
#include "configReader.h"
#include "misc.h"
#define PLUGIN_CONF_FILE "/" PLUGIN_CONF_FILENAME
#define PLUGIN_CONF_OUT "/" PLUGIN_CONF_OUTFILE
#define PLUGIN_CONF_HASH_SIZE 13
... |
// SDCC specific defines.
#define __18F97J60
#define __SDCC__
#define THIS_INCLUDES_THE_MAIN_FUNCTION
#define OVERFLOW_CYCLES 24408
#define CONFIG_MODE_QUIT -1
#define CONFIG_MODE_ALARM 0
#define CONFIG_MODE_CLOCK 1
#include <stdlib.h>
#include <stdio.h>
#include "../Include/HardwareProfile.h"
#include "../In... |
/*
* UserData project.
*
* Source file userMain
*
* As name suggests this source file contains the main function
* for the userProfile project, It is the main interface for
* testing the functions while they are being written.
*
* Because this project is ment to be position independant
* shared object for ... |
/*
contourlet - Implementation of the contourlet transform for image coding
Copyright (C) 2005 <NAME> - IRISA/University of Rennes 1
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; eit... |
#include "scene.h"
#include "aabb.h"
const vfloat_t FUDGE_SCALE = 0.001;
const vfloat_t AMBIENT_SCALE = 0.4;
const int MAX_DEPTH = 10;
scene_t scene_empty_scene(color_t sky_color)
{
Material_t *sky_mtrl = fullbright_new(NULL, sky_color);
sky_mtrl->ior = 1;
return (scene_t) {
._sky = sky_mtrl,
... |
/*
Copyright (c) 2013, Broadcom Europe Ltd
Copyright (c) 2013, <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, t... |
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <curses.h>
#include <signal.h>
#define CLI_WIDTH 32
#define CLI_HEIGHT 30
#define CLI_BUTTON_TIME_SET 22
static const chtype cli_tile_map[2][UINT8_MAX + 1] = {
{
'@','@','@','@','@','@','@','@','@','@','@','@','@','@','@',... |
/* Sarien - A Sierra AGI resource interpreter engine
* Copyright (C) 1999, 2007-2003 <NAME> and <NAME>
*
* $Id: cycle.c,v 1.103 2003/08/17 20:33:56 cmatsuoka Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* t... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define COL 2
#define COLVC 2
int hayVCa;
float numFallos;
float peticiones;
int nlinGrupo;
int bitTag[2];
int intro();
int simulador(FILE *traza, int numLineas, unsigned long int MemoriaCache[][numLineas], int bitGrupo[],int vcLines, u... |
/*
* NXML is not an XML parser.
*
* Project: svg2ass
* File: nxml.c
* Created: 2014-10-27
* Author: <NAME>
*
* See LICENSE file for more details.
*/
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <ctype.h>
#include <errno.h>
#include "nxml.h"
#ifdef DEBUG
#include <assert.h>
#def... |
#pragma once
float verticesTexturedRectangle[] = {
// positions // colors // texture coords // normals
0.5f, 0.5f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, // top right
0.5f, -0.5f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f, // bottom right
-0.5f, -0.5f,... |
#include <avr/io.h>
#include <avr/interrupt.h>
#define EDGE_IDLE (0)
#define EDGE_START (5)
#define STARTBIT (10)
#define STOPBIT (1)
#define IDLE (0)
uint8_t volatile mcuTime = 0;
uint16_t volatile tickCnt = 0;
uint8_t setPoint;
uint8_t newOCR0A = 0xFF;
uint8_t actualValue = 0xFF;
uint8_t pot[4];
uint... |
/*
################################################################################
#
# Copyright 2020-2021 Inango Systems Ltd.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ht... |
/*
tnt4882/mite.c
Hardware driver for NI Mite PCI interface chip,
adapted from COMEDI
Copyright (C) 1997-8 <NAME> <<EMAIL>>
Copyright (C) 2002 <NAME> <<EMAIL>>
The PCI-MIO E series driver was originally written by
<NAME> <...>, and ported to comedi by ds.
References for specifications:
321747b.pdf Regi... |
#include <string.h>
#include "celib/id.h"
#include "celib/memory/memory.h"
#include <celib/module.h>
#include <celib/ydb.h>
#include <celib/macros.h>
#include "celib/api.h"
#include "cetech/resource/resource.h"
#include "cetech/ecs/ecs.h"
#include "cetech/transform/transform.h"
#include <cetech/renderer/renderer.h>... |
/****************************************************************************
* __ *
* ____ ___ ____ __ ______ ___ ____ ____/ / *
* / __ `__ \/ __ `/ |/ / __ `__ \/ __ \/ __ / *
* ... |
/*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* This is script-generated code (for the most part). */
/* See dataObjWrite.h for a description of this API call.*/
#include "dataObjWrite.h"
#include "rodsL... |
#include <asm/types.h>
#include <arpa/inet.h>
#include <linux/if_link.h>
#include <linux/lwtunnel.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <linux/seg6.h>
#include <linux/seg6_hmac.h>
#include <linux/seg6_iptunnel.h>
#include <linux/seg6_local.h>
#include <net/if.h>
#include <stdbool.h>
#inclu... |
#define _GNU_SOURCE 1
//#define ENABLE_SSL
#include <sys/compiler.h>
#include <sys/cpu.h>
#include <sys/dll.h>
#include <list.h>
#include <mem/pool.h>
#include <sys/log.h>
#include <aaa/lib.h>
#include <aaa/prv.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <crypto/abi/lib... |
/* $Id$ */
/* Copyright (c) 2008-2021 <NAME> <<EMAIL>> */
/* This file is part of DeforaOS Desktop Browser */
/* 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 ab... |
/*
CF3
Copyright (c) 2015 ishiura-lab.
Released under the MIT license.
https://github.com/ishiura-compiler/CF3/MIT-LICENSE.md
*/
#include<stdio.h>
#include<stdint.h>
#include<stdlib.h>
#include"test1.h"
static int64_t x489 = 63372701792LL;
int32_t x722 = INT32_MAX;
int8_t x893 = 0;
int32_t t3 = 166861;
int32_t x... |
/*
* Copyright (C) 2010 Bluecherry, LLC www.bluecherrydvr.com
* Copyright (C) 2010 <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
*... |
/*
* banque.c
*
* Created on: 2013-08-14
* Modified on: 2016-01-21
* Author: <NAME> <<EMAIL>>
*/
#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/wait.h>
#include <pthread.h>
#include <pth.h>
#include <dlfcn.h>
#include <getopt.h>
#include <string.h>
#include <sy... |
#include "kbd.h"
#include <stddef.h>
#include <stdint.h>
#include "cpuio.h"
#include "hlt.h"
#include "interrupt.h"
#include "string.h"
#include "term.h"
#define PS2_STATUS_OUTPUT_FULL (1u<<0)
#define PS2_STATUS_INPUT_FULL (1u<<1)
static uint8_t ps2_status(void) {
return inb(0x64);
}
#define PS2_READ_CONFIG (... |
#include <stdio.h>
#include <stdint.h>
#include <sys/socket.h>
#include <string.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/select.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <fcntl.h>
#define __MINI_DIG_DNS_PORT__ 53
#define __MINI_DIG_STORE_LOC... |
#include "tldevel.h"
#include "tllogsum.h"
#include "tlrng.h"
#include "finite_hmm_struct.h"
#include "finite_hmm.h"
#include "finite_hmm_alloc.h"
#include "finite_hmm_stats.h"
#include "finite_hmm_plot.h"
#include "finite_hmm_score.h"
#include "global.h"
#include "null_model_emission.h"
static int generate_simple_... |
#include <Supernova.h>
#include "Supernova/di.h"
#include "FAT.h"
#include <string.h>
enum {
FAT_VOLUMES_COUNT = 3,
};
uint32 DriverID;
volatile unsigned Drv_state;
typedef struct FATVolume_s {
uint32 Flags;
FAT_t fat;
VolumeInfo_t VolInfo;
HANDLE DriveHandle;
}FATVolume_t, *FATVolume_p;
FATVolume_t Volumes[F... |
/****************************************************************************/
/* */
/* The FreeType project - a Free and Portable Quality TrueType Renderer. */
/* */
/* ... |
/*
* Copyright (c) 2014 - Qeo LLC
*
* The source code form of this Qeo Open Source Project component is subject
* to the terms of the Clear BSD license.
*
* You can redistribute it and/or modify it under the terms of the Clear BSD
* License (http://directory.fsf.org/wiki/License:ClearBSD). See LICENSE file
* fo... |
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <fcntl.h> /* For O_* constants */
#include <sys/stat.h> /* For mode constants */
#include <semaphore.h>
#include <signal.h>
#include <sys/shm.h> /* For share mem... |
#include <GL/gl.h>
#include <GL/glx.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include <GL/freeglut.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <math.h>
#include <string.h>
#include <time.h>
#include "mex.h"
#define WIDTH 1242
#define HEIGHT 375
#define BUFFERSIZE 256
/* global variables ... |
#include <stdio.h>
#include <debug.h>
#include <libc.h>
#include <serial.h>
#include "mem.h"
void *get_pointer(uint32_t addr) {
volatile uintptr_t iptr = addr;
unsigned int *ptr = (unsigned int*)iptr;
return (void *)ptr;
}
void pokeb(uint32_t seg, uint32_t offset, char data) {
*(char*) ((seg * ... |
/* Copyright (c) <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the follo... |
/*-
* Copyright (c) 1998 <NAME>
* Copyright (c) 2001 <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
... |
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <stdlib.h>
#include <time.h>
#define WIDTH 800
#define HEIGHT 600
#define NINVADERS 64
#define NMAXSHOT 8
#define NINVADER_TYPES 11
#include "sound.h"
#include "spritesheet.h"
#include "text.h"
#include "ui.h"
static SDL_Rect ship;
static SDL_Rect shots[NMA... |
/* Copyright (c) 2015-2016 <NAME>. All rights reserved.
* This file is part of eboot bootloader.
*
* Redistribution and use is permitted according to the conditions of the
* 3-clause BSD license to be found in the LICENSE file.
*/
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#... |
/* ====================================================================
* Copyright (c) 1999-2004 Carnegie Mellon University. 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. Redi... |
/* 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 may not... |
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <unistd.h>
#include <io/pad.h>
#include <sys/memory.h>
#include <sysutil/osk.h>
#include <sysutil/sysutil.h>
#include "rsxutil.h"
static vs32 dialog_action = 0;
uint8_t isRunningOSK = 0;
oskInputFieldInfo in... |
/**
* \file
*
* \brief Unit tests for QTouch component driver with I2C interface.
*
* Copyright (c) 2013-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 th... |
#include "instantiate.h"
#include "types.h"
#include "topdeps.h"
#include "unify.h"
#include "passzero.h"
// Does not itself check that 'args' are valid types for instantiation.
// This is done in passfwd.c:validate_genarg_types().
static ERROR do_instantiate(struct typ **result,
struct m... |
#include <stdint.h>
#include <float.h>
#include <stdio.h>
#include "libvetfkernel.h"
#include "veintrin.h"
#define VLEN (256)
#define NCHW_IDX(n,c,h,w,cl,hl,wl) ((((n)*(cl)+(c))*(hl)+(h))*(wl)+(w))
int mul_n1_f32(uint64_t out, uint64_t in0, uint64_t in1, size_t n)
{
float* po = (float*)(out);
const float* pi0 =... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include "samrecord.h"
#include "main.h"
#include "util.h"
#include "samdict.h"
SAMDictEnt *sde_new(SAMRecord *key, Cloud *v)
{
SAMDictEnt *sde = safe_malloc(sizeof(*sde));
sde->key = key;
sde->mate = NULL;
sde->cand... |
#include <level.h>
#define rocket_speed 5
#define rocket_flame_start_h 30
#define dark_flame_particles 500
#define mid_flame_particles 350
#define bright_flame_particles 250
#define line_w rocket_speed
#define line_particle_amount 2500
SDL_Surface *rocket_tile = NULL;
SDL_Surface *rocket = NULL;
int init_rocket_fl... |
#include <stdio.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_net.h>
typedef int bool;
#define true 1
#define false 0
typedef unsigned char Bit8u;
typedef signed short Bit16s;
typedef unsigned short Bit16u;
typedef int Bit32s;
typedef unsigned int Bit32u;
typedef B... |
/*
Copyright: <NAME>, 2017
License: MIT
*/
#include "fiobj_internal.h"
/* *****************************************************************************
Array Type
***************************************************************************** */
typedef struct {
struct fiobj_vtable_s *vtable;
uint64_t start;
uin... |
/* im_ifthenelse.c --- use a condition image to join two images together
*
* Modified:
* 9/2/95 JC
* - partialed and ANSIfied
* 11/9/95 JC
* - return( 0 ) missing! oops
* 15/4/05
* - now just evals left/right if all zero/all one
* 7/10/06
* - set THINSTRIP
* 23/9/09
* - gtkdoc comment
* 23/9/09
* - use... |
#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... |
/* Copyright (C) 1995, 1996, 1997 Aladdin Enterprises. All rights reserved.
This file is part of Aladdin Ghostscript.
Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author
or distributor accepts any responsibility for the consequences of using it,
or for whether it serves any partic... |
#include "mex.h"
#include <math.h>
void ManifoldEquation (
double *x,
double *alpha,
double omega,
double *w1,
double *w2,
double residuum[20])
{
residuum[0] = x[1];
residuum[1] = -0.10e0 * x[0] + 0.1e0 * alpha[6] - x[1];
residuum[2] = x[3];
residuum[3] = -0.10e0 * x[2] + 0.1e0 * x[0] - x[3];
res... |
/*
* << Haru Free PDF Library >> -- hpdf_pdfa.c
*
* URL: http://libharu.org
*
* Copyright (c) 1999-2006 <NAME> <<EMAIL>>
* Copyright (c) 2007-2009 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
* pr... |
/* RadioHead ASK (generic) protocol
*
* Default transmitter speed is 2000 bits per second, i.e. 500 us per bit.
* The symbol encoding ensures a maximum run (gap) of 4x bit-width.
* Sensible Living uses a speed of 1000, i.e. 1000 us per bit.
*/
#include "decoder.h"
// Maximum message length (including the headers... |
/* --------------------------------------------------------------- */
/* -- Copyright (c) 1994, 1995 Computer Sciences Department, -- */
/* -- University of Wisconsin-Madison, subject to the terms -- */
/* -- and conditions given in the file COPYRIGHT. All Rights -- */
/* -- Reserved. ... |
/*
* This code was created by <NAME> '99
* (ported to Linux/SDL by <NAME> '01)
*
* If you've found this code useful, please let me know.
*
* Visit Jeff at http://nehe.gamedev.net/
*
* or for port-specific comments, questions, bugreports etc.
* email to <EMAIL>
*/
#include <stdio.h>
#include <stdlib.h>
#i... |
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <stdbool.h>
#include <time.h>
#include <string.h>
void insertionSort(int* array, int n, int* compares, int* moves, bool comp);
int* mergeSort(int* array, int start, int end, int* compares, int* moves, bool comp);
int* merge(int* A, int* B, int length... |
// ext/stolen_sleigh/ruby_module_stolen_sleigh.c
#include "ruby_module_stolen_sleigh.h"
double * gifts;
/* @overload srand( seed )
* Seed the random number generator used inside StolenSleigh.
* @param [Integer] seed 32-bit seed number
* @return [nil]
*/
static VALUE rbmodule__srand( VALUE self, VALUE rv_seed ) {... |
/*
File: main.c
License: MIT
Copyright (c) 2019, 2020 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, mo... |
/*****************************************************************************
* Copyright 2021 Liberty Global B.V.
*
* 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.apach... |
#include <xbox_1.h>
int perr(char const *format, ...) {
va_list args;
int r;
va_start (args, format);
r = vfprintf(stderr, format, args);
va_end(args);
return r;
}
#define ERR_EXIT(errcode) do { perr(" %s\n", libusb_strerror((enum libusb_error)errcode)); return -1; } while (0)
#define CALL_CHECK(fcall) do {... |
#include <stdio.h>
#include <stdint.h>
#include "mssb_16.h"
#include "mssb_8.h"
#include "utils.h"
// Some constants related to the algorithm
static const uint32_t rootW = 4; // sqrt(16)
static const uint16_t F = 0x8888;
static const uint16_t M = 0x2490; // From perfect_sketch_const.py
// Step 1 in the constant t... |
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include "sr_arpcache.h"
#include "sr_router.h"
#include "sr_utils.h"
/*
* This function handles sending ARP requests if necessary. Based on
* pesudocode given in header
*/
void sr_arpcache_handle_req_sending(struct sr_instance *sr, struct sr_arpreq *req) ... |
/*
* 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... |
/* PCF8833.c -- c program for NOkia 6610 (Philips) LCD */
/* most of the source code are extracted from <NAME>'s LCD application note */
#include <avr/io.h>
#include "Arduino.h"
#include "PCF8833.h"
#include "vox-font.bin.h"
void SendLcd_color(unsigned char color)
{
LCD_DATA(LCDData); // set u... |
#include <string.h>
#include <stdio.h>
#include <math.h>
#include "projet.h"
#include <stdlib.h>
void testAffichLogement()
{
int tailleLog, maxlog=1000; //Initialisation de la taille logique, physque et du coderetour
Logement *TLog[1000]; //Initialisation d'un tableau de pointeur
tailleLog=Chargement(TLog,max... |
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/boot.h>
#define F_CPU 12000000
#define BAUD_RATE 9600
#include <util/delay.h>
unsigned char address_byte_one,address_byte_two;
unsigned char data[64];
unsigned int Page_no=1;
void application (void) __attribute__ ((section (".app")));//this is default applica... |
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <mpi.h>
#include <sys/time.h>
#include "util.h"
#include "log.h"
#include "mpi_functions.h"
#include "ps_mpi.h"
#include "csv.h"
#ifdef TIME_MEASUREMENT
#include "timeutil.h"
extern float process_search_time;
e... |
/*
* Library for semi-global alignment.
*/
#include <emmintrin.h>
#include <stdlib.h>
#include <string.h>
#include <xmmintrin.h>
#include "sgAlignSSE.h"
/**
* Calculate the minimum of two values.
*
* @arg {char} a - A value.
* @arg {char} b - A value.
*
* @return {char} - The minimum of {a} and {b}.
*/
stat... |
/**
* @author <NAME>
*
*/
//macro Definations
#define N 0
#define E 1
#define S 2
#define W 3
#define B 100
//Logical Storage
unsigned char mouseR;
unsigned char mouseC;
unsigned char ori;
uns... |
/* Wrapper to call lto. Used by collect2 and the linker plugin.
Copyright (C) 2009, 2010 Free Software Foundation, Inc.
Factored out of collect2 by <NAME> <<EMAIL>>
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 pub... |
/*
* Copyright © 2014-2015 Broadcom
*
* 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... |
/* Generated by CIL v. 1.7.3 */
/* print_CIL_Input is false */
int vTaskExitCritical(char *unit ) ;
int vTaskEnterCritical(char *unit ) ;
#line 49 "/Applications/microchip/xc32/v1.42/pic32mx/include/lega-c/machine/int_types.h"
typedef unsigned short __uint16_t;
#line 51 "/Applications/microchip/xc32/v1.42/pic32... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.