text stringlengths 3.12k 18.7k |
|---|
#include <assert.h>
#include <string.h>
#include <stdbool.h>
#include <DPA/utils/mempool.h>
static inline void* getEntryEnd(DPA_mempoolEntry_t* entry){
return ((uint8_t*)entry) + DPAUCS_MEMPOOL_ENTRY_SIZE + entry->size;
}
static inline void* getEntryDatas(DPA_mempoolEntry_t* entry){
return ((uint8_t*)entry) + DPA... |
/*
** $Id: edit.c 553 2008-03-03 07:22:56Z malin $
**
** edit.c: The Edit control demo program.
**
** Copyright (C) 2001 ~ 2002 <NAME>.
** Copyright (C) 2003 ~ 2007 Feynman Software.
**
** Create date: 2001/11/01
*/
/*
** This source is free software; you can redistribute it and/or
** modify it under the terms of th... |
/**
* @file bcm283x_spi0.c
* @brief
* @author kpishere
* @version 0.1
* @date 2021.07.16
*/
#include <errno.h>
#include <drivers/common/memory.h>
#include <drivers/spi.h>
#include <embox/unit.h>
#include <framework/mod/options.h>
#include <hal/reg.h>
#include <util/log.h>
#include <util/math.h>
#include <kernel... |
// <NAME>
// Assignment 2
// January 30th 2017
// CS 261
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX_WORD_SIZE 256
// define a structure called wordCount which holds
// the word and its frequency(count of word in the files), a pointer
// to itself such that it acts a next poin... |
/*
*****************************************************************************
* MDIO Management Interface according to clause 45 of the 802.3 specification
*****************************************************************************
*/
#include "sglib.h"
#include "sgstring.h"
#include "signode.h"
#include "cyc... |
#include <Python.h>
#include <string.h>
#include "clib/lure.h"
#include "clib/logger.h"
#include "clib/node.h"
#define EXPR_PY_CAPSULE_NAME "capsule_name_lure_expr"
#define CONTEXT_PY_CAPSULE_NAME "capsule_name_lure_context"
#define DEFAULT_CONTEXT_SIZE 32
/* pylure.Context()
* .addInt("CITY_ID", 123)
* .addDou... |
#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 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
* Copyright 2015-2016 Cryptography Research, Inc.
*
* Licensed under the OpenSSL license (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distri... |
#include "HT8_LCD.h"
/*const unsigned char Trans_Segment[]= {0xf5,0x60,0xb6,0xf2,0x63,0xd3,0xd7,0x70,0xf7,0xf3}; //display 0-9*/
const unsigned char Trans_Segment[]= {0xeb,0x60,0xc7,0xe5,0x6c,
0xad,0xaF,0xe0,0xeF,0xed,
0,0x8f/*E*/,0x0e/*r*/,0x04/*-*/,0x8f/*E*/
,0x26/*n*/,0x67/... |
/* parse a string date */
#include "fb.h"
#include <ctype.h>
/*:::::*/
static int fb_hIsMonth( const char *text, size_t text_len, const char **end_text, int short_name, int localized )
{
const char *txt_end = text;
int month;
for( month=1; month!=13; ++month ) {
FBSTRING *sMonthName = fb_IntlGetMo... |
#include "init/initcall.h"
#include "init/param.h"
#include "common/list.h"
#include "sync/spinlock.h"
#include "mm/cache.h"
#include "sched/sched.h"
#include "sched/ktaskd.h"
#include "fs/vfs.h"
#include "fs/type/devfs.h"
#include "log/log.h"
static fs_t *devfs;
static thread_t *devfs_task;
static DEFINE_LIST(devfs_d... |
#include "terminal.h"
volatile uint8_t terminal_running[MAX_TERMINAL_NUM] = {0,0,0};
/* int32_t terminal_open(const uint8_t* filename)
* Inputs: filename -- pointer to the name of the file
* Return Value: 0 on success
* Function: open the terminal
*/
extern int32_t terminal_open(const uint8_t* filename){
retur... |
#include <stdio.h>
#include <string.h>
#include <stddef.h>
#include <stdint.h>
#include <unistd.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/udp.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <errno.h>
#include <linux/if.h>
#include <li... |
/*****************************************************************************
*
* \file
*
* \brief FAT 12/16/32 Text reader service.
*
* This file defines a useful set of functions for the text file accesses on
* AVR32 devices.
*
*
* Copyright (c) 2014 Atmel Corporation. All rights reserved.
*
* \asf_licen... |
/*
* Copyright 2008 Google 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 agreed to in w... |
/*! \file lstnprof-3195raw.c
* \brief Implementation of the listener profile for RFC 3195 raw.
*
* The prefix for this "object" is psrr which stands for
* *P*rofile *S*yslog *R*eliable *Raw*.
*
* \author <NAME> <<EMAIL>>
* \date 2003-08-22
* coding begun.
*
* \date 2003-09-16
* ... |
/*************************************************************************
This file is part of 'Mercenaries of Astonia v2'
Copyright (c) 1997-2001 <NAME> (<EMAIL>)
All rights reserved.
**************************************************************************/
#include <zlib.h>
#include "Constants.h"
#include "Map... |
#include <sys/time.h>
#include <assert.h>
#include <stdlib.h>
#include "SDL/SDL.h"
#include "scene.h"
#include "sports_equipment.h"
#define MIN_AGE 10
#define MIN_WEIGHT 10
#define MIN_PULSE 89
#define MIN_YEAR 2001
static ITUWheel* settingAgeWheel;
static ITUWheel* settingWeightWheel;
static ITUWheel* set... |
/// Copyright (C) 2017 Cyberhaven
/// Copyright (C) 2020, TrussLab@University of California, Irvine.
/// Authors: <NAME> <<EMAIL>>
/// Copyrights of all contributions belong to their respective owners.
///
/// This library is free software; you can redistribute it and/or
/// modify it under the terms of the GNU Libr... |
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
#include "iot_import.h"
#include "openssl/crypto.h"
#include "openssl/x509.h"
#include "openssl/pem.h"
#include "openssl/ssl.h"
#include "openssl/err.h"
#include "iotx_hal_internal.h"
static SSL_CTX *ssl_ctx = NULL;
static X509_STORE *ca_store = NULL... |
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <<EMAIL>> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a be... |
/*
* Author: <NAME>
*/
#include <string.h>
#include "I2Cslave.h"
#include "debug2.h"
#include "SlaveDefinitions.h"
// RX Buffer
static uint8_t rxBuffer[I2C_BUFFER_SIZE];
static uint8_t rxBufferIndex;
static uint8_t rxBufferLength;
// Service buffer
static uint8_t srvBuffer[I2C_BUFFER_SIZE];
static uint8_t srvBuffe... |
/*
* 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 copyright
* notice, this list of condition... |
/*
* main.c
*
* Created on: May 22, 2014
* Author: jz
*/
/*
* sscep -- Simple SCEP client implementation
* Copyright (c) <NAME> 2003. All rights reserved.
* See the file COPYRIGHT for licensing information.
*/
/* Main routine */
#include "sscep.h"
static char *
handle_serial(char * serial) {
int hex = ... |
/**
* This file is part of the Data Structures project (CEID)
*
* Copyright 2013 George "papanikge" Papanikolaou
*
* This is experimental software. Beware of Dragons.
*
* This project is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTA... |
/*
* This software is licensed under the terms of the MIT License.
* See COPYING for further information.
* ---
* Copyright (c) 2011-2019, <NAME> <<EMAIL>>.
* Copyright (c) 2012-2019, <NAME> <<EMAIL>>.
*/
#include "taisei.h"
#include "draw.h"
#include "renderer/api.h"
#include "stageutils.h"
#include "global.h"... |
/* $Xorg: props.c,v 1.4 2001/02/09 02:05:32 xorgcvs Exp $ */
/* $XdotOrg: $ */
/*
Copyright 1998 The Open Group
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 th... |
#include <assert.h>
#include <fstrace.h>
#include <fsdyn/fsalloc.h>
#include "base64decoder.h"
#include "async_version.h"
struct base64decoder {
async_t *async;
uint64_t uid;
bytestream_1 stream;
char pos62, pos63;
size_t bit_count;
int bits;
};
static int8_t BASE64MAP[256] = {
-1, -1, -1,... |
/// TITLE:
/// Library Project for Basics of Programming 2 Michael Kostecki 13A
/// Projekt biblioteki na Podstawy Programowania 2 Michaˆ Kostecki 13A
/// ¥ † © ä ¢ ˆ ¾ «
/// ¥ † © ä ¢ ˆ ¾ «
#include <stdio.h> /// default libraries headers
#include <stdlib.h>
#include "clients.h" /// .c with clien... |
/* -*- c -*- *******************************************************/
/*
* Copyright (C) 2010 Sandia Corporation
* Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
* the U.S. Government retains certain rights in this software.
*
* This source code is released under the New BSD License.
*/
#... |
#include "context.h"
#include "sds/sds.h"
#include <stdio.h>
#include <stdbool.h>
#define isOdd(num) (((num)&1)==1)
#define ERROR(...) do {printf(__VA_ARGS__);exit(-1);} while(0)
cnode_t* cnode_from_dict(dict_t* dict) {
cnode_t* node = malloc(sizeof(*node));
node->type = node_DICT;
node->d = dict;
return node... |
//---------------------------------------------------------------------------
// Copyright (C) 2000 Dallas Semiconductor Corporation, 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 dea... |
#include "quic_ngx_tools_interface.h"
// ?
struct ngx_udp_connection_s {
ngx_rbtree_node_t node;
ngx_connection_t *connection;
ngx_buf_t *buffer;
};
static void
ngx_do_chromium_alarm(ngx_event_t *ev) {
chromium_alarm_t *ca = (chromium_alarm_t *)ev->data;
ca->onChromiumAlarm(ca->chrom... |
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define GLM_FORCE_RADIANS 1
#include <SDL2/SDL.h>
#include "glad/glad.h"
#include "load_shader.h"
#include "load_texture.h"
#define BUFFER_OFFSET(offset) ((void *)(offset))
const int SCREEN_FULLSCREEN = 1;
const int SCREEN_WIDTH = 960;
const int SCREEN_H... |
/*
* Snake Game Example (picorv32, picosoc)
* 12-16-20 <EMAIL>
*/
#include "acia.h"
#include "clkcnt.h"
#include "lcd.h"
// 51-note frequency table
uint32_t freq[]={436364, 411872, 388756, 366937, 346342, 326903, 308556, 291238,
274892, 259463, 244901, 231156, 218182, 205936, 194378, 183468, 173171, 163452,
15427... |
// TODO: mlir-clang %s %stdinclude -S | FileCheck %s
// RUN: clang %s -O3 %stdinclude %polyverify -o %s.exec1 && %s.exec1 &> %s.out1
// RUN: mlir-clang %s %polyverify %stdinclude -O3 -o %s.execm && %s.execm &> %s.out2
// RUN: rm -f %s.exec1 %s.execm
// RUN: diff %s.out1 %s.out2
// RUN: rm -f %s.out1 %s.out2
// RUN: mli... |
/*
* Modifed version of src/common/wpa_ctrl.c from wpa_supplicant, discarding
* all code paths except for CONFIG_CTRL_IFACE_UNIX. Define strlcpy inline,
* it is not provided by GNU libc.
* Copyright (c) 2008, <NAME> <<EMAIL>>
*
* wpa_supplicant/hostapd control interface library
* Copyright (c) 2004-2007, <NAME> ... |
/*
* Structure Allocator
*/
#include "common/include/data.h"
#include "common/include/memory.h"
#include "kernel/include/hal.h"
#include "kernel/include/mem.h"
/*
* Magic block
*/
struct salloc_magic_block {
struct salloc_bucket *bucket;
struct salloc_magic_block *next;
};
/*
* Bucket
*/
enum salloc... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sndfile.h>
#include "sndfile.h"
#include "util.h"
struct sndfile_type_info {
const char *name;
int type;
};
struct sndfile_enc_info {
const char *name;
int prec, can_dither, sf_enc;
};
struct sndfile_state {
SNDFILE *f;
SF_INFO *info;
};
sta... |
/*
* Helper for use with the PSP Software Development Kit - http://www.pspdev.org
* -----------------------------------------------------------------------
* Licensed as 'free to use and modify as long as credited appropriately'
*
* vram.c - Standard C high performance VRAM allocation routines.
*
* Copyright (c)... |
/* $OpenBSD: osiop_pcctwo.c,v 1.3 2004/07/30 19:02:06 miod Exp $ */
/*
* Copyright (c) 2004, <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 copy... |
/* scfgmdm.c */
/* $Id: scfgmdm.c,v 1.5 2005/11/27 23:34:28 deuce Exp $ */
/****************************************************************************
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copy... |
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "scf.h"
#define HOST_SCALE 60.424659
#define SCF_FILENAME "./data/host_smooth_scf30_30.scf"
#define SUBHALO_CATALOG "./data/subhalo_catalog.dat"
int Nsub;
typedef struct {
/* SUBHALO_DECOMPOSE_ORDER is n_max for subhalos. l_max is always 0.
... |
/* -*- Mode: c; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*- */
// SPDX-License-Identifier: MIT
#define _GNU_SOURCE
#define _LARGEFILE64_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdint.h>
#include <stdbool.h>
#include <inttypes.h>
#include <stdnoretu... |
/*
Copyright 2017 <NAME>
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 AUTHOR DIS... |
#include <stdio.h>
#include <stdlib.h>
# define offsetof(type,ident) ((size_t)&(((type*)0)->ident))
//glibc-2.27/sysdeps/generic/malloc-alignment.h
#define MALLOC_ALIGNMENT (2 * SIZE_SZ < __alignof__ (long double) \
? __alignof__ (long double) : 2 * SIZE_SZ)
//glibc-2.27/sysdeps/i386/malloc-alignment.h
//#define... |
/*
* Copyright 2013-2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... |
/* This module contains the routine rotCurveSpline, which takes a
tabulated rotaiton curve and calculates a B-spline fit to it and
its derivatives. */
#include <stdio.h>
#include <math.h>
#include <gsl/gsl_bspline.h>
#include <gsl/gsl_integration.h>
#include <gsl/gsl_multifit.h>
#include "rotCurveSpline.h"
stru... |
/* 20170201 NaJiwoong */
/* 2020 April 23 */
/* Environment
*
* Ubuntu 16.04.12
* gcc 5.4.0
*/
/* Execution
*
* "make"
* - make execution file, and output.txt
* "make clean"
* - clean execution file, and output.txt
*/
/* Reference for encryption code (aes-128.c)
*
* Open source code fr... |
/** \file main.c
*/
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <assert.h>
#include <omp.h>
#include "shared_defs.h"
#include "settings.h"
#include "OMPResultVector.h"
#include "OMPHitsAndDoublets.h"
#include "... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../jsmn.h"
/*
* A small example of jsmn parsing when JSON structure is known and number of
* tokens is predictable.
*/
/*static const char *JSON_STRING =
"{\"user\": \"johndoe\", \"admin\": false, \"uid\": 1000,\n "
"\"groups\": [\"users\", \"... |
/*
* s_generic.c
*
* Created on: 23 lis 2020
* Author: marci
*/
#include <stdbool.h>
#include "stm32f7xx_hal.h"
#include "main.h"
#include "sensors.h"
//struct i2c_st_sensor_def {
// uint8_t bus_address;
// uint8_t who_am_i_reg_addr;
// uint8_t who_am_i_reg_val;
// uint8_t status_reg_addr;
// uint8_t meas... |
/*******************************************************************************
* TicTacToe View Module - Source file
*
* This module provide the view of the TicTacToe game
*
* @author <NAME> <<EMAIL>
*
* @copyright (c) 2014 HES-SO/EIA-FR/TIC/T2a Groupe E
*
* @version 1.0.0
* @date 2014-06-01
**************... |
/*
* Description: Handling of the ADS1120 SPI device. This implementation assumes that
* measure is done using differential measure. i.e all 4 ADS inputs is used.
* This implementation is based on SBAS535C – AUGUST 2013 – REVISED FEBRUARY 2017 from
* Texas instruments.
*
* The implementation is not generic since ... |
//
// ACME - a crossassembler for producing 6502/65c02/65816 code.
// Copyright (C) 1998-2006 <NAME>
// Have a look at "acme.c" for further info
//
// Character encoding stuff
#include <stdio.h>
#include <string.h>
#include "alu.h"
#include "acme.h"
#include "dynabuf.h"
#include "encoding.h"
#include "global.h"
#inclu... |
#include <jni.h>
#include <android/log.h>
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include <sys/time.h>
#include <GLES2/gl2.h>
#include "debug.h"
#include "native_main.h"
#include "engine.h"
#include "menu.h"
#include "matrix.h"
#include "shaders.h"
#include "gamearea.h"
#include "starfield.h"
#incl... |
/*
* copyright (c) 2006 <NAME> <<EMAIL>>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any ... |
/*
* Copyright (c) 2005-2008, <NAME>
* Copyright (c) 2021, <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 copy... |
/*
* (C) Copyright 2007
* <NAME>, Pengutronix
*
* (C) Copyright 2009 Freescale Semiconductor, Inc.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* pu... |
#include <assert.h>
#include <fcntl.h>
#include <signal.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include "common/sample_common.h"
#include "rkmedia_api.h"
#include "rkmedia_venc.h"
#if 0
#define DBG(...) do { fprintf(stderr, __VA_ARGS__)... |
//
// Created by dell on 2022/4/19.
//
#include "person/native-audio-wave.h"
AVFormatContext * avFormatContext = NULL;
AVCodecContext *c= NULL;
AVFrame *decoded_frame = NULL;
AVPacket * pkt;
int decoding=0;
int bufferInSize=0;
int is_planar=0;
int sample_rate=44100;
int channels=2;
int bit_format=16;
char *pcm_buffe... |
char netcpu_perfstat_id[]="\
@(#)netcpu_perfstat.c Version 2.4.0";
#if HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdio.h>
#if HAVE_INTTYPES_H
# include <inttypes.h>
#else
# if HAVE_STDINT_H
# include <stdint.h>
# endif
#endif
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
#else
# if H... |
/* $OpenBSD: ka650.h,v 1.11 2008/08/18 23:07:24 miod Exp $ */
/* $NetBSD: ka650.h,v 1.6 1997/07/26 10:12:43 ragge Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* <NAME>.
*
* Redistribution and... |
/* synth.c -- Phonetic transcription to speech transformation
*
* Copyright (C) 1990, 1991 Speech Research Laboratory, Minsk
* Copyright (C) 2005 <NAME> <<EMAIL>>
* Copyright (C) 2021 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: MIT
*/
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include "synt... |
/*
* GStreamer
* Copyright (C) 2019 <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
* version 2 of the License, or (at your option) any later version.
*... |
/*
Copyright (c) 2012-2020 <NAME>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and ... |
#include <jni.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdint.h>
#include <limits.h>
#include <wally_address.h>
#include <wally_bip32.h>
// -------------- Common JNI methods ---------------- //
static jclass find_jclass(JNIEnv *env, char *className) {
jclass claz... |
#include "../lualib.h"
#include "3rd/jsmn/jsmn.h"
#define MAXTOKEN 8192
// define unescape sequence
static int token_to_object(lua_State *L, jsmntok_t* t, const char* s, int cid);
static int l_json_parser(lua_State *L, const char* s);
//void header(int,const char*);
static int l_json_decode_s (lua_State *L) {
cons... |
#include "typeList.h"
#include "AST/type.h"
#include "core/log.h"
#include "core/utils.h"
#include "scanner/token.h"
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
// this should be const
static struct mtr_type invalid_type = {.type = MTR_DATA_INVALID};
static struct mtr_type any_type... |
/*
* task_handler.c
*
* Created on: Jul 30, 2021
* Author: igor
*/
#include "main.h"
#include <string.h>
const char* msg_inv = "\n////Invalid option////\n";
//*****************************************************************************
// HELPER FUNCTIONS ... |
#include <stdlib.h>
#include <wchar.h>
#include <wctype.h>
static const wchar_t lowercase_ae = 0x00E4;
static const wchar_t lowercase_oe = 0x00F6;
static const wchar_t lowercase_ue = 0x00FC;
static const wchar_t uppercase_ae = 0x00C4;
static const wchar_t uppercase_oe = 0x00D6;
static const wchar_t uppercase_ue = 0x0... |
/*
* Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause OR Arm's non-OSI source license
*
*/
#include "bsv_error.h"
#include "cc_bitops.h"
#include "bsv_crypto_asym_api.h"
#include "bootimagesverifier_def.h"
#include "bsv_rsa_driver.h"
#include "... |
#include "match.h"
StartMelee sm_regularvs;
StartMelee sm_train;
MatchInfo match_info; //8046B6A0
MatchController match_controller;
static MatchInfo* match_ptr = &match_info; //r13_77C0
//8015CDEC
u8* Match_8015CDEC()
{
u8* result; // r3@2
for (u32 i = 0; i < 6; ++i) {
result = (u8*)Match_8015CE44... |
/**
******************************************************************************
* File Name : SAI.c
* Description : This file provides code for the configuration
* of the SAI instances.
******************************************************************************
... |
#include "global.h"
#include "io.h"
#include "module.h"
#include "graph.h"
#include "core/log.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <unistd.h>
#include <dlfcn.h>
#include <stdio.h>
dt_pipe_global_t dt_pipe;
// reads one line of a connector configuration file.
// this is: connec... |
/*++
/* NAME
/* transport 3
/* SUMMARY
/* transport mapping
/* SYNOPSIS
/* #include "transport.h"
/*
/* TRANSPORT_INFO *transport_pre_init(maps_name, maps)
/* const char *maps_name;
/* const char *maps;
/*
/* void transport_post_init(info)
/* TRANSPORT_INFO *info;
/*
/* int transport_lookup(info, address, rcpt_domain, ... |
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "list.h"
#include "stringop.h"
#include "instructions.h"
#include "match.h"
#include "log.h"
/*
* Used to get the value provided in code for an operand or immediate value
* For example, g... |
/*$Header: /data/petsun4/data1/src_solaris/peak_4dfp/RCS/index2atl.c,v 1.5 2011/03/10 03:59:18 avi Exp $*/
/*$Log: index2atl.c,v $
* Revision 1.5 2011/03/10 03:59:18 avi
* all header info commented
*
* Revision 1.4 2007/09/23 03:36:06 avi
* linux compliant (eliminate f_init ())
*
* Revision 1.3 2007/05/04... |
/*
* Copyright (c) 1985, 1988 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 copyright
... |
#include "rdma-common.h"
static const int RDMA_BUFFER_SIZE = 1024;
struct message {
enum {
MSG_MR,
MSG_DONE
} type;
union {
struct ibv_mr mr;
} data;
};
struct context {
struct ibv_context *ctx;
struct ibv_pd *pd;
struct ibv_cq *cq;
struct ibv_comp_channel *comp_channel;
pthread_t cq_poller_thread;
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <inttypes.h>
#include <unicode/ustdio.h>
#include <unicode/ustring.h>
#include "ternary_search_tree.h"
#define U2(X) u ## X
#define U(X) U2(X)
#define MAX_WORD_LENGTH 50
#define INDENT 6
#define COLOR u"\033[34m"
#define COLOR2 u... |
//from Microchip, with some modification on timings
//#include "driver/gfx/drv_gfx_display.h"
//include "driver/gfx/gfx_lcc/drv_gfx_lcc.h"
//source code is broken, it does not work with gcc optimizations :/
#include <xc.h>
#include <sys/attribs.h>
#include "peripheral/int/plib_int.h"
#include "system/int/sys_int.h... |
//
// compiler_test.c
// gravity
//
// Created by <NAME> on 24/03/16.
// Copyright © 2016 CreoLabs. All rights reserved.
//
#include "gravity_compiler.h"
#include "gravity_optionals.h"
#include "gravity_utils.h"
#include "gravity_core.h"
#include "gravity_vm.h"
#define DEFAULT_OUTPUT "gravity.g"
typedef enum {
... |
/******************************************
* n64out.c *
******************************************/
#include "types.h"
#include "n64out.h"
char tmp_verts[64][66];
char verts_pos;
/* declaration to silence warnings */
long lroundf(float);
/* strcatdup
strcat and strdup combined
*/
ch... |
/**************************************************************************
Copyright 2000 Silicon Integrated Systems Corp, Inc., HsinChu, Taiwan.
Copyright 2003 <NAME>
All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files... |
#include <driver/spi_master.h>
#include <duktape.h>
#include "duktape_utils.h"
#include "esp32_specific.h"
#include "logging.h"
#include "module_spi.h"
LOG_TAG("module_spi");
#define DEFAULT_HOST HSPI_HOST
#define DEFAULT_CLOCK_SPEED (10000)
/*
* [0] - options
* * host - optional - Default to HSPI_HOST
* * mode... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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
* o... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct stack
{
char *arr;
int top;
int capacity;
};
struct queue
{
char *arr;
int front;
int rear;
int capacity;
};
struct client
{
int cNumber;
struct stack *cStack;
struct queue *cQueue;
struct stack *logHist;
};
s... |
/*
* \file bmpToRaster.c
*
* \brief Generates a header file for Raster from a BMP image
*
*/
/*
* Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
*/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
/*
* Copyright (c) LSE
* 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 follow... |
#include "virtio-internal.h"
#include <virtio/virtio.h>
#include <types.h>
#include <riscv.h>
#include <memlayout.h>
#include <io.h>
#include <log.h>
#include <string.h>
#include <malloc.h>
#include <assert.h>
//https://github.com/sgmarz/osblog/blob/master/risc_v/src/virtio.rs
//https://github.com/wblixin6017/zircon... |
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) Marvell International Ltd. and its affiliates
*/
#include "ddr3_init.h"
#include "mv_ddr_common.h"
/*
* Translates topology map definitions to real memory size in bits
* (per values in ddr3_training_ip_def.h)
*/
u32 mem_size[] = {
ADDR_SIZE_512MB,
ADDR_SI... |
/*******************************************************************************
** File: safe2ditch.c
**
** Purpose:
** App to interface safe2ditch and Icarous
**
*******************************************************************************/
#define EXTERN
#include <Icarous_msg.h>
#include "safe2ditch.h"
#i... |
/*
* Copyright (C) 2016-2019 Alibaba Group Holding Limited
*/
/*
* SM3 Implementation
* Standard: GM/T 0004-2012(http://www.gmbz.org.cn/main/bzlb.html)
*/
#include "sm3.h"
/* Implementation that should never be optimized out by the compiler */
static void zeroize(void *v, size_t n)
{
volatile uint8_t *p = (... |
/***********************
* Math C-File
* For all math operations
***********************/
#include "math_functions.h"
#include "fix16.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
/* Calculates the differences between each values in the array
* dataNew[a] = data[a+1] - data[a]
* then first one =... |
/* seq2mtx - convert single sequence to pseudo IMPALA mtx file */
/* Copyright (C) 2000 <NAME> */
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <math.h>
#include <string.h>
#define MAXSEQLEN 65536
#define FALSE 0
#define TRUE 1
#define SQR(x) ((x)*(x))
#define MIN(x,y) (((x)<(y))?(x):(y))
#def... |
/*
* Copyright (c) 2011-2012 Research In Motion Limited.
*
* 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 applica... |
/* $Id$ */
/* Abstract: PS/2 mouse code for the keyboard server. */
/* Authors: <NAME> <<EMAIL>>
<NAME> <<EMAIL>> */
/* Copyright 2000 chaos development. */
/* Copyright 2007 chaos development. */
#include "common.h"
#include "controller.h"
#include "mouse.h"
#include "config.h"
/* Have we got a PS/2 mo... |
#include <stdio.h>
#include <unistd.h>
#include <sys/socket.h>
#include <signal.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/rfcomm.h>
#include <bluetooth/sdp.h>
#include <bluetooth/sco.h>
#include <bluetooth/sdp_lib.h>
#include <bluetooth/l2cap.h>
#include <pthread.h>
#include <errno.h>
#include "wave.h"
... |
#include "netbuffer.h"
#include "mailuser.h"
#include "server.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/utsname.h>
#include <ctype.h>
#define MAX_LINE_LENGTH 1024
// Hash code of recognized commands
#define HELO 754
#define EHLO 757
#define MAIL 730
#define RCPT 792
#define DATA 710... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.