repo stringlengths 1 152 ⌀ | file stringlengths 14 221 | code stringlengths 501 25k | file_length int64 501 25k | avg_line_length float64 20 99.5 | max_line_length int64 21 134 | extension_type stringclasses 2
values |
|---|---|---|---|---|---|---|
null | mempool-main/software/runtime/alloc.h | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Gua Hao Khov, ETH Zurich
/* Dynamic memory allocation based on linked list of free blocks with
* first-fit search and coalescing with n... | 1,302 | 22.690909 | 75 | h |
null | mempool-main/software/runtime/printf.h | ///////////////////////////////////////////////////////////////////////////////
// \author (c) Marco Paland (info@paland.com)
// 2014-2018, PALANDesign Hannover, Germany
//
// \license The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this softwar... | 4,349 | 40.826923 | 80 | h |
null | mempool-main/software/runtime/synchronization.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
#ifndef __SYNCHRONIZATION_H__
#define __SYNCHRONIZATION_H__
// Barrier functions
void mempool_barrier_init(ui... | 836 | 37.045455 | 75 | h |
null | mempool-main/software/runtime/riscv_test.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// clang-format off
#ifndef _ENV_PHYSICAL_SINGLE_CORE_H
#define _ENV_PHYSICAL_SINGLE_CORE_H
#include "encoding.h"
//-----------------------------... | 6,770 | 47.021277 | 80 | h |
null | mempool-main/software/runtime/alloc.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Gua Hao Khov, ETH Zurich
#include "alloc.h"
#include "printf.h"
// --------------------------------------------------------------------... | 7,879 | 31.561983 | 80 | c |
null | mempool-main/software/runtime/printf.c | ///////////////////////////////////////////////////////////////////////////////
// \author (c) Marco Paland (info@paland.com)
// 2014-2019, PALANDesign Hannover, Germany
//
// \license The MIT License (MIT)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this softwar... | 22,805 | 27.759142 | 80 | c |
null | mempool-main/software/runtime/systolic/queue.h | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Gua Hao Khov, ETH Zurich
/* This library implements the single-producer single-consumer queue
*/
// Concurrent single-producer single-... | 2,554 | 25.340206 | 80 | h |
null | mempool-main/software/runtime/systolic/matmul.h | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Gua Hao Khov, ETH Zurich
/* This library implements a simple systolic architecture emulation
* using global code based orchestration
*... | 21,365 | 32.228616 | 80 | h |
null | mempool-main/software/runtime/systolic/queue_multi.h | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Gua Hao Khov, ETH Zurich
/* This library implements the single-producer single-consumer queue
*/
// Concurrent single-producer single-... | 4,527 | 28.402597 | 78 | h |
null | mempool-main/software/runtime/xpulp/builtins_v2.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef __HAL_RISCV_BUILTINS_V2_H__
#define __HAL_RISCV_BUILTINS_V2_H__
/* ARITHMETIC SECTION */
typedef signed short v2s __attribute__((vector_siz... | 16,108 | 43.623269 | 80 | h |
null | mempool-main/software/runtime/xpulp/conv_2d.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
// Davide Schiavone, ETH Zurich
// Sergio Mazzola, ETH Zurich
#include "xpulp/builtins_v2.h"
#... | 11,518 | 28.919481 | 78 | h |
null | mempool-main/software/runtime/kernel/mat_mul.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
/* This library implements the matrix multiplication in multiple different ways.
* The functions all follow t... | 13,954 | 34.966495 | 80 | h |
null | mempool-main/software/runtime/kernel/mempool_cholesky_q32s.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Marco Bertuletti, ETH Zurich
#include "kernel/mempool_sqrt_q32s.h"
/**
@brief Choleksy decomposition with Banachiewicz algori... | 11,541 | 34.296636 | 80 | h |
null | mempool-main/software/runtime/kernel/mempool_sqrt_q32s.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Marco Bertuletti, ETH Zurich
#pragma once
inline int32_t mempool_sqrt_q32s(int32_t number) {
int32_t res = 1;
// register int32_t ... | 1,623 | 26.066667 | 75 | h |
null | mempool-main/software/runtime/kernel/mempool_linearsolver_q32p.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Marco Bertuletti, ETH Zurich
/*
The computation of the Cholesky decomposition is divided in two steps
- First step = computation of the... | 24,664 | 38.782258 | 80 | h |
null | mempool-main/software/runtime/kernel/convolution.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
/* This library implements the convolution in multiple different ways.
* The functions all follow the followi... | 7,348 | 34.502415 | 80 | h |
null | mempool-main/software/runtime/kernel/mempool_linearsolver_q32s.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Marco Bertuletti, ETH Zurich
#include "kernel/mempool_sqrt_q32s.h"
/**
@brief Solution of a lower triangular system Lx=y.
... | 18,005 | 35.523327 | 80 | h |
null | mempool-main/software/runtime/kernel/axpy.h | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Yichao Zhang, ETH Zurich
int32_t AXPY(uint32_t n, int32_t da, int32_t *x, int32_t *y) {
uint32_t i = 0;
if (da == 0)
return (0);... | 4,389 | 27.141026 | 80 | h |
null | mempool-main/software/runtime/kernel/synth.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
static inline void power_profile(int32_t *const a) {
// Do this loop M times
int const num_loops = 2;
in... | 5,698 | 35.767742 | 76 | h |
null | mempool-main/software/runtime/kernel/dct.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Samuel Riedel, ETH Zurich
/* This library implements the discrete cosine transformation
* The functions all follow the following format... | 4,926 | 32.97931 | 89 | h |
null | mempool-main/software/runtime/kernel/mempool_cholesky_q32p.h | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Author: Marco Bertuletti, ETH Zurich
#include "kernel/mempool_sqrt_q32s.h"
/**
@brief Parallel Cholesky decomposition.
@param[in] ... | 22,398 | 37.42024 | 80 | h |
null | mempool-main/software/runtime/omp/loop.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
/* This file handles the LOOP (FOR/DO) construct. */
#include "encoding.h"
#include "libgomp.h"
#include "printf.h"
#include "runtime.h"
#include ... | 2,506 | 22.429907 | 77 | c |
null | mempool-main/software/runtime/omp/critical.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
/* This file handles the ATOMIC and CRITICAL constructs. */
#include "encoding.h"
#include "libgomp.h"
#include "printf.h"
#include "runtime.h"
#i... | 615 | 29.8 | 75 | c |
null | mempool-main/software/runtime/omp/single.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
/* This file handles the SINGLE construct. */
#include "encoding.h"
#include "libgomp.h"
#include "printf.h"
#include "runtime.h"
#include "synchr... | 2,195 | 27.894737 | 79 | c |
null | mempool-main/software/runtime/omp/omp-lock.h | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef __OMP_LOCK_H__
#define __OMP_LOCK_H__
#include "encoding.h"
#include "libgomp.h"
#include "printf.h"
#include "runtime.h"
#include "synchro... | 888 | 25.147059 | 75 | h |
null | mempool-main/software/runtime/omp/barrier.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
/* This file handles the BARRIER construct. */
#include "encoding.h"
#include "libgomp.h"
#include "printf.h"
#include "runtime.h"
#include "synchr... | 968 | 25.189189 | 75 | c |
null | mempool-main/software/runtime/omp/work.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "encoding.h"
#include "libgomp.h"
#include "printf.h"
#include "runtime.h"
#include "synchronization.h"
void gomp_new_work_share() {
wor... | 731 | 21.181818 | 75 | c |
null | mempool-main/software/runtime/omp/parallel.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
/* This file handles the (bare) PARALLEL construct. */
#include "encoding.h"
#include "libgomp.h"
#include "printf.h"
#include "runtime.h"
#includ... | 1,884 | 25.928571 | 76 | c |
null | mempool-main/software/runtime/omp/libgomp.h | /* Copyright (C) 2005-2022 Free Software Foundation, Inc.
Contributed by Richard Henderson <rth@redhat.com>.
This file is part of the GNU Offloading and Multi Processing Library
(libgomp).
Libgomp is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License... | 4,014 | 32.181818 | 80 | h |
null | mempool-main/software/omp/omp_parallel_for/main.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "libgomp.h"
#include "printf.h"
#include "runtime.h"
#include "synchronizati... | 4,695 | 25.834286 | 75 | c |
null | mempool-main/software/omp/omp_parallel_for_dynamic/main.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "libgomp.h"
#include "printf.h"
#include "runtime.h"
#include "synchronizati... | 4,608 | 26.933333 | 75 | c |
null | mempool-main/software/omp/reduction/main.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "kernel/convolution.h"
#include "libgomp.h"
#include "printf.h"
#include "ru... | 5,611 | 22.880851 | 83 | c |
null | mempool-main/software/omp/barrier_conv/main.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "kernel/convolution.h"
#include "libgomp.h"
#include "printf.h"
#include "ru... | 5,083 | 26.333333 | 79 | c |
null | mempool-main/software/omp/reduction_benchmark/main.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "kernel/mat_mul.h"
#include "libgomp.h"
#include "printf.h"
#include "runtim... | 9,099 | 28.449838 | 80 | c |
null | mempool-main/software/omp/barrier_test1/main.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "libgomp.h"
#include "printf.h"
#include "runtime.h"
#include "synchronizati... | 1,582 | 20.986111 | 75 | c |
null | mempool-main/software/omp/barrier_test2/main.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "libgomp.h"
#include "printf.h"
#include "runtime.h"
#include "synchronizati... | 1,622 | 21.232877 | 75 | c |
null | mempool-main/software/omp/critical_benchmark/main.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "libgomp.h"
#include "printf.h"
#include "runtime.h"
#include "synchronizati... | 2,196 | 20.330097 | 75 | c |
null | mempool-main/software/omp/omp_parallel/main.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "libgomp.h"
#include "printf.h"
#include "runtime.h"
#include "synchronizati... | 1,028 | 22.930233 | 75 | c |
null | mempool-main/software/omp/master/main.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "libgomp.h"
#include "printf.h"
#include "runtime.h"
#include "synchronizati... | 1,380 | 22.016667 | 80 | c |
null | mempool-main/software/omp/omp_parallel_for_benchmark/main.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <stdint.h>
#include <string.h>
#include "encoding.h"
#include "kernel/mat_mul.h"
#include "libgomp.h"
#include "printf.h"
#include "runtim... | 5,901 | 29.739583 | 80 | c |
null | mempool-main/software/omp/omp_parallel_for_dynamic_benchmark/main.c | // Copyright 2022 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <stdint.h>
#include <string.h>
#include "data.h"
#include "encoding.h"
#include "libgomp.h"
#include "printf.h"
#include "runtime.h"
#incl... | 2,464 | 21.614679 | 80 | c |
null | mempool-main/software/halide/2d_convolution/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "encoding.h"
#include "halide_pipeline.riscv.h"
#include "halide_runtime.h"
#include "printf.h"
#include "runtime.h"
#include "synchronizat... | 6,541 | 25.811475 | 77 | c |
null | mempool-main/software/halide/matmul/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "encoding.h"
#include "halide_pipeline.riscv.h"
#include "halide_runtime.h"
#include "printf.h"
#include "runtime.h"
#include "synchronizat... | 7,972 | 34.278761 | 80 | c |
null | mempool-main/software/halide/gradient/main.c | // Copyright 2021 ETH Zurich and University of Bologna.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
/*
* This example shows how to use Halide on the MemPool system. Specifically, a
* Halide pipeline is compiled to take two input arguments and ret... | 2,342 | 28.2875 | 80 | c |
null | mempool-main/toolchain/riscv-isa-sim/fesvr/option_parser.h | // See LICENSE for license details.
#ifndef _OPTION_PARSER_H
#define _OPTION_PARSER_H
#include <vector>
#include <functional>
class option_parser_t
{
public:
option_parser_t() : helpmsg(0) {}
void help(void (*helpm)(void)) { helpmsg = helpm; }
void option(char c, const char* s, int arg, std::function<void(con... | 794 | 23.84375 | 87 | h |
null | mempool-main/toolchain/riscv-isa-sim/fesvr/memif.h | // See LICENSE for license details.
#ifndef __MEMIF_H
#define __MEMIF_H
#include <stdint.h>
#include <stddef.h>
typedef uint64_t reg_t;
typedef int64_t sreg_t;
typedef reg_t addr_t;
class chunked_memif_t
{
public:
virtual void read_chunk(addr_t taddr, size_t len, void* dst) = 0;
virtual void write_chunk(addr_t ... | 1,743 | 26.68254 | 74 | h |
null | mempool-main/toolchain/riscv-isa-sim/fesvr/dtm.h | #ifndef _ROCKET_DTM_H
#define _ROCKET_DTM_H
#include "htif.h"
#include "context.h"
#include <stdint.h>
#include <queue>
#include <semaphore.h>
#include <vector>
#include <string>
#include <stdlib.h>
// abstract debug transport module
class dtm_t : public htif_t
{
public:
dtm_t(int argc, char**argv);
~dtm_t();
... | 2,550 | 20.991379 | 93 | h |
null | mempool-main/toolchain/riscv-isa-sim/fesvr/context.h | #ifndef _HTIF_CONTEXT_H
#define _HTIF_CONTEXT_H
// A replacement for ucontext.h, which is sadly deprecated.
#include <pthread.h>
#if defined(__GLIBC__)
# undef USE_UCONTEXT
# define USE_UCONTEXT
# include <ucontext.h>
# include <memory>
#include <limits.h>
#if (ULONG_MAX > UINT_MAX) // 64-bit systems only
#if (100*... | 1,253 | 21.8 | 86 | h |
null | mempool-main/toolchain/riscv-isa-sim/fesvr/htif.h | // See LICENSE for license details.
#ifndef __HTIF_H
#define __HTIF_H
#include "memif.h"
#include "syscall.h"
#include "device.h"
#include <string.h>
#include <map>
#include <vector>
class htif_t : public chunked_memif_t
{
public:
htif_t();
htif_t(int argc, char** argv);
htif_t(const std::vector<std::string>&... | 4,053 | 30.92126 | 97 | h |
null | mempool-main/toolchain/riscv-isa-sim/fesvr/syscall.h | // See LICENSE for license details.
#ifndef __SYSCALL_H
#define __SYSCALL_H
#include "device.h"
#include "memif.h"
#include <vector>
#include <string>
class syscall_t;
typedef reg_t (syscall_t::*syscall_func_t)(reg_t, reg_t, reg_t, reg_t, reg_t, reg_t, reg_t);
class htif_t;
class memif_t;
class fds_t
{
public:
... | 2,326 | 30.876712 | 92 | h |
null | mempool-main/toolchain/riscv-isa-sim/fesvr/htif_hexwriter.h | // See LICENSE for license details.
#ifndef __HTIF_HEXWRITER_H
#define __HTIF_HEXWRITER_H
#include <map>
#include <vector>
#include <stdlib.h>
#include "memif.h"
class htif_hexwriter_t : public chunked_memif_t
{
public:
htif_hexwriter_t(size_t b, size_t w, size_t d);
protected:
size_t base;
size_t width;
si... | 739 | 21.424242 | 75 | h |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/s_shortShiftLeft128.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All rights reserved.
Redistribu... | 2,137 | 37.178571 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f32_to_i16.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the
University of California. All rights reserved.
Redi... | 2,418 | 40.706897 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f32_rem.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014 The Regents of the University of California.
All rights reserved.
Redistribution and use ... | 6,317 | 36.384615 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f64_mulAdd.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014 The Regents of the University of California.
All rights reserved.
Redistribution and use ... | 2,251 | 35.918033 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f32_sqrt.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All rights reserved.
Redistribu... | 4,623 | 36.901639 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f32_lt_quiet.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014 The Regents of the University of California.
All rights reserved.
Redistribution and use ... | 2,621 | 35.416667 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f128_lt_quiet.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014 The Regents of the University of California.
All rights reserved.
Redistribution and use ... | 2,923 | 36.012658 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/ui32_to_f32.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014 The Regents of the University of California.
All Rights Reserved.
Redistribution and use ... | 2,202 | 36.982759 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/s_approxRecip_1Ks.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All rights reserved.
Redistribu... | 2,267 | 44.36 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f128_to_f32.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of
California. All rights reserved.
Redistribution a... | 3,845 | 39.0625 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f64_rem.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014 The Regents of the University of California.
All rights reserved.
Redistribution and use ... | 7,059 | 36.157895 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/s_mul64To128M.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of
California. All rights reserved.
Redistribution a... | 2,506 | 35.333333 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/s_roundPackMToUI64.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3a+, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All rights reserved.
Redistrib... | 3,407 | 39.094118 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f16_div.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All rights reserved.
Redistribu... | 6,492 | 33.721925 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f128_to_i64.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the
University of California. All rights reserved.
Redi... | 4,072 | 41.427083 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/i32_to_f32.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014 The Regents of the University of California.
All rights reserved.
Redistribution and use ... | 2,275 | 37.576271 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/softfloat_types.h |
/*============================================================================
This C header file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2017 The Regents of the University of
California. All rights reserved.
Redistribu... | 4,046 | 48.353659 | 79 | h |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/s_addM.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All rights reserved.
Redistribu... | 2,492 | 34.112676 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f16_to_f64.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of
California. All rights reserved.
Redistribution a... | 3,592 | 37.223404 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/s_shiftRightJam128Extra.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All rights reserved.
Redistribu... | 2,758 | 34.371795 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/s_compare96M.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of
California. All rights reserved.
Redistribution a... | 2,362 | 36.507937 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/s_shiftRightJam256M.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All rights reserved.
Redistribu... | 4,022 | 30.677165 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f64_sqrt.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2017 The Regents of the University of
California. All rights reserved.
Redistribution a... | 5,184 | 37.69403 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/s_addMagsF128.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014 The Regents of the University of California.
All rights reserved.
Redistribution and use ... | 5,037 | 31.503226 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f32_add.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All rights reserved.
Redistribu... | 2,607 | 35.732394 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f128_le_quiet.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014 The Regents of the University of California.
All rights reserved.
Redistribution and use ... | 2,927 | 36.063291 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f64_eq.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014 The Regents of the University of California.
All rights reserved.
Redistribution and use ... | 2,474 | 35.940299 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f32_eq_signaling.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014 The Regents of the University of California.
All rights reserved.
Redistribution and use ... | 2,325 | 36.516129 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/s_eq128.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of
California. All rights reserved.
Redistribution a... | 2,037 | 38.192308 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/i64_to_f16.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All rights reserved.
Redistribu... | 2,691 | 36.915493 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/s_mulAddF128.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All rights reserved.
Redistribu... | 13,492 | 37.441595 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/s_roundPackToI32.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3a+, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All rights reserved.
Redistrib... | 3,434 | 39.411765 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f128_eq.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014 The Regents of the University of California.
All rights reserved.
Redistribution and use ... | 2,690 | 35.364865 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/s_shiftRightJam32.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All rights reserved.
Redistribu... | 2,076 | 38.942308 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f64_to_f16.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of
California. All rights reserved.
Redistribution a... | 3,473 | 38.033708 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f32_classify.c |
#include <stdbool.h>
#include <stdint.h>
#include "platform.h"
#include "internals.h"
#include "specialize.h"
#include "softfloat.h"
uint_fast16_t f32_classify( float32_t a )
{
union ui32_f32 uA;
uint_fast32_t uiA;
uA.f = a;
uiA = uA.ui;
uint_fast16_t infOrNaN = expF32UI( uiA ) == 0xFF;
uint... | 1,127 | 29.486486 | 57 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f128_add.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014 The Regents of the University of California.
All rights reserved.
Redistribution and use ... | 2,892 | 35.620253 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f32_isSignalingNaN.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014 The Regents of the University of California.
All rights reserved.
Redistribution and use ... | 2,052 | 38.480769 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/s_mulAddF64.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All rights reserved.
Redistribu... | 18,253 | 35.72837 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f16_eq.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of
California. All rights reserved.
Redistribution a... | 2,462 | 35.761194 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f16_to_i8.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the
University of California. All rights reserved.
Redi... | 2,412 | 40.603448 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f16_rem.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All rights reserved.
Redistribu... | 6,376 | 36.075581 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/platform.h |
/*============================================================================
This C header file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3a, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014 The Regents of the University of California.
All rights reserved.
Redistribution and use ... | 2,347 | 43.301887 | 79 | h |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f16_lt.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of
California. All rights reserved.
Redistribution a... | 2,482 | 36.059701 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f128_to_ui32.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the
University of California. All rights reserved.
Redi... | 3,463 | 38.816092 | 84 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f16_to_f32.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of
California. All rights reserved.
Redistribution a... | 3,590 | 37.202128 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/i64_to_f32.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016 The Regents of the University of
California. All rights reserved.
Redistribu... | 2,691 | 36.915493 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/s_le128.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015 The Regents of the University of
California. All rights reserved.
Redistribution a... | 2,054 | 38.519231 | 79 | c |
null | mempool-main/toolchain/riscv-isa-sim/softfloat/f32_to_i64.c |
/*============================================================================
This C source file is part of the SoftFloat IEEE Floating-Point Arithmetic
Package, Release 3d, by John R. Hauser.
Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017 The Regents of the
University of California. All rights reserved.
Redi... | 3,787 | 38.051546 | 79 | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.